attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
19 lines • 1.48 kB
TypeScript
import { AttioCore } from "../core.js";
import { RequestOptions } from "../lib/sdks.js";
import { APIError } from "../models/errors/apierror.js";
import { PostV2ListsListEntriesInvalidRequestError, PostV2ListsListEntriesNotFoundError } from "../models/errors/getv2objectsobject.js";
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
import { PostV2ListsListEntriesRequest, PostV2ListsListEntriesResponse } from "../models/operations/postv2listslistentries.js";
import { APIPromise } from "../types/async.js";
import { Result } from "../types/fp.js";
/**
* Create an entry (add record to list)
*
* @remarks
* Adds a record to a list as a new list entry. This endpoint will throw on conflicts of unique attributes. Multiple list entries are allowed for the same parent record
*
* Required scopes: `list_entry:read-write`, `list_configuration:read`.
*/
export declare function entriesCreate(client: AttioCore, request: PostV2ListsListEntriesRequest, options?: RequestOptions): APIPromise<Result<PostV2ListsListEntriesResponse, PostV2ListsListEntriesInvalidRequestError | PostV2ListsListEntriesNotFoundError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
//# sourceMappingURL=entriesCreate.d.ts.map