POST api/v1/SharedAccess

Request Information

URI Parameters

None.

Body Parameters

SharedAccess
NameDescriptionTypeAdditional information
User

UserInfo

None.

AccessToUsers

Collection of UserInfo

None.

SharedWithUsers

Collection of UserInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "User": {
    "UserID": "sample string 1",
    "LoginName": "sample string 2",
    "DisplayName": "sample string 3",
    "StartDate": "2024-11-21T09:45:43.361449+00:00",
    "EndDate": "2024-11-21T09:45:43.361449+00:00"
  },
  "AccessToUsers": [
    {
      "UserID": "sample string 1",
      "LoginName": "sample string 2",
      "DisplayName": "sample string 3",
      "StartDate": "2024-11-21T09:45:43.361449+00:00",
      "EndDate": "2024-11-21T09:45:43.361449+00:00"
    },
    {
      "UserID": "sample string 1",
      "LoginName": "sample string 2",
      "DisplayName": "sample string 3",
      "StartDate": "2024-11-21T09:45:43.361449+00:00",
      "EndDate": "2024-11-21T09:45:43.361449+00:00"
    }
  ],
  "SharedWithUsers": [
    {
      "UserID": "sample string 1",
      "LoginName": "sample string 2",
      "DisplayName": "sample string 3",
      "StartDate": "2024-11-21T09:45:43.361449+00:00",
      "EndDate": "2024-11-21T09:45:43.361449+00:00"
    },
    {
      "UserID": "sample string 1",
      "LoginName": "sample string 2",
      "DisplayName": "sample string 3",
      "StartDate": "2024-11-21T09:45:43.361449+00:00",
      "EndDate": "2024-11-21T09:45:43.361449+00:00"
    }
  ]
}

application/xml, text/xml

Sample:
<SharedAccess xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WorkPointEMM.API.Model">
  <AccessToUsers>
    <SharedAccess.UserInfo>
      <DisplayName>sample string 3</DisplayName>
      <EndDate>2024-11-21T09:45:43.361449+00:00</EndDate>
      <LoginName>sample string 2</LoginName>
      <StartDate>2024-11-21T09:45:43.361449+00:00</StartDate>
      <UserID>sample string 1</UserID>
    </SharedAccess.UserInfo>
    <SharedAccess.UserInfo>
      <DisplayName>sample string 3</DisplayName>
      <EndDate>2024-11-21T09:45:43.361449+00:00</EndDate>
      <LoginName>sample string 2</LoginName>
      <StartDate>2024-11-21T09:45:43.361449+00:00</StartDate>
      <UserID>sample string 1</UserID>
    </SharedAccess.UserInfo>
  </AccessToUsers>
  <SharedWithUsers>
    <SharedAccess.UserInfo>
      <DisplayName>sample string 3</DisplayName>
      <EndDate>2024-11-21T09:45:43.361449+00:00</EndDate>
      <LoginName>sample string 2</LoginName>
      <StartDate>2024-11-21T09:45:43.361449+00:00</StartDate>
      <UserID>sample string 1</UserID>
    </SharedAccess.UserInfo>
    <SharedAccess.UserInfo>
      <DisplayName>sample string 3</DisplayName>
      <EndDate>2024-11-21T09:45:43.361449+00:00</EndDate>
      <LoginName>sample string 2</LoginName>
      <StartDate>2024-11-21T09:45:43.361449+00:00</StartDate>
      <UserID>sample string 1</UserID>
    </SharedAccess.UserInfo>
  </SharedWithUsers>
  <User>
    <DisplayName>sample string 3</DisplayName>
    <EndDate>2024-11-21T09:45:43.361449+00:00</EndDate>
    <LoginName>sample string 2</LoginName>
    <StartDate>2024-11-21T09:45:43.361449+00:00</StartDate>
    <UserID>sample string 1</UserID>
  </User>
</SharedAccess>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>