Create friend

POST /1/friends

Create friend

application/json

Body

  • userId string Required

    The user id.

  • muted boolean

    If the friendship is muted.

Responses

  • 200 application/json

    The created friendship.

    Hide response attribute Show response attribute object
POST /1/friends
curl \
 --request POST 'https://api.localsporthero.com/1/friends' \
 --header "Content-Type: application/json" \
 --data '{"userId":"string","muted":true}'
Request examples
{
  "userId": "string",
  "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
  }
}