Editing Permissions on an Item

You can edit the permissions you have on an item through an API.

API Request Details

You would need the following information to get the permissions you've on an item.
URL /api/v1/content/permissions/{itemId}
Request Type POST
Content Type application/json
Sample HTTP-body Refer to the section below.

Sample HTTP Body

permission - Specifies a sharing entity and the content can be shared with some tenant by different means.

From the above, (tenantUrl and landscape/oemId/erpNumber) any one should be present in a sharing entity (permission). The below attributes in permission specifies the access rights that are given for the sharing tenant(s):

list (mandatory) - true/false - The tenant should be able to only view the package (export unit)

read (mandatory) - true/false - The tenant should be able to view and import the package (export unit)

write (mandatory) - true/false - The tenant should be able to view, import and export,edit the package (export unit)

delete (mandatory) - true/false - The tenant should be able to delete the package (export unit).

For sharing the content with a specific tenant use the below attributes -

1. tenantUrl - The tenant URL of the tenant the content is being shared.

2. landscapeId - The landscape ID of the tenant the content is being shared. As the multiple landscape is not supported yet, you can keep the value as null when shared using tenant URL.

For sharing the content with a group of tenants having same OEM ID (partner) use the below attributes -

oemId - The OEM ID of the tenants.

For sharing the content with a group of tenants having same ERP Number (customer number) use the below attribute -

erpNumber -The ERP Number of the tenants.

Response

You can go to Status Codes to learn about the three-digit code in the response.