Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

POST /config/resource_restrictions

 

Creates a new resource restriction.

Creates a new resource restriction.

Table 1: POST /config/resource_restrictions Resource Details

MIME Type

application/json

Table 2: POST /config/resource_restrictions Request Parameter Details

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.

Table 3: POST /config/resource_restrictions Request Body Details

Parameter

Data Type

MIME Type

Description

Sample

resource

Restriction

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 }

Table 4: POST /config/resource_restrictions Response Codes

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