Update chat member Deprecated

POST /1/chats/{chatid}/members/{memberid}

Update chat member

Path parameters

application/json

Body

  • cursor string

    The new cursor date of this member.

  • muted boolean

    If the user wants to receive notifications.

Responses

POST /1/chats/{chatid}/members/{memberid}
curl \
 --request POST 'https://api.localsporthero.com/1/chats/{chatid}/members/{memberid}' \
 --header "Content-Type: application/json" \
 --data '{"cursor":"string","muted":true}'
Request examples
{
  "cursor": "string",
  "muted": true
}
Response examples (200)
{
  "member": {
    "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
    "threadId": "85756F43-63E4-4B18-A978-B04039466509",
    "threadType": "direct",
    "user": {
      "id": "1ab474d5-e1fa-4340-ba6a-5642e720ea6a",
      "nickname": "Stevertje",
      "fullName": "Stefan de Jong",
      "email": "stefandejong@gmail.com",
      "language": "nl",
      "startDate": "2022-05-02T11:00:00.000Z",
      "imageUrl": "https://example.org/image.jpg",
      "waitingListValue": 0,
      "notificationsEnabled": true,
      "notifyDaysBefore": [
        -1,
        1
      ],
      "private": false,
      "yourFriendship": {
        "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
        "status": "requested, accepted or blocked",
        "date": "2022-05-02T11:00:00.000Z",
        "muted": false
      },
      "theirFriendship": {
        "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
        "status": "requested, accepted or blocked",
        "date": "2022-05-02T11:00:00.000Z",
        "muted": false
      }
    },
    "cursor": "2022-05-02T11:00:00.000Z",
    "muted": false,
    "expiryDate": "2022-05-02T11:00:00.000Z"
  }
}