Example: POST method request and response
This sample code submits a request to an external data service when an IBM Content Navigator user selects a value for the region property, Region. The service then updates the choice list for the branch office property, BranchOffice, which depends on the Region property.
- Request example
POST /type/class_name_or_item_type_name { "repositoryId":"ObjectStore1", "objectId" : "{EC4D244B-5980-4...6978-8796-A5B4C3D2E1F0}", "requestMode" : "inProgressChanges", "properties": [ { "symbolicName" : "Region", "value" : "Western", } ], "clientContext": { "userid":"user1", "locale":"en_US", "desktop": "default" } }- Response example
{ "externalDataIdentifier": "opaque_identifier_meaningful_to_the_service", "properties": [ { "symbolicName": "Region", "hasDependentProperties": true },{ "symbolicName": "BranchOffice", "choiceList": { "displayName": "Western Branch Offices", "choices": [{ "displayName": "Los Angeles", "value": "Los Angeles" }, { "displayName": "San Francisco", "value": "San Francisco" }, { "displayName": "Salt Lake City", "value": "Salt Lake City" }, { "displayName": "Seattle", "value": "Seattle" }] } } ] }