Move a client field's links to Resources
curl --request POST \ --url https://example.com/api/v1/clients/field-definitions/example/resource-conversion \ --header 'Authorization: Bearer <token>'Adds each company’s link from a client custom field to that company’s own (General) resources, visible to the team only and titled with the field’s name, skipping a link the company already has. Field values are kept, never deleted. The field is turned off only when every value became or already was a link; a value that is not a link keeps the field active. Running it again creates nothing new. Preview first with GET on the same path. Requires the settings.manage, clients.edit and clients.view_all permissions together.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Responses
Section titled “Responses”How many links were created, already there or left as text.
object
How many links a client custom field’s move created, found already there, or left as text.
object
True when this call turned the field off, which happens only when no value was left behind. Values are kept either way.
Example generated
{ "data": { "created": 1, "deactivated": true, "duplicates": 1, "notLinks": 1 }}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" }}Company values changed while the links were moving; try again.
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" }}A secret field, or a kind that never holds a link.
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