Update a predefined message by id (manager)

PATCH /manager/predefined-messages/{id}

Path parameters

  • id integer Required

    The predefined message id

application/json

Body

Responses

  • 200 application/json

    returns the updated predefined message

    Hide response attributes Show response attributes object
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
  • Forbidden - You don't have permission to access this route

  • Not found - The predefined message does not exist

PATCH /manager/predefined-messages/{id}
curl \
 -X PATCH https://domain.tld/api/v2/manager/predefined-messages/{id} \
 -H "Content-Type: application/json" \
 -d '{"contents":[{"lang":"en_GB","content":"Hello"}],"position":1,"active":true}'
Request examples
{
  "contents": [
    {
      "lang": "en_GB",
      "content": "Hello"
    }
  ],
  "position": 1,
  "active": true
}
Response examples (200)
{
  "id_predefined_message": 1,
  "contents": [
    {
      "id_i18n_content": 42,
      "lang": "en_GB",
      "content": "Hello"
    }
  ],
  "position": 1,
  "active": true
}
Response examples (401)
{
  "message": "Unauthorized."
}