Restore a company attribute
PUT /company_attributes/{uuid}/actions/restore
/company_attributes/{uuid}/actions/restoreRestores an archived company attribute: it accepts new values again and keeps the values it had.
When to use: To bring back an attribute that was archived, instead of creating a new one with the same name.
When not to use: To archive an attribute, use archive_company_attribute. To rename it as well, restore it first and then use update_company_attribute.
Side effects: Records the change in the account's attribute change log, under the person who made the call. No webhook is fired.
Permissions: Requires the crm.companies.attributes.manage capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the company attribute. Get it from list_company_attributes.
The updated CompanyAttribute resource
TypeScript Definitions
Use the request body type in TypeScript.
Company attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a company, over AttributeDefinitionManager. Generated from the approved proposal by fase-3/tools/gen_attribute_resources.py and edited by hand afterwards: the texts are the proposal's.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/company_attributes/9a4e7c12-3d85-4b60-8f1a-6c2d0e5b7f93/actions/restore" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "version": 1 }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "description": "string", "public_code": "string", "type": "text", "currency": null, "status": "active", "position": 0, "version": 0, "current_value_count": 0, "ever_used": true, "options": [ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "label": "string", "color": "string", "integration_key": "string", "position": 0, "status": "active" } ]}