Add, modify, or delete department groups
Add a new department group to your catalog
| Name | Necessary | Description |
|---|---|---|
shopID | Yes | Your institution's identifier |
key | Yes | Your API key |
data[title] | Yes | Title (required) |
data[position] | No | Position (on the interface) |
data[accountingChapter] | No | Accounting chapter |
data[accountingChapterComplement] | No | Accounting Chapter Supplement |
Edit a department group in your catalog
| Name | Necessary | Description |
|---|---|---|
shopID | Yes | Your institution's identifier |
key | Yes | Your API key |
id | Yes | Department Group Identifier |
data[title] | No | Title (required) |
data[position] | No | Position (on the interface) |
data[accountingChapter] | No | Accounting chapter |
data[accountingChapterComplement] | No | Accounting Chapter Supplement |
Remove a department group from your catalog
| Name | Necessary | Description |
|---|---|---|
shopID | Yes | Your institution's identifier |
key | Yes | Your API key |
id | Yes | Department Group Identifier |
async function editGrpDept(){ const body = new URLSearchParams({ shopID: SHOPID, key: APIKEY, id: 123, 'data[title]': 'New title' }); const res = await fetch("https://kash.click/workers/editGrpDept.php", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body }); let payload; try{ payload = await res.json(); }catch{ payload = await res.text(); } console.log(payload);}
This document is made available under the terms of the licence Creative Commons Attribution 4.0 International (CC BY 4.0) .