Update friendship

POST /1/friends/{id}

Update friendship

Path parameters

  • id string Required

    The friendship id.

application/json

Body

  • muted boolean

    Mute or unmute friendship.

Responses

  • 200 application/json

    The updated friendship.

    Hide response attribute Show response attribute object
POST /1/friends/{id}
curl \
 --request POST 'https://api.localsporthero.com/1/friends/{id}' \
 --header "Content-Type: application/json" \
 --data '{"muted":true}'
Request examples
{
  "muted": true
}
Response examples (200)
{
  "friendship": {
    "id": "85362399-38e1-4255-87a0-f3f984ed16d9",
    "status": "requested, accepted or blocked",
    "date": "2022-05-02T11:00:00.000Z",
    "muted": false
  }
}