/measure-units/{id}
OK
MeasureUnit was not found
An internal server error was thrown
curl -L \ --url 'https://api.zydon.com.br/api/sales/measure-units/{id}' \ --header 'Authorization: Bearer JWT'
{ "id": "text", "abbreviation": "text", "description": "text", "decimals_for_quantity": 1, "active": true }
MeasureUnit updated successfully
A validation error was thrown
curl -L \ --request PUT \ --url 'https://api.zydon.com.br/api/sales/measure-units/{id}' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"abbreviation":"text","description":"text","decimals_for_quantity":1,"active":true}'
MeasureUnit removed successfully
curl -L \ --request DELETE \ --url 'https://api.zydon.com.br/api/sales/measure-units/{id}' \ --header 'Authorization: Bearer JWT'
{ "id": "text" }
/measure-units
curl -L \ --url 'https://api.zydon.com.br/api/sales/measure-units' \ --header 'Authorization: Bearer JWT'
{ "currentPage": 1, "perPage": 1, "total": 1, "items": [ { "id": "text", "abbreviation": "text", "description": "text", "decimals_for_quantity": 1, "active": true } ] }
MeasureUnit created successfully
curl -L \ --request POST \ --url 'https://api.zydon.com.br/api/sales/measure-units' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data '{"abbreviation":"text","description":"text","decimals_for_quantity":1,"active":true}'