Skip to main content
DELETE
/
custom_fields
/
{custom_field_id}
Delete custom field
curl --request DELETE \
  --url https://api.partoo.co/v2/custom_fields/{custom_field_id} \
  --header 'x-APIKey: <api-key>'
{
  "id": "success"
}

Authorizations

x-APIKey
string
header
required

The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey). An api_key is linked to a user. This user's role will give you different access level to the API features.

Path Parameters

custom_field_id
integer
required

Id of the custom field

Example:

42

Query Parameters

force
boolean
default:false

The deletion of a custom field or the update of its metadata can have impacts on custom fields which are already set for businesses.

  • If force is set to false, updates/deletions will be performed only if they are non-destructive.
    If some businesses would be impacted by the update/deletion, an exception will be returned.

  • If force is set to true, destructive modification will be performed and businesses' values will be deleted accordingly.

Response

OK

id
enum<string>

Request status

Available options:
success