attio-js
Version:
Developer-friendly & type-safe JS/TS SDK based on the official OpenAPI spec of Attio.
19 lines • 1.2 kB
TypeScript
import { AttioCore } from "../core.js";
import { RequestOptions } from "../lib/sdks.js";
import { APIError } from "../models/errors/apierror.js";
import { GetV2ObjectsObjectNotFoundError } from "../models/errors/getv2objectsobject.js";
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
import { PostV2NotesRequest, PostV2NotesResponse } from "../models/operations/postv2notes.js";
import { APIPromise } from "../types/async.js";
import { Result } from "../types/fp.js";
/**
* Create a note
*
* @remarks
* Creates a new note for a given record.
*
* Required scopes: `note:read-write`, `object_configuration:read`, `record_permission:read`.
*/
export declare function notesCreate(client: AttioCore, request: PostV2NotesRequest, options?: RequestOptions): APIPromise<Result<PostV2NotesResponse, GetV2ObjectsObjectNotFoundError | APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
//# sourceMappingURL=notesCreate.d.ts.map