POST /api/v1/archiving/categories — Create Archive Category
Creates a new archive category or subcategory for organizing archived documents.
Authentication
SadqAuthorize
Request Headers
- Authorization (required)
- Bearer {token}
- Content-Type (required)
- application/json
Request Body
Content-Type: application/json
- name (string, required)
- The name of the category.
- description (string, required)
- Description of the category.
- categoryId (GUID, optional)
- Parent category ID (null or omit for root category).
{
"name": "Test Hussein",
"description": "Test description"
}Responses
HTTP 200 — Category created
{
"data": "aedaa0dd-8015-45b3-a787-02e57484a26c",
"errorCode": 0,
"message": null,
"returnUrl": "/dashboard",
"stateValidationErrors": null,
"signature": ""
}