/Category/VariableGroup/Duplicate
POST
/Category/VariableGroup/Duplicate
const url = 'https://api.chatfood.app/Category/VariableGroup/Duplicate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json-patch+json'}, body: '{ "sourceGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "newName": "example" }'};
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/Category/VariableGroup/Duplicate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json-patch+json' \ --data '{ "sourceGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "newName": "example" }'Authorizations
Seção intitulada “Authorizations”Request Body
Seção intitulada “Request Body”object
sourceGroupId
string format: uuid
newName
string
Examplegenerated
{ "sourceGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "newName": "example"}object
sourceGroupId
string format: uuid
newName
string
Examplegenerated
{ "sourceGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "newName": "example"}object
sourceGroupId
string format: uuid
newName
string
Examplegenerated
{ "sourceGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "newName": "example"}object
sourceGroupId
string format: uuid
newName
string
Examplegenerated
{ "sourceGroupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "newName": "example"}Responses
Seção intitulada “Responses”OK