Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Code Block
{
    "name": "Demo Space Eight",
    "key": "DEMO8",
    "description": "Demo Space Eight",
    "status": "CURRENT"
}

$name is not specify

Code Block
{
	"key": "Key1"
}

HTTP STATUS: 400

Code Block
{
    "error": "REQUIRED",
    "message": "name is required"
}



$key is not specified

Code Block
{
	"name": "SpaceName"
}

HTTP STATUS: 400

Code Block
{
    "error": "REQUIRED",
    "message": "key is required"
}



$key is existing

HTTP STATUS: 400

Code Block
{
    "error": "NON_EXISTING",
    "message": "The Space[CIA2] you are creating already exists."
}