curl --location -g --request POST 'http://ecompulse.test/api/v1/admin/option-types' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "dimension",
"style_id": 2
}'
{
"status": "success",
"message": "Option type created successfully",
"data": {
"id": 4,
"name": "dimension",
"style": {
"id": 2,
"value": "Checkbox"
},
"status": 1
}
}
Authorization: Bearer ********************