/Tag (POST)
POST
/Tag
const url = 'https://api.chatfood.app/Tag';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json-patch+json'}, body: '{ "name": "example", "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.chatfood.app/Tag \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json-patch+json' \ --data '{ "name": "example", "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”accountId
string format: uuid
Request Body
Seção intitulada “Request Body”object
name
string
accountId
string format: uuid
Examplegenerated
{ "name": "example", "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}object
name
string
accountId
string format: uuid
Examplegenerated
{ "name": "example", "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}object
name
string
accountId
string format: uuid
Examplegenerated
{ "name": "example", "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}object
name
string
accountId
string format: uuid
Examplegenerated
{ "name": "example", "accountId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Seção intitulada “Responses”OK