Skip to content

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

TypeAPI 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": 0,
"name": "string",
"avatar": "string",
"isSleeping": true
},
"regionId": 0,
"isHomeRegion": true,
"isUserActive": true,
"isPrivate": true,
"isFavorite": true,
"openness": 0
}

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python