Update or Restore the owner permissions

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

Update or Restore the owner 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]}

Restore permissions for the user 15234, with 'see' and 'see contents' permissions:
body = {permissions:[see,see_contents],right_id:15234}

Change the owner to the user 15234 and set their permissions to none (NOTE: this is not the same as removing owner permissions):
body = {permissions:[],right_id:15234}

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"=>"delete", "datatype"=>"string"}, {"name"=>"permissions", "value"=>"delete_versions", "datatype"=>"string"}, {"name"=>"right_id", "value"=>"45244791", "datatype"=>"number"}, {"name"=>"apply_to", "value"=>"3", "datatype"=>"number"}, {"name"=>"include_sub_types", "value"=>"pariatur irure tempor in", "datatype"=>"string"}, {"name"=>"include_sub_types", "value"=>"labo", "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;}]}]}