PUT api/document/setprivacy

Sets the document privacy for an existing document. This is used to change a document from being publicly accessible to being private, and vice versa.

Request Information

URI Parameters

None.

Body Parameters

Dezrez.Core.DataContracts.External.Api.Document.Command.SetDocumentPrivacyCommandDataContract
NameDescriptionTypeAdditional information
DocumentId

integer

None.

SetAsPublic

boolean

None.

Id

integer

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

Sample:
{
  "DocumentId": 1,
  "SetAsPublic": true,
  "Id": 3
}

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.