devguard

PoliciesCategoriesReorder

Reorder policy categories.

POST
/policies/categories/reorder/

Authorization

Authorization
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

application/json

application/json

curl -X POST "https://example.com/policies/categories/reorder/" \  -H "Content-Type: application/json" \  -d '{    "categoryId": "337f5e5d-288b-40d5-be14-901cc3acacc0",    "newOrder": 0,    "organizationId": "string"  }'
{
  "success": true
}
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

How is this guide?