Create a custom field

Create a custom field

POST https://{{accountSlug}}.myeshopbox.com/api/platform/v1/property

This endpoint allows you to create a custom field.

Headers

Request Body

{
  "label": "style code",
  "internalName": "stylecode4",
  "description": "this is style code property",
  "isUnique": "yes",
  "fieldType": "multi_select",
  "options": [
    "rock",
    "classy",
    "bestseller"
  ],
  "scope": [
    "recall consignment",
    "product"
  ],
  "createdAt": "2020-01-11T08:21:37.549Z",
  "updatedAt": "2020-01-21T08:21:37.549Z"
}'
curl --location --request POST 'http://localhost:8080/_ah/api/esb/v1/property' \
--header 'Content-Type: application/json' \
--header 'Authorization: ' \
--data-raw '{
  "accountSlug": "montecarlo",
  "label": "style code",
  "internalName": "stylecode4",
  "description": "this is style code property",
  "isUnique": "yes",
  "fieldType": "multi_select",
  "options": [
    "rock",
    "classy",
    "bestseller"
  ],
  "scope": [
    "recall consignment",
    "product"
  ],
  "createdAt": "2020-01-11T08:21:37.549Z",
  "updatedAt": "2020-01-21T08:21:37.549Z"
}'

Last updated