Preview moving a client field's links to Resources
curl --request GET \ --url https://example.com/api/v1/clients/field-definitions/example/resource-conversion \ --header 'Authorization: Bearer <token>'Shows what moving the links a client custom field holds into each company’s own (General) resources would do, without writing anything: per company a new link, a link the company already has (same address, so it is skipped), or a value that is not a link and stays in the field. Only a URL, TEXT or MULTILINE field that is not secret is planned; any other answers isConvertible false with nothing planned. rows samples the first 20 companies of each outcome and totals counts them all. Requires the settings.manage, clients.edit and clients.view_all permissions together, since the move reads every company.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Responses
Section titled “Responses”What the move would do.
object
What moving a client custom field’s links into each company’s resources would do. Nothing is written.
object
True when the field is active and every value becomes or already is a link, so the move turns the field off.
object
The input type a client custom field renders as.
False for a secret field and for a kind that never holds a link (CHECKBOX, DROPDOWN, FILE); nothing is planned then.
The first 20 companies of each outcome, as a sample.
object
Companies per outcome: a new link, a link the company already has, and a value that is not a link and stays in the field.
object
Example
{ "data": { "definition": { "kind": "TEXT" }, "rows": [ { "outcome": "create" } ] }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC