devguard

AcronymsId

Update an acronym by id.

PATCH
/acronyms/{id}/

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

slug*string
Match^[a-z0-9-]+$
Length1 <= length
acronym*string
Length2 <= length <= 255
acronymPlural?|
extended?|
extendedPlural?|
definitionId?|
organizationId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://app.devguard.ch/api/acronyms/string/" \  -H "Content-Type: application/json" \  -d '{    "slug": "string",    "acronym": "string",    "organizationId": "string"  }'
{
  "id": "string",
  "slug": "string",
  "acronym": "string",
  "acronymPlural": "string",
  "extended": "string",
  "extendedPlural": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "definitionId": "string",
  "organizationId": "string"
}
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "NOT_FOUND",
  "message": "Not found",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

How is this guide?