Remove User from a Space
delete
/ic/api/process/v1/spaces/{spaceId}/permissions/{principal}
Deletes the user from the specified space.
Request
Path Parameters
-
principal: string
The principal ID
-
spaceId: string
Response
Supported Media Types
- application/json
- application/xml;qs=0.9
200 Response
Success. Space Permission successfully deleted.
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
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.com
is the host where Oracle Integration is running. -
<spaceId> is the unique ID for a space. To retrieve available spaces, see Retrieve Spaces.
-
<principal> is the user name. To retrieve available permissions for a space, see List all permissions assigned to the given space.
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" } ] }