# Here is a curl example
curl \
-X POST "http://localhost:8888/api/PropertyCard/UpdateCase" \
-H "Authorization: {token}" \
-H "Content-Type: application/json" \
-d '{
"object_id": 123,
"record_guid": "123",
"thumbnail":[],
"fields": [
{
"key": "field1",
"value": "value1"
},
{
"key": "field2",
"value": "value2"
},
{
"key": "field3",
"value": "value4"
}
]
}'
This method allows you to update cases.
To update cases, you need to make a POST call to the following url:
:
http://localhost:8888/api/PropertyCard/UpdateCase
Result example :
[
{
"Success": "boolean",
"Message": "string",
"Data": object,
"CustomAction": Dictionary<object, object> ,
"CustomAttributes":Dictionary<object, object>
}
]
| Field | Parameter Type | Type | Description |
|---|---|---|---|
| object_id | body | long | Object Id. |
| record_guid | body | string | Record Guid. You can get from another method (http://localhost:8888/api/Objects/ObjectRecords). |
| thumbnail | body | byte[] | Add an image to use as a thumbnail (optional) |
| fields | body | List<PropertyCardFieldsParameters> |
fields. You can get from another method
(http://localhost:8888/api/PropertyCard/GroupsAndFieldsSettings).
PropertyCardFieldsParameters. Is an class with properties key: string value: string The value of single ObjectType field should be sample: { "key":"test", "value":"object_id,record_guid" } |
| Authorization | header | string | Add Authorization header token |