Profiles
Profiles related to Holidaze
These are authenticated endpoints. You can visit authentication to get an access token.
This endpoint allows you to manage profiles. They are the users of the Holidaze site.
These endpoints support pagination and sorting. Read more about these features here.
The Profile model
Prop | Type | Default |
---|---|---|
name | string | - |
email | string | - |
avatar | string | - |
venueManager | boolean | - |
_count | Object | - |
Query parameters
Not all of the properties of a profile are returned by default. You can use the following optional query parameters to include additional properties in the response.
Prop | Type | Default |
---|---|---|
_bookings | boolean | false |
_venues | boolean | false |
All profiles
Retrieve all profiles.
Single profile
Retrieve a single profile by its id.
All bookings by profile
Retrieve all bookings made by profile.
The response is the same as the bookings endpoint, and accepts the same optional query parameters and flags.
All venues by profile
Retrieve all venues made by profile.
The response is the same as the venues endpoint, and accepts the same optional query parameters and flags.
Update profile
This endpoint allows for the profile venueManager
boolean to be changed.
If you want to update the profile avatar
image, use the Update profile media endpoint.
Update profile media
Update or set profile avatar
image.
Remove the avatar
by setting the property to null
.
Please note that the avatar
property must be fully formed URL that links to a live and publicly accessible image. The API will check the provided URL and if it cannot be accessed publicly you will receive a 400 error response.