Add Entity Favorite Guide
POST/guide/v1/:entity_type/:entity_id/favorite-guide
Add a guide to an entity's favorites
Required Permissions:
-
For any entity (including themselves) any of:
guide:*,guide:engage:write:any -
For the entity themselves :
guide:engage:write:self
Request
Path Parameters
Possible values: [player]
- application/json
Body
required
Responses
- 200
- 403
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- Time Zone Aware Datetime
favorited_at
object
anyOf
Datetime that enforces that a timezone is given. Unix timestamps are allowed and forced into the UTC time zone
string
{
"guide_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"favorited_at": "2023-01-23T21:07:02.000000+00:00"
}
Error Codes:
-
auth_invalid_key_id- Invalid Authorization - Invalid Key ID in Access Token -
auth_invalid_version- Invalid Authorization - version -
auth_malformed_access- Invalid Authorization - malformed access token -
auth_not_jwt- Invalid Authorization -
auth_token_expired- Token is expired -
auth_token_format- Invalid Authorization - {} -
auth_token_invalid_claim- Token contained invalid claim value: {} -
auth_token_invalid_type- Invalid Authorization - Invalid Token Type -
auth_token_sig_invalid- Token Signature is invalid -
auth_token_unknown- Failed to parse token -
insufficient_permissions- Insufficient Permissions
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}