| name | create_departments |
| tier | 1 |
| task | T05 |
| description | This skill should be used when the task asks to "create departments", "opprett avdelingar", "opprett avdelinger", "créer des départements", "criar departamentos", "Abteilungen erstellen", or involves creating one or more department entities in Tripletex. |
Create Departments
Create one or more departments in Tripletex.
Execution Steps
Use the batch endpoint to create ALL departments in a single call:
POST /department/list
[
{"name": "Drift"},
{"name": "Innkjøp"},
{"name": "Salg"}
]
The body is an array of department objects. One API call regardless of how many departments.
Required fields per department:
name (string) — department name exactly as given in the prompt
Nynorsk Example
Task: "Opprett tre avdelingar i Tripletex: 'Drift', 'Innkjøp' og 'Sal'."
Steps:
POST /department/list with array of 3 department objects
Result: 1 API call, 0 errors.
Quirks
- A default department named "Avdeling" already exists in fresh sandboxes. Do not recreate it.
- Preserve Norwegian characters (æ, ø, å) exactly as given.
- The body must be a JSON array, not an object.