Delete Contact Field
Delete existing Contact Field Please, note, you cannot delete a Contact Field which is used in Automations, Email Campaigns (started or scheduled), and in conditions of Contact Segments (you'll see the corresponding error)
delete
Authorizations
Api-TokenstringRequired
Pass the API token in the Api-Token
Path parameters
field_idinteger · int64 · min: 1RequiredExample:
Unique Contact Field ID
3229Responses
204
Contact Field successfully deleted
No content
401
Returns unauthorized error message. Check your credentials.
application/json
403
Returns forbidden error message. Check your permissions.
application/json
404
Resource not found
application/json
422
Returns validation errors.
application/json
429
Rate limit exceeded for the current account.
application/json
500
Internal error. Retry later or contact support.
application/json
delete/api/contacts/fields/{field_id}
curl -X DELETE https://mailtrap.io/api/contacts/fields/{field_id} \
-H 'Authorization: Bearer YOUR_API_KEY'
No content
Last updated
Was this helpful?

