Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

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

Scenario

Response

POSITIVE/Good Request

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

$name is not specify

{
	"key": "Key1"
}

HTTP STATUS: 400

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



$key is not specified

{
	"name": "SpaceName"
}

HTTP STATUS: 400

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



$key is existing

HTTP STATUS: 400

{
    "error": "NON_EXISTING",
    "message": "The Space[CIA2] you are creating already exists."
}
  • No labels