Hi, is there an way to remove a custom field from a list without deleting the custom field?
Yes-
You can get get the field and their “relationship id” (the id of the field in the list) by making a GET request to https://{{yourAccountName}}.api-us1.com/api/3/fields.
You will get a list of relationships as well as other information:
"fieldRels": [
{
"field": "7",
"relid": "1",
"dorder": "0",
"cdate": "2022-03-30T14:47:39-05:00",
"links": [],
"id": "7"
}...
Find the relationship id (relid
) that you want to remove, and send a DELETE request to
https://{{yourAccountName}}.api-us1.com/api/3/fieldRels/{{relid}} you will get a 200
success response on successful removal of customfield-to-list relationship.
1 Like