PedibeeDocs

Delete a custom field

Delete a field and clear its value from every contact.

DELETE/api/v1/contact-fields/:id
Scopecontacts:write

Deletes the field and removes its value from every contact. This can't be undone. contactsCleared says how many contacts had a value.

Path parameters

Prop

Type

Example request

curl -X DELETE "https://api.pedibee.com/api/v1/contact-fields/66f1c2a9e4b0a1b2c3d4e201" \
  -H "Authorization: Bearer $PEDIBEE_API_KEY"

Response

200 OK
{
  "deleted": true,
  "id": "66f1c2a9e4b0a1b2c3d4e201",
  "contactsCleared": 128
}

Errors

Every error is { "error": "…" } with a message you can show. See Errors and limits.

StatusWhen
403The key doesn’t have contacts:write, or its creator’s role no longer allows it.
404No field with this id in your workspace.
401The API key is missing, invalid, revoked or expired.
429Too many requests. Wait for the seconds in Retry-After.

On this page