Update user friendship Deprecated

POST /1/users/{id}/friends/{friendshipId}

Update user friendship

Path parameters

application/json

Body

  • status string Required

    The new status of the friendship - accepted or blocked.

Responses

  • 200 application/json

    The updated friendship.

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