Skip to main content
PUT
/
custom_fields
/
{custom_field_id}
Update custom field
curl --request PUT \
  --url https://api.partoo.co/v2/custom_fields/{custom_field_id} \
  --header 'Content-Type: application/json' \
  --header 'x-APIKey: <api-key>' \
  --data '{
  "name": "Click and collect",
  "type": "BOOLEAN",
  "force": false,
  "section_id": 6
}'
{
  "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

Body

application/json
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
  • Option 6
  • Option 7
  • Option 8

Boolean Custom Field

name
string

The name of the custom field

Required string length: 1 - 50
Example:

"Click and collect"

type
string

BOOLEAN

Minimum length: 1
Example:

"BOOLEAN"

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.

section_id
integer

Id of the custom field section

Example:

6

Response

OK

id
enum<string>

Request status

Available options:
success