Easymailing
Contact attributes

Archive a contact attribute

PUT /contact_attributes/{uuid}/actions/archive

PUT/contact_attributes/{uuid}/actions/archive

Archives a contact attribute: it stops accepting new values, but the values already stored are kept and its public code stays reserved. It can be restored.

When to use: When an attribute is no longer used but its history must be kept. This is the way to retire an attribute.

When not to use: To bring it back, use restore_contact_attribute. To remove only some options, use update_contact_attribute and archive those options.

Side effects: Records the change in the account's attribute change log, under the person who made the call. No webhook is fired. Archiving is refused while saved views, segments, campaigns, automations or other items in the app depend on the attribute.

Permissions: Requires the contacts.attributes.manage capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the contact attribute. Get it from list_contact_attributes.

Request Body

The updated ContactAttribute resource

TypeScript Definitions

Use the request body type in TypeScript.

Contact attributes of the public API (plan fase 3, Task 21): the definitions of the custom fields of a contact, 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/contact_attributes/3f6d2a9c-7b1e-4d58-a0c4-9e2b6f1d8c35/actions/archive" \  -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"    }  ]}