Create a Space

post

/ic/api/process/v1/spaces

Creates a space.

Request

Supported Media Types
Form Parameters
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : space
Type: object
The representation of a Space

201 Response

Success. Space successfully created.

401 Response

Unauthorized

500 Response

Error in creating space
Back to Top

Examples

The following example shows how to create a space by submitting a POST request on the REST resource.

curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' -H 'Authorization: Bearer access_token' -d 'spaceName=Myspace' 'http://example.com:7001/ic/api/process/v1/spaces'

Where,

  • example.com is the host where Oracle Integration is running.

  • <version> is the REST API version.

  • Content-Type: application/x-www-form-urlencoded

  • Request URL: http://example.com:7001/ic/api/process/<version>/spaces

The following shows the required request parameters to create a space. You need to provide application/x-www-form-urlencoded parameter to create a space.

  • spaceName: Specify the name of the space, for example MySpace.

Example of Response Header

Status Code: 201 Created
Date:  Tue, 21 Mar 2017 08:39:54 GMT
Content-Type: application/json

Example of Response Body

{
  "id": "ab5f6943-0711-4c63-9037-1b6b08019770",
  "name": "My Space",
  "creator": "jsmith",
  "creation": "2017-04-03,21:56:53 PDT",
  "links": [
    {
      "href": "example.com:7001/ic/api/process/v1/spaces/ab5f6943-0711-4c63-9037-1b6b08019770",
      "rel": "self"
    },
    {
      "href": "example.com:7001/ic/api/process/v1/spaces/ab5f6943-0711-4c63-9037-1b6b08019770",
      "rel": "canonical"
    },
    {
      "href": "example.com:7001/ic/api/process/v1/",
      "rel": "parent"
    },
    {
      "href": "example.com:7001/ic/api/process/v1/spaces/ab5f6943-0711-4c63-9037-1b6b08019770/projects",
      "rel": "child"
    },
    {
      "href": "example.com:7001/ic/api/process/v1/spaces/ab5f6943-0711-4c63-9037-1b6b08019770/permissions",
      "rel": "child"
    }
  ]
}
Back to Top