UNPKG

attio-js

Version:

Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.

19 lines 1.57 kB
import { AttioCore } from "../core.js"; import { RequestOptions } from "../lib/sdks.js"; import { APIError } from "../models/errors/apierror.js"; import { GetV2ObjectsObjectNotFoundError, PostV2ObjectsObjectRecordsInvalidRequestError } from "../models/errors/getv2objectsobject.js"; import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js"; import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; import { PostV2ObjectsObjectRecordsRequest, PostV2ObjectsObjectRecordsResponse } from "../models/operations/postv2objectsobjectrecords.js"; import { APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** * Create a record * * @remarks * Creates a new person, company or other record. This endpoint will throw on conflicts of unique attributes. If you would prefer to update records on conflicts, please use the [Assert record endpoint](/reference/put_v2-objects-object-records) instead. * * Required scopes: `record_permission:read-write`, `object_configuration:read`. */ export declare function recordsCreate(client: AttioCore, request: PostV2ObjectsObjectRecordsRequest, options?: RequestOptions): APIPromise<Result<PostV2ObjectsObjectRecordsResponse, PostV2ObjectsObjectRecordsInvalidRequestError | GetV2ObjectsObjectNotFoundError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>; //# sourceMappingURL=recordsCreate.d.ts.map