Adds a new basket. The description must not be empty. All other parameters are optional. Returns the created basket.
POST
/api/baskets
Authorizations
api_key
Requests manipulating data need to supply a CSRF token
TypeAPI Key (header: X-CSRF-Token)
Request Body
application/json
JSON
{
"id": 0,
"description": "string",
"pictures": [
"string"
],
"contactTypes": [
[
]
],
"mobile": "string",
"telephone": "string",
"lat": 0,
"lon": 0,
"lifeTimeInDays": 0,
"weightInGrams": 0,
"status": 0,
"location": {
"lat": 52.5,
"lon": 13.4
},
"creator": {
"id": 0,
"name": "string",
"avatar": "string",
"isSleeping": true
},
"created": 0,
"updated": 0,
"until": 0,
"requestCount": 0
}