Skip to content

Gives a banana to a user

PUT
/api/user/{recipientId}/banana

Authorizations

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Parameters

Path Parameters

recipientId*
Typestring
Required
Pattern"[1-9][0-9]*"

Request Body

application/json
JSON
{
"message": null
}

Responses

Success.

application/json
JSON
{
"message": "string",
"user": {
"id": 0,
"name": "string",
"avatar": "string",
"isSleeping": true
},
"time": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python