OK
Profile removed successfully
Profile created successfully
Profile updated successfully
const response = await fetch('https://api.zydon.com.br/api/sales/profiles/{id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "name": "text" }
const response = await fetch('https://api.zydon.com.br/api/sales/profiles/{id}', { method: 'DELETE', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text" }
const response = await fetch('https://api.zydon.com.br/api/sales/profiles', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "name": "text" }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/profiles/{id}', { method: 'PUT', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "name": "text" }), }); const data = await response.json();
const response = await fetch('https://api.zydon.com.br/api/sales/profiles', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "currentPage": 0, "perPage": 0, "total": 0, "items": [ { "id": "text", "name": "text", "partner_size": 0 } ] }