Skip to content

Adds or suggests a new food share point.​

POST
/api/regions/{regionId}/food-share-points

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

Type
API Key (header: X-CSRF-Token)

Parameters​

Path Parameters

regionId*
Type
integer
Required
Minimum
1

Request Body​

application/json
JSON
{
  
"regionId": 1,
  
"name": "Test-Fairteiler",
  
"description": "Test-Beschreibung",
  
"picture": "12345678",
  
"address": "Beispielstraße 1",
  
"postalCode": "12345",
  
"city": "Musterstadt",
  
"location": {
  
  
"lat": 52.5,
  
  
"lon": 13.4
  
}
}

Responses​

Success

application/json
JSON
{
  
"id": 0,
  
"isAdded": true
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​