Get Started with Communications, Media, and Energy (CME) Common APIs
Documentation Changelog
EPC API Swagger Reference
EPC API Response Format
Create Versions of Picklists
Retrieve the 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}/versions1createVersionPicklist1APIPicklistVersionRestHandler1PCAppHandlerCommunication (vlocity_cmt)
For API parameter names and descriptions, see the Swagger (OpenAPI) reference documentation for Industries EPC REST APIs.
| Response Format | JSON |
|---|---|
| Resource URL | /services/apexrest/{namespace}/v2/epc/picklists/{picklists-ID}/versions |
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}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}