DELETE
/
api
/
people
/
fields
/
{id}
/
curl --location --request DELETE 'https://app.audienceful.com/api/people/fields/{id}/' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <token>'
{
    "id": "4XJA8RZ6kJRwMJYDBETyZa",
    "name": "Test Field",
    "data_name": "test_field",
    "type": "string",
    "editable": true
}

Body

id
string
required

The id of the field you wish to delete

Response

We return the object that was just deleted for any local cache management you may have to do with your application.

id
string

The id of the field

name
string

The human readable name of the field

data_name
string

The data name of the field is used in subsequent API requests for people

editable
boolean

Allows the field to be edited or not (default fields such as email or tags are not editable)

type
string | boolean | tag | number

The type of data stored in the field

curl --location --request DELETE 'https://app.audienceful.com/api/people/fields/{id}/' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <token>'
{
    "id": "4XJA8RZ6kJRwMJYDBETyZa",
    "name": "Test Field",
    "data_name": "test_field",
    "type": "string",
    "editable": true
}