Skip to main content
PATCH
/
api
/
v1
/
messages
/
{message_id}
Edit Message
curl --request PATCH \
  --url https://api.member.dev/api/v1/messages/{message_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "body": "<string>"
    },
    "type": "<string>"
  }
}
'
{
  "data": {
    "attributes": {
      "conversation_id": "<string>",
      "author_contact_id": "<string>",
      "body": "<string>",
      "created_at": "<string>",
      "edited_at": "<string>",
      "is_deleted": true
    },
    "id": "<string>",
    "type": "<string>",
    "links": {
      "self": "<string>"
    },
    "meta": {},
    "relationships": {}
  },
  "included": [
    "<unknown>"
  ],
  "links": {
    "self": "<string>"
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

message_id
string
required

Body

application/vnd.api+json
data
_MessageEditData · object
required

Response

Successful Response

data
JsonApiResource[MessageResponseAttributes] · object
required
included
any[] | null
meta
Meta · object