Skip to main content
PATCH
/
v1
/
messages
Update messages
curl --request PATCH \
  --url https://api.paytsoftware.com/v1/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "administration_id": "<string>",
  "messages": [
    {
      "id": "<string>",
      "read": true
    }
  ]
}
'
{
  "success": true,
  "count": 98,
  "errors": {
    "123456": [
      "Validation error 1",
      "Validation error 2"
    ],
    "123461": [
      "Validation error"
    ]
  },
  "warnings": {
    "123457": [
      "Warning message 1",
      "Warning message 2"
    ]
  }
}

Authorizations

Authorization
string
header
required

OAuth2 access token or static API token. See Authorization for how to obtain one.

Body

Update messages

administration_id
string
required

Administration identifier

messages
object[]
required

Response

Messages updated

CustomerApi_SuccessEntity model

success
boolean
required

Request was handled successfully

count
integer<int32>
required

Number of records processed, those without errors

Example:

98

errors
object
required

List of records that could not be processed and for which reasons

Example:
{
"123456": ["Validation error 1", "Validation error 2"],
"123461": ["Validation error"]
}
warnings
object

List of records that were partially processed, the messages contain warnings

Example:
{
"123457": ["Warning message 1", "Warning message 2"]
}
Last modified on June 12, 2026