An array of custom data fields of the appointment. Each item in the array is an object with the id and value of the custom field. The format of the object is:
{
"id": "value",
"value": "value"
}
Custom Fields like "Phone" require a different structure. The following is an example of storing a phone number:
{
"id": "5f61c6381a34817e5c7fa218",
"value": "{\"number\":\"123456789\",\"country\":\"DE\"}"
}
Note the value param needs to be a string. For example, you need to use JSON.stringify() or the equivalent in the programming language of your integration.
Adding files: First, upload the file(s) using the corresponding endpoint.
The response will resemble this structure:
"url": "https://s3.eu-central-1.amazonaws.com/data.timify.com/temporary/2022-02-10_12/private-uploads/my-picture.png",
"key": "temporary/2022-02-10_12/private-uploads/my-picture.png"
} ```
Add the following custom field:
``` {
"id": "612cdd6cda1af85e64419256",
"values_add": [
{
"key":"temporary/2022-02-10_12/private-uploads/profile-picture.png",
"name": "profile-picture.png"
}
],
"values_remove": [
"https://s3.eu-central-1.amazonaws.com/data.timify.com/private-uploads/6006f0e2b2d180176c2a3361/d4af4379-c075-4d0e-9c80-24e0287205b8.png"
]
} ```
If the data field has multiple files, add all files in an array following the same data structure.