Create Product Custom Field

Creates a product custom field, if the requesting manager has access permissions to it.

  • Method: POST

  • URL: /api/v1/product-custom-fields/

Request body

Body parameters:

  • name (string, required)

  • default_value (string, required)

  • product (integer, required)

  • data_type (string, optional) — Choices: number, text, date/time

  • description (string, optional)

Example request

request.json
{
    "name": "cf2",
    "default_value": "2",
    "product": 1584723961091260
}

Example responses

200 — Created

404 — Not found

Was this helpful?