Create a Space
post
/ic/api/process/v1/spaces
Creates a space.
Request
Supported Media Types
- application/x-www-form-urlencoded
Form Parameters
-
spaceName(required): string
The space name
Response
Supported Media Types
- application/json
- application/xml;qs=0.9
200 Response
successful operation
Root Schema : space
Type:
objectThe representation of a Space
201 Response
Success. Space successfully created.
401 Response
Unauthorized
500 Response
Error in creating space
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.comis 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 exampleMySpace.
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"
}
]
}