PUT
/{orgId}/{itemId}/lookups/{lookupType}
Create or update a lookup table. The adminBasic or adminAdvanced privilege is required.
Lookup Parameters:
Parameter | Description | Data Type |
---|---|---|
lookupName | Required. Name of the lookup to be created or updated. | String |
values | Required. Assign value to the different lookup names. | Integer |
Query parameters
Name | Type | Required |
---|---|---|
token | string¦null |
Body parameters
Supported content types: application/json
Type: Lookups
The lookup table to be created or updated
Name | Type | Required |
---|---|---|
lookups | [Lookup] |
Path parameters
Name | Type | Required |
---|---|---|
lookup | string | |
org | string | |
item | string |
Response status
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | success | Success |
500 | Internal Server Error | error | WorkflowJsonExceptionDTO |
Examples
Request
# You can also use wget
curl -X PUT /{orgId}/{itemId}/lookups/{lookupType} \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{"lookups":[{"lookupName":"string","value":0}]}'
Response
{
"success": true
}