Entity properties enable third-party applications to store key-value pairs for entity records. This facilitates the mapping of elements across applications and limits the number of API calls to create records in ServiceDesk Plus Cloud.
Entity properties are not visible in the UI but can be accessed through REST API.
Requests
Changes
Entity property values must be a string or a JSON object.
Entity properties are global and can be edited or deleted by any user with at least viewing permission to the entity record.
| Operation | Input | Output |
|
Insert a key |
url /api/v3/{parent_entity}/{parent_entity_id}/entity_instance_properties
method post |
{"response_status":{"status_code":2000,"status":"success"},"entity_instance_property":{"name":"associated_zohodeskticket_id","value":"12345","id":"100000000000038005"}} |
|
Get all keys |
url /api/v3/{parent_entity}/{parent_entity_id}/entity_instance_properties
method get |
{"response_status":[{"status_code":2000,"status":"success"}],"list_info":{"has_more_rows":false,"sort_field":"name","row_count":1},"entity_instance_properties":[{"name":"associated_zohodeskticket_id","value":"12345"}]} |
|
Search a key |
url /api/v3/{parent_entity}/{parent_entity_id}/entity_instance_properties
method Get
input_data {list_info:{row_count:1,get_total_count:true, search_criteria:[{field:'name', condition :'is', value : "associated_zohodeskticket_id"}]}} |
{"response_status":[{"status_code":2000,"status":"success"}],"list_info":{"has_more_rows":false,"start_index":1,"sort_field":"name","total_count":1,"page":1,"search_criteria":[{"condition":"is","field":"name","value":"associated_zohodeskticket_id"}],"get_total_count":"true","row_count":1},"entity_instance_properties":[{"name":"associated_zohodeskticket_id","value":"12345","id":"100000000000038005"}]} |
|
Update a key |
url /api/v3/{parent_entity}/{parent_entity_id}/entity_instance_properties/{entity_property_id}
method put
input_data {"entity_prop":{"name":"associated_zohodeskticket_id","value":"123451"}} |
{"response_status":{"status_code":2000,"status":"success"},"entity_instance_property":{"name":"associated_zohodeskticket_id","value":"123451","id":"100000000000038005"}} |
|
Delete a key |
url /api/v3/{parent_entity}/{parent_entity_id}/entity_instance_properties/{entity_property_id}
method delete |
{"response_status":{"status_code":2000,"status":"success"}} |