User

Reorder template categories (superadmin)

POST
/api/user/template-categories/reorder

Updates the sortOrder of template categories to match the supplied id array (first id becomes sortOrder 0). Superadmin only.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/user/template-categories/reorder" \  -H "Content-Type: application/json" \  -d '{    "categoryIds": [      "64eea1110000000000000031",      "64eea1110000000000000032",      "64eea1110000000000000033"    ]  }'
{  "message": "Password reset successfully"}