PUT api/document/bulksetprivacy
Sets the document privacy for existing documents. This is used to change a document from being publicly accessible to being private, and vice versa. Documents already in the requested state are left as they are. Documents that cannot be updated are skipped and the rest are still updated. Returns 204 when no document failed; otherwise 400 (validation failures only) or 500 with the failed documents listed in ValidationErrors. Processes this document API request. The parameter and response sections describe the data exchanged with the API.
Request Information
URI Parameters
None.
Body Parameters
The bulk set privacy command data contract supplied with the request.
BulkSetPrivacyCommandDataContract| Name | Description | Type | Additional information |
|---|---|---|---|
| DocumentIds |
The unique identifiers of the related document resources. |
Collection of integer |
None. |
| SetAsPublic |
Indicates whether set as public is true. |
boolean |
None. |
Request Formats
application/x-www-form-urlencoded
Sample not available.
application/json, text/json
{
"DocumentIds": [
1,
2
],
"SetAsPublic": true
}
Response Information
Resource Description
The response returned after the operation completes.
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version |
The version value. |
Version |
None. |
| Content |
The content value. |
HttpContent |
None. |
| StatusCode |
The status code classification. |
HttpStatusCode |
None. |
| ReasonPhrase |
The reason phrase value. |
string |
None. |
| Headers |
The collection of headers. |
Collection of Object |
None. |
| RequestMessage |
The request message value. |
HttpRequestMessage |
None. |
| IsSuccessStatusCode |
Indicates whether this item is success status code. |
boolean |
None. |