Skip to content

Get user content restrictions

GET
/api/v1/users/{userId}/content-restrictions
curl --request GET \
--url http://127.0.0.1:58259/api/v1/users/1/content-restrictions

Retrieve all content restrictions for a specific user

userId
required
integer format: int64

ID of the user

Content restrictions retrieved 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 or own user

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