Get Specified Picklist Definition
Command
GET https://{server}/api/v1/{tenantId}/picklistDefns/{id}
Parameters
|
Name |
Required |
Data Type |
Description |
Parameter Type |
|---|---|---|---|---|
|
tenantId |
Yes |
String |
Unique identifier of the tenant. |
Path |
|
id |
Yes |
String |
Unique identifier of the picklist definition. |
Path |
Responses
Status and Error Codes
Successful Response Body
|
Field |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
hostId |
The identifier of the host instance that is returning the request. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
status |
The status of the request. Valid values:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
content |
Returns an array of records.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
messages |
If the status is SUCCESS, this field is always blank. If the status is ERROR, a validation error occurred. For example, the picklist definition ID in the URL is invalid. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
count |
The number of records returned. |
Examples
|
Sample API Call |
|---|
GET http://company.com/api/v1/pX3459712f8/picklistDefns/z22060618112573036186008 X-Application-Key: 30b5f27a684744116537882dda0e50efb8c5a6e26a7b7ad2f3fcb2c24436a840 Content-Type: application/json Authorization: Bearer eyJhbGciOiJSUzI1NiIsImprdSI6Imh0dHB= |
Successful Responses
|
Response Body Sample |
|---|
{
"hostId": "09071f29ceccd18667227a94122ba2f1",
"status": "SUCCESS",
"content": {
"pickListDefnId": "z22060618112573036186008",
"name": "re_assignments",
"label": "RE Assignments",
"description": "Picklist by API for FieldGlass company currencies",
"tenantId": "pX2f8122a19",
"referenceType": "API",
"fields": {
"key": [
"assignmentId"
],
"value": [
"assignmentTitle",
"assignmentRef"
]
},
"reference": {
"apiConnectionDefnId": "z22060618112323535908009",
"apiPath": "/resources/{resourceId}/assignments",
"apiFormat": "Fieldglass"
},
"createdTime": "2022-06-06 18:11:25.787 +0000",
"lastModifiedTime": null,
"createdBy": "tenant_admin",
"lastModifiedBy": null,
"activeFlag": true,
"readOnly": false
},
"messages": [],
"count": 1
} |
Error Responses
|
Response Body Error Sample - Invalid Picklist Definition ID in URL |
|---|
{
"hostId": "acfc5411b04391bc4ea4341cd20bc539",
"status": "ERROR",
"content": null,
"messages": [
{
"type": "ERROR",
"message": "Failed to Load Resource of Type PickListDefn with Arguments [z20041517331264945694a7]",
"code": "error.resourceNotFound",
"arguments": {
"type": "PickListDefn",
"id": "z20041517331264945694a7"
},
"key": "PickListDefn"
}
],
"count": -1
} |