Add a new commons resource for the given region.
POST
/api/resources/commons
Authorizations
api_key
Requests manipulating data need to supply a CSRF token
Type
API Key (header: X-CSRF-Token)
Request Body
application/json
JSON "name": "Programming", "description": "Proficient in PHP and Vue", "isPrivate": false, "openness": 3, "images": [ "string" ], "regionId": 0
{
}
Responses
Success
application/json
JSON "id": 0, "name": "string", "description": "string", "user": { "id": 342528, "name": "Franzi", "avatar": "99d1fb45-9748-3510-ac02-87b46c40048c", "isSleeping": null }, "regionId": 0, "isHomeRegion": true, "isUserActive": true, "isPrivate": true, "isFavorite": true, "openness": 0
{
}