PUT api/shareDocument/{documentID}

Update share Document using document Id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
documentID

Filter identifier

globally unique identifier

Required

Body Parameters

Product Filter to update

ShareDocument
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

DocumentType

Type of Document Dashboard , Report ,Filter

DocumentType

None.

DocumentID

Saved Document ID

globally unique identifier

None.

AccountID

Creator Account ID

globally unique identifier

None.

DashboardID

string

None.

AccountDocumentShare

Collection of AccountDocumentShare

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "58311bd2-91bf-4f14-8ca2-140f178ed398",
  "documentType": 2,
  "documentID": "7363e496-95f1-49e2-b224-0b911930213b",
  "accountID": "0d083e35-a3ee-4681-ab85-6a6ef86b0aa9",
  "dashboardID": "sample string 4",
  "accountDocumentShare": [
    {
      "$id": "2",
      "id": "edfe357d-b2b6-4380-9d91-08886e256974",
      "accountDocumentId": "63ffe9b9-e71c-4827-b5e2-cb5f436d2953",
      "accountId": "17fad4cf-724d-4ad0-bc40-a01efc20e53a",
      "accountName": "sample string 3",
      "privilegeGroupId": "5b5acf0c-477a-4621-87f2-0616ebb868aa",
      "privilegeGroupName": "sample string 4",
      "storeId": "100bb44f-70b6-4fe9-907c-e0c56115cc89",
      "storeName": "sample string 5",
      "shareLevel": 6,
      "shareAll": true,
      "showUser": true
    },
    {
      "$ref": "2"
    }
  ]
}

application/xml, text/xml

Sample:
<ShareDocument xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.Tenancies.Filters">
  <AccountDocumentShare xmlns:d2p1="http://schemas.datacontract.org/2004/07/EziManager.Models.Tenancies.ShareDocument">
    <d2p1:AccountDocumentShare>
      <d2p1:AccountDocumentId>63ffe9b9-e71c-4827-b5e2-cb5f436d2953</d2p1:AccountDocumentId>
      <d2p1:AccountId>17fad4cf-724d-4ad0-bc40-a01efc20e53a</d2p1:AccountId>
      <d2p1:AccountName>sample string 3</d2p1:AccountName>
      <d2p1:ID>edfe357d-b2b6-4380-9d91-08886e256974</d2p1:ID>
      <d2p1:PrivilegeGroupId>5b5acf0c-477a-4621-87f2-0616ebb868aa</d2p1:PrivilegeGroupId>
      <d2p1:PrivilegeGroupName>sample string 4</d2p1:PrivilegeGroupName>
      <d2p1:ShareAll>true</d2p1:ShareAll>
      <d2p1:ShareLevel>6</d2p1:ShareLevel>
      <d2p1:ShowUser>true</d2p1:ShowUser>
      <d2p1:StoreId>100bb44f-70b6-4fe9-907c-e0c56115cc89</d2p1:StoreId>
      <d2p1:StoreName>sample string 5</d2p1:StoreName>
    </d2p1:AccountDocumentShare>
    <d2p1:AccountDocumentShare>
      <d2p1:AccountDocumentId>63ffe9b9-e71c-4827-b5e2-cb5f436d2953</d2p1:AccountDocumentId>
      <d2p1:AccountId>17fad4cf-724d-4ad0-bc40-a01efc20e53a</d2p1:AccountId>
      <d2p1:AccountName>sample string 3</d2p1:AccountName>
      <d2p1:ID>edfe357d-b2b6-4380-9d91-08886e256974</d2p1:ID>
      <d2p1:PrivilegeGroupId>5b5acf0c-477a-4621-87f2-0616ebb868aa</d2p1:PrivilegeGroupId>
      <d2p1:PrivilegeGroupName>sample string 4</d2p1:PrivilegeGroupName>
      <d2p1:ShareAll>true</d2p1:ShareAll>
      <d2p1:ShareLevel>6</d2p1:ShareLevel>
      <d2p1:ShowUser>true</d2p1:ShowUser>
      <d2p1:StoreId>100bb44f-70b6-4fe9-907c-e0c56115cc89</d2p1:StoreId>
      <d2p1:StoreName>sample string 5</d2p1:StoreName>
    </d2p1:AccountDocumentShare>
  </AccountDocumentShare>
  <AccountID>0d083e35-a3ee-4681-ab85-6a6ef86b0aa9</AccountID>
  <DashboardID>sample string 4</DashboardID>
  <DocumentID>7363e496-95f1-49e2-b224-0b911930213b</DocumentID>
  <DocumentType>2</DocumentType>
  <ID>58311bd2-91bf-4f14-8ca2-140f178ed398</ID>
</ShareDocument>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.