Last updated 9 months ago
Success
No Content
Created
const response = await fetch('/v2/departments', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "Id": 0, "Name": "text", "ExternalId": "text", "ParentId": 0, "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();
{ "Message": "text", "Errors": [ { "Field": "text", "Message": "text" } ], "ErrorCode": 0 }
const response = await fetch('/v2/departments/{id}/external', { method: 'GET', headers: {}, }); const data = await response.json();
{ "Id": 0, "Name": "text", "ExternalId": "text", "ParentId": 0, "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();