Skip to content

Reorder custom fields

Request

Security
Bearer
Path
companyIdstring, (uuid)required

Identifier for company.

Example:4974a66b-7493-4f41-908c-58ba81093947
Bodyapplication/jsonrequired
targetFieldIdstring, (uuid)required

The custom field id of the target position to which the fields needs to be moved.

directionstringrequired

This is used to determine the direction of movement - before or after the target field

Enum:"BEFORE""AFTER"
fieldIdsToMoveArray of strings, non-emptyrequired

Custom field ids who have to be moved below or above the target custom field.

curl -i -X POST \
  https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/4974a66b-7493-4f41-908c-58ba81093947/custom-fields/reorder \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "targetFieldId": "03db8a40-20d0-4089-b808-5dfc6aa1adc7",
    "direction": "BEFORE",
    "fieldIdsToMove": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ]
  }'

Responses

OK

Response
No content