Skip to content

Adds a region using the given data.​

POST
/api/regions

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

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

Request Body​

application/json
JSON
{
  
"id": 1,
  
"name": "Göttingen",
  
"type": 7,
  
"adminIds": [
  
  
1
  
],
  
"parentId": 1,
  
"masterId": 1,
  
"mailbox": "goettingen",
  
"emailName": "foodsharing Göttingen",
  
"workgroupFunction": 4,
  
"allowHidingInForum": false,
  
"timezone": "Europe/Berlin"
}

Responses​

Success

application/json
JSON
{
  
"regionId": 0
}

Playground​

Authorization
Body

Samples​