Get Started with Communications, Media, and Energy (CME) Common APIs
Documentation Changelog
EPC API Swagger Reference
EPC API Response Format
Create Picklist Items
Retrieve Details of Items in a Picklist
Update Picklist Items
Delete Picklist Items
Create picklist items in Vlocity Product Console by specifying them in the request body.
1POST /v2/epc/picklists/{picklist_ID}/items1createPicklistValue1APIPicklistItemRestHandler1PCAppHandlerCommunication (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/{picklist_ID}/items |
1POST /v2/epc/picklists/a313h000000rqfbAAA/items
2{
3 "epcRequest": {
4 "entity": {
5 "vlocity_cmt__TextValue__c": "Bangalore",
6 "Name": "Bangalore",
7 "vlocity_cmt__Code__c": "Bangalore",
8 "vlocity_cmt__Abbreviation__c": "Bangalore",
9 "vlocity_cmt__Sequence__c": 1,
10 "vlocity_cmt__IsActive__c": true,
11 "vlocity_cmt__PicklistId__c": "a2u4T000003xGYQQA2"
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/a313h000000rqfbAAA"
9 },
10 "Id": "a313h000000rqfbAAA",
11 "OwnerId": "0053h000002UGCUAA4",
12 "IsDeleted": false,
13 "Name": "Bangalore",
14 "CurrencyIsoCode": "USD",
15 "CreatedDate": "2021-09-02T10:05:16.000+0000",
16 "CreatedById": "0053h000002UGCUAA4",
17 "LastModifiedDate": "2021-09-02T10:05:16.000+0000",
18 "LastModifiedById": "0053h000002UGCUAA4",
19 "SystemModstamp": "2021-09-02T10:05:16.000+0000",
20 "LastViewedDate": "2021-09-02T10:05:16.000+0000",
21 "LastReferencedDate": "2021-09-02T10:05:16.000+0000",
22 "vlocity_cmt__DataType__c": "Text",
23 "vlocity_cmt__GlobalGroupKey__c": "51af4c1a-995f-2fff-c25d-c6badf1ebd63",
24 "vlocity_cmt__GlobalKey__c": "6f776181-87c4-517e-ba72-5bc8e7b985fc",
25 "vlocity_cmt__IsActive__c": true,
26 "vlocity_cmt__IsShared__c": false,
27 "vlocity_cmt__LifecycleStatus__c": "Draft"
28 }
29 }
30 ],
31 "overallResult": "success"
32 }
33}