POST /config/resource_restrictions
Creates a new resource restriction.
Creates a new resource restriction.
MIME Type |
---|
application/json |
Parameter | Type | Optionality | Data Type | MIME Type | Description |
---|---|---|---|---|---|
fields |
header |
Optional |
String |
text/plain |
Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas. |
Parameter | Data Type | MIME Type | Description | Sample |
---|---|---|---|---|
resourceRestriction |
Object |
application/json |
Required - The resource restriction to be added. Only one of the ID fields (user_id, tenant_id, role_id) can be provided. |
{ "data_window": 42, "execution_time": 42, "id": "String", "record_limit": 42, "role_id": 42, "tenant_id": 42, "user_id": 42 } |
HTTP Response Code | Unique Code | Description |
---|---|---|
200 |
The new resource restriction was successfully created. |
|
404 |
1009 |
The consumer (user, tenant, or role) provided was not found. |
422 |
1008 |
One of: user_id, role_id, or tenant_id |
500 |
1010 |
An error occurred during the attempt to create a resource restriction. |
Response Description
The associated restriction object.
Response Sample
{
"data_window": 42,
"execution_time": 42,
"id": "String",
"record_limit": 42,
"role_id": 42,
"tenant_id": 42,
"user_id": 42
}