Logo
2RS's Public API Documentation

Nova Categoria

POST {{proto}}://{{domain}}/api/categoria

Para inserir uma nova categoria, o nome dela deve ser passado pelo body com a chave name

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Authorization
string
Accept
string




RESPONSES

status





Curl
curl -X POST 'undefined://undefined/api/categoria' -H 'Authorization: undefined' -H 'Accept: undefined' -F '{"name"=>"name", "value"=>"Teste Nova Categoria", "datatype"=>"string"}=' -F '{"name"=>"parent_id", "value"=>"0", "datatype"=>"number"}='

ENDPOINTS