Update the public access permissions

PUT {{baseUrl}}/v2/nodes/:id/permissions/public?suppress_response_codes=irure labore Duis dolor ea

Update the public access permissions.

NOTE: This can only be done using the 'body' parameter (see the [IMPLEMENTATION NOTES]).

Examples:

Update permissions to 'see' and 'see contents':
body = {permissions:[see,see_contents]}

Set public access permissions to none (NOTE: this is not the same as removing public access permissions):
body = {permissions:[]}

Update a Folder's permissions to 'see' and 'see contents' and apply to 'This Item':
body = {permissions:[see,see_contents],apply_to:0}

Update a Folder's permissions to 'see' and 'see contents' and apply to 'This Item and Sub-Items' where the Sub-Items are Task List and Channel:
body = {permissions:[see,see_contents],apply_to:2,include_sub_types:[204,207]}

Request Params

KeyDatatypeRequiredDescription
suppress_response_codesstringForces the server to always return a HTTP Response of '200 OK'. The data returned from the call will have an additional integer feature named 'statusCode', which will contain the actual status code (the 'statusCode' feature will be added regardless of whether the REST API call was successful or not).<br><br>NOTE: This parameter does not require a value, so it should be specified as <ul><li><b>[Query String]:</b><code>?suppress_response_codes</code></li><li><b>[Form Body (where the value is an empty string)]</b>: <code>suppress_response_codes = </code></li></ul>

Request Body

[{"name"=>"permissions", "value"=>"see_contents", "datatype"=>"string"}, {"name"=>"permissions", "value"=>"modify", "datatype"=>"string"}, {"name"=>"apply_to", "value"=>"0", "datatype"=>"number"}, {"name"=>"include_sub_types", "value"=>"pariatur fugiat dolor Duis", "datatype"=>"string"}, {"name"=>"include_sub_types", "value"=>"do dolor", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;links&quot;:[{&quot;data&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},{&quot;data&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}]}