/
CREATE Space
CREATE Space
Request
HTTP ELEMENT | Value |
---|---|
URI | /rest/crud/1.0/spaces |
METHOD | POST |
Content-Type | application/json |
BODY | key - Space Key - REQUIRED name - Space Name - REQUIRED description - Space Description - DEFAULT: $name status - Space Status - DEFAULT: CURRENT SAMPLE {
"key": "DEMO8",
"name": "Demo Space Eight"
} |
Response
HTTP STATUS CODE | VALUE |
---|---|
200 | name - name of the space key - key of the space description - Description status - status of the Space. EITHER CURRENT or ARCHIVED |
400 | error - main category of the error message - error message |
Scenario and Possible Response
Scenario | Response |
---|---|
POSITIVE/Good Request | {
"name": "Demo Space Eight",
"key": "DEMO8",
"description": "Demo Space Eight",
"status": "CURRENT"
} |
$name is not specify {
"key": "Key1"
} | HTTP STATUS: 400 |
$key is not specified | HTTP STATUS: 400 |
$key is existing | HTTP STATUS: 400 |
, multiple selections available,