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": {}
}
}Creates 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": {}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?