Last updated 4 months ago
Success
No Content
Created
const response = await fetch('/v2/departments', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "Name": "text", "ExternalId": "text", "Children": [], "IsTranslated": false, "Translation": { "TranslationProperties": [ "text" ], "TranslationRequiredProperties": [ "text" ], "Translations": [ { "Language": "text", "Property": "text", "TranslateValue": "text" } ] } } ]
const response = await fetch('/v2/departments/{id}', { method: 'DELETE', headers: {}, }); const data = await response.json();
const response = await fetch('/v2/departments/{id}/external', { method: 'GET', headers: {}, }); const data = await response.json();
{ "Name": "text", "ExternalId": "text", "Children": [], "IsTranslated": false, "Translation": { "TranslationProperties": [ "text" ], "TranslationRequiredProperties": [ "text" ], "Translations": [ { "Language": "text", "Property": "text", "TranslateValue": "text" } ] } }
const response = await fetch('/v2/departments/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/v2/departments/{id}', { method: 'PUT', headers: { "Content-Type": "application/json-patch+json" }, body: JSON.stringify({}), }); const data = await response.json();
const response = await fetch('/v2/departments', { method: 'POST', headers: { "Content-Type": "application/json-patch+json" }, body: JSON.stringify({}), }); const data = await response.json();