Skip to main content
POST
/
api
/
v2
/
platform
/
option_types
Create an Option Type
curl --request POST \
  --url http://{defaultHost}/api/v2/platform/option_types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "option_type": {
    "name": "color",
    "presentation": "Color",
    "public_metadata": {},
    "private_metadata": {}
  }
}
'
{
  "data": {
    "id": "<string>",
    "type": "<string>",
    "attributes": {},
    "relationships": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
option_type
object
required

Response

Record created

data
object
required