devguard

Treatment actions

Create a treatment action.

POST
/treatment-actions/

Authorization

Authorization
AuthorizationBearer <token>

In: header

Request Body

application/json

slug*string
Match^[a-z0-9-]+$
Length1 <= length
name*string
Length2 <= length <= 255
ownerId*string
organizationId*string
description?|
Defaultnull
dueDate?|
Defaultnull
status?string
Default"UNKNOWN"
Value in"UNKNOWN" | "PLANNED" | "IN_PROGRESS" | "IMPLEMENTED" | "OUTDATED" | "DEPRECATED"

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://app.devguard.ch/api/treatment-actions/" \  -H "Content-Type: application/json" \  -d '{    "slug": "string",    "name": "string",    "ownerId": "string",    "organizationId": "string"  }'
{
  "id": "string",
  "shortId": -9007199254740991,
  "slug": "string",
  "name": "string",
  "description": "string",
  "ownerId": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "organizationId": "string",
  "dueDate": "string",
  "status": "UNKNOWN"
}
{
  "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?