Prototype department for a creation form
POST/api/v2/departments/new
Returns a non-persisted department pre-populated with backend defaults (current company, next numeric code, enabled=true). Optional hints: companyId, copyFromId. Call POST /api/v2/departments afterwards to persist.
Request
Responses
- 200
- 400
- 401
- 403
- 500
Department prototype with defaults
Invalid prepare-create hints
Missing or invalid JWT (Bearer token).
Authenticated user is missing the CREAR_DEPARTAMENTO permission
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.