Edit or move a company's resource
curl --request PATCH \ --url https://example.com/api/v1/clients/example/resources/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "example", "isClientVisible": true, "projectId": "example", "title": "example", "url": "example" }'Edits a link or file of the company’s Resources, its own or one under a project of the company: title, description and whether the company’s users see it, and for a link its address. projectId moves a link between the company’s own (General, null) and one of its projects; fields and move are saved together and the link always has exactly one owner. A file cannot be moved and its address cannot be changed (422). Requires the clients.edit permission and a client company inside the caller’s assignments (or clients.view_all). A link under a project also needs the Boards module, projects.view, projects.manage and that project inside the caller’s reach (or projects.view_all); without them a project’s link reads like a missing one and a project cannot be named as the owner. A resource of another company answers 404, and a projectId of another company’s project 422.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
Whether the company’s own users see it in their portal; false keeps it internal to the team.
The link’s address, http or https. A file’s address cannot be changed.
Example generated
{ "description": "example", "isClientVisible": true, "projectId": "example", "title": "example", "url": "example"}Responses
Section titled “Responses”The resource as saved.
object
A link or file the team added to a company (General) or to one of its projects.
object
Whether the company’s own users see it in their portal; false keeps it to the team.
The company itself (General) or the project of the company a resource is under.
object
general for the company’s own, project for one of its projects.
The project; null for General.
Its name; null for General.
link or file.
The link’s address. Null for a file, which opens from the company’s Resources tab.
Example
{ "data": { "owner": { "kind": "general" } }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}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" }}Invalid input.
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