curl --location -g --request PUT '/categories/{{identificador_categoria}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"parent_category":"",
"code":"categoria_1",
"external_code":null,
"active":1,
"name":"Categoria 1",
"level":1,
"order":1,
"discount_max":0,
"discount_fix":0
}'
{
"id": 24,
"code": "categoria_1",
"parent_id": null,
"active": 1,
"name": "Categoria 1",
"level": 1,
"order": 1,
"discount_max": 0,
"discount_fix": 0,
"created_at": "2021-07-22 19:32:19",
"updated_at": "2021-07-22 19:32:19",
"deleted_at": null
}
Authorization: Bearer ********************