Skip to main content
POST
Assign my profile photo

Body

application/json

Request to assign a single photo to a resource (e.g., profile photo).

photoId
string
required

The ID of the photo to assign. The photo must have state 'approved'.

Response

Created.

A photo assignment to a resource.

id
string
required

The unique identifier for this photo assignment.

photo
object
required

The photo that is assigned.

createdAt
string<date-time>
required

The date-time when this resource was created, in RFC 3339 date-time YYYY-MM-DDThh:mm:ss.sssZ format, UTC. This is derived and immutable.

updatedAt
string<date-time>
required

The date-time when this resource was updated, in RFC 3339 date-time YYYY-MM-DDThh:mm:ss.sssZ format, UTC. This is derived and immutable.

sortOrder
integer<int32>

The sort order for this photo. Lower numbers appear first. Omitted for single photo assignments.

Required range: x >= 0
metadata
object

Metadata for this assignment when the photo is part of a barber's portfolio.