Get Started with Communications, Media, and Energy (CME) Common APIs
Documentation Changelog
EPC API Swagger Reference
EPC API Response Format
Create Picklists
Retrieve Picklist Details
Update Picklists
Delete Picklists
Create picklists in Vlocity Product Console by specifying them in the request body.
1POST /v2/epc/picklists1createPicklist1APIPicklistRestHandler1PCAppHandlerCommunication (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 |
1POST /v2/epc/picklists
2
3{
4 "epcRequest": {
5 "entity": {
6 "Name": "Picklist-Example",
7 "vlocity_cmt__Code__c": "Picklist-Example",
8 "vlocity_cmt__VersionLabel__c": "Version-1",
9 "vlocity_cmt__DataType__c": "Text",
10 "vlocity_cmt__LifecycleStatus__c": "Draft",
11 "vlocity_cmt__IsActive__c": true
12 }
13 }
14}1{
2 "epcResponse": {
3 "entities": [
4 {
5 "entity": {
6 "attributes": {
7 "type": "vlocity_cmt__Picklist__c",
8 "url": "/services/data/v52.0/sobjects/vlocity_cmt__Picklist__c/a313h000000rqfRAAQ"
9 },
10 "Id": "a313h000000rqfRAAQ",
11 "OwnerId": "0053h000002UGCUAA4",
12 "IsDeleted": false,
13 "Name": "Picklist-Example",
14 "CurrencyIsoCode": "USD",
15 "CreatedDate": "2021-09-02T07:37:46.000+0000",
16 "CreatedById": "0053h000002UGCUAA4",
17 "LastModifiedDate": "2021-09-02T07:37:46.000+0000",
18 "LastModifiedById": "0053h000002UGCUAA4",
19 "SystemModstamp": "2021-09-02T07:37:46.000+0000",
20 "LastViewedDate": "2021-09-02T07:37:46.000+0000",
21 "LastReferencedDate": "2021-09-02T07:37:46.000+0000",
22 "vlocity_cmt__Code__c": "Picklist-Example",
23 "vlocity_cmt__DataType__c": "Text",
24 "vlocity_cmt__GlobalGroupKey__c": "66b60d23-8a58-397e-30fb-f1b0fe85ad92",
25 "vlocity_cmt__GlobalKey__c": "cdbe7a6f-0cb8-b239-43a4-a13780fdf702",
26 "vlocity_cmt__IsActive__c": true,
27 "vlocity_cmt__IsShared__c": false,
28 "vlocity_cmt__LifecycleStatus__c": "Draft",
29 "vlocity_cmt__VersionLabel__c": "Version-1"
30 }
31 }
32 ],
33 "overallResult": "success"
34 }
35}