Create Versions of Picklists

Create versions of picklists in Vlocity Product Console by specifying the ID of the picklist and the version label in the request body.

1POST /v2/epc/picklists/{picklist-ID}/versions

Remote Method 

1createVersionPicklist

REST Handler 

1APIPicklistVersionRestHandler

Apex Remote Service 

1PCAppHandler

Package 

Communication (vlocity_cmt)

API Parameters and Response Format 

For API parameter names and descriptions, see the Swagger (OpenAPI) reference documentation for Industries EPC REST APIs.

Resource Information 

Response FormatJSON
Resource URL/services/apexrest/{namespace}/v2/epc/picklists/{picklists-ID}/versions

Example Request 

1POST /v2/epc/picklists/01t3h00000214uLAAQ/versions
2
3{
4  "epcRequest": {
5    "entity": {
6        "Id": "a313h000000rtuJAAQ",
7        "vlocity_cmt__VersionLabel__c": "Version-2"
8    }
9  }
10}

Example Result 

1{
2    "epcResponse": {
3        "entities": [
4            {
5                "entity": {
6                    "attributes": {
7                        "type": "vlocity_cmt__Picklist__c",
8                        "url": "/services/data/v53.0/sobjects/vlocity_cmt__Picklist__c/a313h000000rtuOAAQ"
9                    },
10                    "CurrencyIsoCode": "USD",
11                    "IsDeleted": false,
12                    "LastReferencedDate": "2021-11-12T10:32:15.000+0000",
13                    "LastViewedDate": "2021-11-12T10:32:15.000+0000",
14                    "Name": "Picklist-Example-02",
15                    "OwnerId": "0053h000002UGCUAA4",
16                    "SystemModstamp": "2021-11-12T10:32:15.000+0000",
17                    "vlocity_cmt__Code__c": "Picklist-Example-02",
18                    "vlocity_cmt__DataType__c": "Text",
19                    "vlocity_cmt__GlobalGroupKey__c": "090c692b-e78a-d460-2786-f423ff08af94",
20                    "vlocity_cmt__GlobalKey__c": "969fcdfc-c2d5-dabd-93b3-bd82194b435b",
21                    "vlocity_cmt__IsActive__c": true,
22                    "vlocity_cmt__IsShared__c": false,
23                    "vlocity_cmt__LifecycleStatus__c": "Draft",
24                    "vlocity_cmt__VersionLabel__c": "Version-2",
25                    "Id": "a313h000000rtuOAAQ"
26                }
27            }
28        ],
29        "overallResult": "success"
30    }
31}