You can update security settings of a content item by sending the POST request to the following URL:/content/<content_item_id>/permissions.
|X-Auth-Account-Url(required)||Base URL of the account, e.g. http://myaccount.ispringlearn.com|
|X-Auth-Email (required)||Administrator/Publisher e-mail address.|
|X-Privacy (required)||a content item can be either public or private.|
|X-Is-Viewed-Once(optional)||0 – a private content item can be viewed several times.|
1 – a private content item can be viewed only once.
|X-Users (optional)||a comma-separated list of user IDs, who are allowed to view a given private content item|
|X-Groups (optional)||a comma-separated list of group IDs, which members are allowed to view a given private content item|
After the request has been completed, the system returns the response with Code 200.
Possible Response Codes
|400||Bad Request||The system failed to process the request, because it did not contain all necessary parameters.|
|200||Ok||Security settings of the specified content item have been updated.|
POST /content/1/permissions HTTP/1.1
HTTP/1.1 200 OK