GET /api/v1/galleries/:id/teams
Display all teams and their access rights in regards to a gallery.

Metadata

- Authentication: The user must be authenticated to perform this action.

Params

Param name Description
id
required

ID of the gallery to serve as a base for finding related teams.

Validations:

  • Must be a String


GET /api/v1/galleries/:id/effective_access_rights
Show all users mapped to the teams that give them access rights to a gallery.

Metadata

- Authentication: The user must be authenticated to perform this action.

Params

Param name Description
id
required

ID of the gallery

Validations:

  • Must be a String


PUT /api/v1/galleries/:id/teams
Update access rights of a team to a gallery.

Metadata

- Authentication: The user must be authenticated to perform this action.

Params

Param name Description
id
required

ID of the gallery.

Validations:

  • Must be a String

team_id
required

ID of the team.

Validations:

  • Must be a String

write
optional
true | false

Indicates whether the access to the gallery should be read/write or read-only. Default: false

Validations:

  • Must be a String


DELETE /api/v1/galleries/:id/teams/:team_id
Remove access rights of a team to a gallery.

Metadata

- Authentication: The user must be authenticated to perform this action.

Params

Param name Description
id
required

ID of the gallery.

Validations:

  • Must be a String

team_id
required

ID of the team.

Validations:

  • Must be a String


PUT /api/v1/galleries/:id/update_teams
Bulk update access rights for a gallery.

Metadata

- Authentication: The user must be authenticated to perform this action.

Params

Param name Description
id
required

ID of the gallery.

Validations:

  • Must be a String

own_teams
required

Apply update to users (own teams) or normal teams.

Validations:

  • Must be one of: true, false.

revoke
optional

Revoke all access rights to the gallery

Validations:

  • Must be one of: true, false.

write
optional

Grant write access to the galleries (default is read only)

Validations:

  • Must be one of: true, false.


PUT /api/v1/galleries/update_teams/:team_id
Bulk update access rights for a galleries for a specific team id.

Metadata

- Authentication: The user must be authenticated to perform this action.

Params

Param name Description
team_id
required

ID of the gallery.

Validations:

  • Must be a String

revoke
optional

Revoke all access rights to the gallery

Validations:

  • Must be one of: true, false.

write
optional

Grant write access to the galleries (default is read only)

Validations:

  • Must be one of: true, false.


POST /api/v1/assets/:asset_id/review_request
Requests approval for the asset from all gallery users which are approvers.

Metadata

- Authentication: The user must be authenticated to perform this action.

Params

Param name Description
asset_id
optional

ID of the asset.

Validations:

  • Must be a Integer


PATCH /api/v1/assets/:asset_id/review_request
Updates the approval status of the given asset for the current user.

Metadata

- Authentication: The user must be authenticated to perform this action.

Params

Param name Description
asset_id
optional

ID of the asset.

Validations:

  • Must be a Integer

status
optional

Approval status, either pending, approved or needs_revision.

Validations:

  • Must be a Integer


DELETE /api/v1/assets/:asset_id/review_request
Cancels the approval request for the given asset.

Metadata

- Authentication: The user must be authenticated to perform this action.

Params

Param name Description
asset_id
optional

ID of the asset.

Validations:

  • Must be a Integer


POST /api/v1/assets/:asset_id/review_request
Forcefully approves the asset, deleting all previous approval requests.

Metadata

- Authentication: The user must be authenticated to perform this action.

Params

Param name Description
asset_id
optional

ID of the asset.

Validations:

  • Must be a Integer