Remove User from a Space

delete

/ic/api/process/v1/spaces/{spaceId}/permissions/{principal}

Deletes the user from the specified space.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Success. Space Permission successfully deleted.
Body ()
Root Schema : grant
Type: object
The representation of a Permission

401 Response

Unauthorized

403 Response

Privileges required. User can't delete the space permissions

404 Response

Space/Space Permission not found.

500 Response

Error in deleting space permission
Back to Top

Examples

The following example shows how to delete a permission by submitting a DELETE request on the REST resource.

Send Request

The following example shows the contents of the send request:

https://example.com/ic/api/process/v1/spaces/<spaceId>/permissions/<principal>

Where,

Example of Response Header

Status Code: 200 OK
Date:   Mon, 03 Apr 2017 09:39:39 GMT 
Content-Type:  application/json

Example of Response Body

{
  "user": "jsmith",
  "role": "OWNER",
  "links": [
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23/permissions/jsmith",
      "rel": "self"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23/permissions/jsmith",
      "rel": "canonical"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/89f7e082-6855-4a75-b2a6-6a726aff7f23",
      "rel": "parent"
    }
  ]
}
Back to Top