User Preferences
Authorizations
AuthorizationstringRequired
Enter your JWT token (without 'Bearer ' prefix)
Query parameters
user_idstringRequired
Responses
200
Successful Response
application/json
user_idstringRequired
notificationsstring[] · nullableOptionalDefault:
[]422
Validation Error
application/json
get/api/v1/user_preferences
GET /api/v1/user_preferences?user_id=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"user_id": "text",
"notifications": [
"text"
]
}Authorizations
AuthorizationstringRequired
Enter your JWT token (without 'Bearer ' prefix)
Body
user_idstringRequired
notificationsstring[] · nullableOptionalDefault:
[]Responses
200
Successful Response
application/json
user_idstringRequired
notificationsstring[] · nullableOptionalDefault:
[]422
Validation Error
application/json
post/api/v1/user_preferences
POST /api/v1/user_preferences HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"user_id": "text",
"notifications": [
"text"
]
}{
"user_id": "text",
"notifications": [
"text"
]
}Authorizations
AuthorizationstringRequired
Enter your JWT token (without 'Bearer ' prefix)
Path parameters
user_idstringRequired
Body
notificationsstring[] · nullableOptional
Responses
200
Successful Response
application/json
user_idstringRequired
notificationsstring[] · nullableOptionalDefault:
[]422
Validation Error
application/json
put/api/v1/user_preferences/{user_id}
PUT /api/v1/user_preferences/{user_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"notifications": [
"text"
]
}{
"user_id": "text",
"notifications": [
"text"
]
}Last updated
