put https://{subdomain}.pinpointhq.com/api/v1/custom_fields/
Request format
In order to update a custom field you must send a JSON:API spec JSON object representing a custom field.
Differences from creation
This endpoint works much in the same way as the Create Custom Field.
There are two exceptions to this:
field_type
cannot be updated, this is because anycustom_attributes
that have already been created for thiscustom_field
will have a response based on the field type (e.g.custom_fields
that have a field type ofdate
will have been answered with a date and therefore can't be changed toboolean
). If you want to change thefield_type
you should create a newcustom_field
(and optionally delete the existing one).resource_type
cannot be updated.
Examples
{
"data": {
"id": "1",
"type": "custom_fields",
"attributes": {
"name": "Updated custom field"
}
}
}