attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
21 lines • 1.69 kB
TypeScript
import { AttioCore } from "../core.js";
import { RequestOptions } from "../lib/sdks.js";
import { APIError } from "../models/errors/apierror.js";
import { PostV2TargetIdentifierAttributesNotFoundError, PostV2TargetIdentifierAttributesSlugConflictError, PostV2TargetIdentifierAttributesValidationTypeError } from "../models/errors/getv2objectsobject.js";
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
import { PostV2TargetIdentifierAttributesRequest, PostV2TargetIdentifierAttributesResponse } from "../models/operations/postv2targetidentifierattributes.js";
import { APIPromise } from "../types/async.js";
import { Result } from "../types/fp.js";
/**
* Create an attribute
*
* @remarks
* Creates a new attribute on either an object or a list.
*
* To create an attribute on an object, you must also have the `object_configuration:read-write` scope.
*
* To create an attribute on a list, you must also have the `list_configuration:read-write` scope.
*/
export declare function attributesCreate(client: AttioCore, request: PostV2TargetIdentifierAttributesRequest, options?: RequestOptions): APIPromise<Result<PostV2TargetIdentifierAttributesResponse, PostV2TargetIdentifierAttributesValidationTypeError | PostV2TargetIdentifierAttributesNotFoundError | PostV2TargetIdentifierAttributesSlugConflictError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
//# sourceMappingURL=attributesCreate.d.ts.map