Skip to content

Update all content restrictions

PUT
/api/v1/users/{userId}/content-restrictions
curl --request PUT \
--url http://127.0.0.1:58259/api/v1/users/1/content-restrictions \
--header 'Content-Type: application/json' \
--data '[ { "id": 1, "userId": 1, "restrictionType": "CATEGORY", "mode": "EXCLUDE", "value": "example", "createdAt": "2026-04-15T12:00:00Z" } ]'

Replace all content restrictions for a user

userId
required
integer format: int64

ID of the user

Media type application/json

List of content restrictions

Array<object>

Content restriction to add

object
id
integer format: int64
userId
integer format: int64
restrictionType
string
Allowed values: CATEGORY TAG MOOD AGE_RATING CONTENT_RATING
mode
string
Allowed values: EXCLUDE ALLOW_ONLY
value
string
createdAt
string format: date-time

Content restrictions updated successfully

Media type */*
Array<object>

Content restriction to add

object
id
integer format: int64
userId
integer format: int64
restrictionType
string
Allowed values: CATEGORY TAG MOOD AGE_RATING CONTENT_RATING
mode
string
Allowed values: EXCLUDE ALLOW_ONLY
value
string
createdAt
string format: date-time

Forbidden - requires admin

Media type */*
Array<object>

Content restriction to add

object
id
integer format: int64
userId
integer format: int64
restrictionType
string
Allowed values: CATEGORY TAG MOOD AGE_RATING CONTENT_RATING
mode
string
Allowed values: EXCLUDE ALLOW_ONLY
value
string
createdAt
string format: date-time

User not found

Media type */*
Array<object>

Content restriction to add

object
id
integer format: int64
userId
integer format: int64
restrictionType
string
Allowed values: CATEGORY TAG MOOD AGE_RATING CONTENT_RATING
mode
string
Allowed values: EXCLUDE ALLOW_ONLY
value
string
createdAt
string format: date-time