Skip to main content
POST
Create album item

Authorizations

Authorization
string
header
required

Authenticate with an API access token in the Authorization header: Authorization: Bearer <token>. Create a token from the API Access Tokens page in Contractors Cloud, under Integrations.

Path Parameters

projectId
integer
required

The id of the project.

albumId
integer
required

The id of the project album.

Body

application/json
project_file_id
integer
required

The id of the project photo to add to the album. Required. Must be a photo belonging to the same project, and must not already be placed in this album. Album items don't upload photos themselves — first upload the photo with Create project file, then attach it here by its id.

Example:

52130

position
integer

The item's 1-based position within the album. Optional; when given, items already at or after this position shift back to make room. Must be between 1 and the current number of items in the album, plus one. When omitted, the item is appended to the end of the album.

Required range: x >= 1

Response

The created album item.

id
integer

The album item's unique identifier.

Example:

90210

tenant_id
integer

The id of your organization's account.

Example:

12

project_id
integer

The id of the project this album item belongs to.

Example:

9103

album_id
integer

The id of the album this item belongs to.

Example:

6601

project_file_id
integer

The id of the project photo this item displays. See Project File.

Example:

52130

position
integer

The item's 1-based position within the album, determining the order photos are laid out when the album is rendered to PDF.

Example:

1