Contact Custom FieldsDelete a Custom Field
Delete a Custom Field
Delete a custom_field
Deleting a custom_field is a multi-step process that is completed asynchronously. Here's what happens when you delete a custom field:
- The custom_field resource is deleted.
- The custom_field subresource is then removed from all contacts to which it was applied.
The system responds with a 204 No Content.
Example DELETE Call
DELETE
https://api.cc.email/v3/contact_custom_fields/{custom_field_id}Endpoint Requirements
User privileges: contacts:writeAuthorization scopes: contact_dataOkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
.url("https://api.cc.email/v3/contact_custom_fields/{custom_field_id}")
.delete(body)
.addHeader("Accept", "application/json")
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer {access_token}")
.build();
Response response = client.newCall(request).execute();