Skip to content

Add a link to a company's resources

POST
/clients/{id}/resources
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/api/v1/clients/example/resources \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "isClientVisible": true, "projectId": "example", "title": "example", "url": "example" }'

Adds a link to the company’s Resources: the company’s own (General) by default, or under one of its projects with projectId. It is entered once; to move it later, update its projectId. isClientVisible defaults to false, so the link stays internal to the team until someone sets it to true. Only http and https addresses are accepted; files are added on the company’s Resources tab. 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 projectId that is not one of this company’s projects answers 422.

id
required

Resource identifier (CUID2).

string
>= 1 characters

Resource identifier (CUID2).

Media typeapplication/json
object
description
Any of:
string
<= 2000 characters
isClientVisible

Whether the company’s own users see the link in their portal. Defaults to false: the link stays internal to the team.

boolean
projectId

The project of this company the link belongs to, one the caller reaches and may manage (projects.manage). Omitted, the link is the company’s own (General).

string
>= 1 characters
title
required
string
>= 1 characters <= 200 characters
url
required

The link’s address, http or https.

string
<= 2048 characters

Example generated

{
"description": "example",
"isClientVisible": true,
"projectId": "example",
"title": "example",
"url": "example"
}

The link as saved.

Media typeapplication/json
object
data
required

A link or file the team added to a company (General) or to one of its projects.

object
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
description
required
string | null
id
required
string
isClientVisible
required

Whether the company’s own users see it in their portal; false keeps it to the team.

boolean
owner
required

The company itself (General) or the project of the company a resource is under.

object
kind
required

general for the company’s own, project for one of its projects.

string
Allowed values: general project
projectId
required

The project; null for General.

string | null
projectName
required

Its name; null for General.

string | null
title
required
string
type
required

link or file.

string
updatedAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
url
required

The link’s address. Null for a file, which opens from the company’s Resources tab.

string | null

Example

{
"data": {
"owner": {
"kind": "general"
}
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Invalid input.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.