Set Value to Custom Fields
Set value to custom fields for a property or reservation.
HTTP Request​
POST https://dev.calry.app/api/v2/vrs/custom-fields/set-values
Headers​
Header | Value |
---|---|
Authorization | Bearer YOUR_ACCESS_TOKEN |
workspaceId | YOUR_WORKSPACE_ID |
integrationAccountId | YOUR_INTEGRATION_ACCOUNT_ID |
Request Body​
The request body should be a JSON object containing the following fields:
Field | Required | Type | Description |
---|---|---|---|
customFieldId | Yes | integer | The unique identifier for the custom field. |
entityId | Yes | string | The unique identifier for the entity. |
entityType | Yes | CustomFieldEntityType | Entity type for which the custom field is created. |
value | Yes | any | Value for the custom field. |
Example Request​
curl --location 'https://dev.calry.app/api/v2/vrs/custom-fields/set-values' \
--header 'Authorization: Bearer eyJraWQiOiJzLWMwMzE2MzExLTg3NDktNGNhMC05NDg0LTBlNWM1ZDVlMDExOSIsInR5cCI6IkpXVCIsImFsZyI6IlJTMjU2In0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjMwMDAvYXV0aCIsInVzZXJJZCI6ImM2OGY4MTkzLWU2MTAtNDY2Mi05NzU4LWQ2ZjEyYWE4MDA4NiIsIndvcmtzcGFjZUlkIjoiMTQ4Nzc5NmQtM2ZjZC00YTYyLTg4NGEtM2FhYmE1MDdlNzMyIiwibmFtZSI6InNhZnNhZCIsInNvdXJjZSI6Im1pY3Jvc2VydmljZSIsImlhdCI6MTcxNTY5NTE0NiwiZXhwIjoxNzE1ODE2MzU4fQ.G5ivhtRB12zvjyrO5OXe5kF0sassWFPW802UtkxJy2DwWQKeweajZjRxMoWEpSri2cczN1fxeTAM5mnHGzjkFgdxgmHfqjua3CY2DMHs7Yzc1nFGguCZ0mS4wY5TYFpqlIeld13994vAXlM6Swn2Va7xdrq8yMrduMy3iGG2zpMB7Uw5diZzSGoUbKO7dq7Yxsqt1T8xAQ8UCdsSZbe6iUqfFddNvuQZ6G5nuiAZqKQDDy9EEsqGOYRABO_7P5bm6ZHyiLPJvOnTOLoro3NaR4kqm8lCGHQp8AK9gE22NUalxUyKSraRN6HAC3slkuW8D5gCZJGi7lqaOru4zzddycszWEvPqRg' \
--header 'workspaceId: 1487796d-3fcd-4a62-884a-3aaba507e732' \
--header 'integrationAccountId: 2462d083-7951-4b67-96c9-a83384d59af3' \
--header 'Content-Type: application/json' \
--data '{
"customFieldId" : 59970,
"entityId": "212815",
"entityType": "property",
"value": "43223232"
}'
Example Response​
{
"success": true,
"data": {
"id": 59970
}
}