POST/ create
| Route | {root}/v4/user-restriction/create |
| Request type | BODY |
| User level | SUPER USER |
| Requires authentication | Yes |
| Response type | Single |
Parameters
| Name | Type | Nullable? | Required? | Min. | Max. | Nest | Custom |
|---|---|---|---|---|---|---|---|
| user_id | [INT32] | REQUIRED | 0 | 2147483647 | - | - | |
| restricted_user_id | [INT32] | REQUIRED | 0 | 2147483647 | - | - | |
| reverse_entry | [BOOLEAN] | REQUIRED | - | - |
Sample cURL
curl --location --request POST "{{ROOT}}user-restriction/create/" \
-H "Authorization: Bearer {{BEARER_TOKEN}}" \
-H "app-id:{{APP_ID}}" \
-H "Content-Type: application/json" \
-H "Accept-Encoding: gzip" \
-H "accept: */*" \
--data '{"user_id": "123456","restricted_user_id": "123456","reverse_entry": false}'
Sample response
[
{
"object_name":"user_restriction_id",
"type":"Int32",
"is_nullable":false,
"nest":null,
"custom":null
"note":
}
]