/public/permissions/<itemID>

You can get persmissions on a public item or modify its permissions.

Getting Permissions on an Item

You can fetch the permissions you have on a public item through an API.

API Request Details

You would need the following information to get the permissions you have on an item.

URL

/api/v1/content/public/permissions/<itemID>

Request Type

GET

Content Type

application/json

Modifying Item Permissions

You can modify your permissions on the public items in your Content Network through an API.

API Request Details

You would need the following information to modify the permissions on the item.

URL

/api/v1/content/public/permissions/<itemID>

Request Type

PATCH

Content Type

application/json

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 following 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 following attributes:
  • tenantUrl - The tenant URL of the tenant the content is being shared.

  • 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 following attribute:
  • oemId - The OEM ID of the tenants.

For sharing the content with a group of tenants having same ERP Number (customer number) use the following attribute:
  • erpNumber -The ERP Number of the tenants.