order_id as a path parameter.orders.read_write - Orders Read & WriteAuthorization: Bearer ********************{
"name": "Order Option Name",
"description": "Order Option Description",
"is_required": true,
"type": "text",
"length": "80|200",
"is_multi_choice": false,
"selected_products": true,
"categories": [
212,
223,
224
]
}curl --location --request PUT 'https://api.salla.dev/admin/v2/order/options/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Order Option Name",
"description": "Order Option Description",
"is_required": true,
"type": "text",
"length": "80|200",
"is_multi_choice": false,
"selected_products": true,
"categories": [
212,
223,
224
]
}'{
"status": 200,
"success": true,
"data": {
"id": 123456789,
"name": "Order Option Name",
"description": "Order Option Description",
"is_required": true,
"type": "text",
"length": "80|200",
"is_multi_choice": false,
"selected_products": true,
"categories": [
{
"id": 123456788,
"name": "category name"
},
{
"id": 123456789,
"name": "another category name"
}
],
"price": 0,
"currency": "SAR"
}
}