PUT api/collectionsapproval/save

Request Information

URI Parameters

None.

Body Parameters

EntityApprovalRequestViewModel
NameDescriptionTypeAdditional information
RunFor

Run For

date

Required

EntityId

Entity Id

integer

Required

Stages

Residents

Collection of StageApprovalViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "runFor": "2024-10-14T08:20:32.052558-04:00",
  "entityId": 2,
  "stages": [
    {
      "stageId": 1,
      "residentActionExceptions": {
        "1": [
          1,
          2
        ],
        "2": [
          1,
          2
        ]
      }
    },
    {
      "stageId": 1,
      "residentActionExceptions": {
        "1": [
          1,
          2
        ],
        "2": [
          1,
          2
        ]
      }
    }
  ]
}

application/xml, text/xml

Sample:
<EntityApprovalRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.Host.Shared.ViewModels.Collections.Execution">
  <EntityId>2</EntityId>
  <RunFor>2024-10-14T08:20:32.052558-04:00</RunFor>
  <Stages>
    <StageApprovalViewModel>
      <ResidentActionExceptions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfintArrayOfintty7Ep6D1>
          <d4p1:Key>1</d4p1:Key>
          <d4p1:Value>
            <d4p1:int>1</d4p1:int>
            <d4p1:int>2</d4p1:int>
          </d4p1:Value>
        </d4p1:KeyValueOfintArrayOfintty7Ep6D1>
        <d4p1:KeyValueOfintArrayOfintty7Ep6D1>
          <d4p1:Key>2</d4p1:Key>
          <d4p1:Value>
            <d4p1:int>1</d4p1:int>
            <d4p1:int>2</d4p1:int>
          </d4p1:Value>
        </d4p1:KeyValueOfintArrayOfintty7Ep6D1>
      </ResidentActionExceptions>
      <StageId>1</StageId>
    </StageApprovalViewModel>
    <StageApprovalViewModel>
      <ResidentActionExceptions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfintArrayOfintty7Ep6D1>
          <d4p1:Key>1</d4p1:Key>
          <d4p1:Value>
            <d4p1:int>1</d4p1:int>
            <d4p1:int>2</d4p1:int>
          </d4p1:Value>
        </d4p1:KeyValueOfintArrayOfintty7Ep6D1>
        <d4p1:KeyValueOfintArrayOfintty7Ep6D1>
          <d4p1:Key>2</d4p1:Key>
          <d4p1:Value>
            <d4p1:int>1</d4p1:int>
            <d4p1:int>2</d4p1:int>
          </d4p1:Value>
        </d4p1:KeyValueOfintArrayOfintty7Ep6D1>
      </ResidentActionExceptions>
      <StageId>1</StageId>
    </StageApprovalViewModel>
  </Stages>
</EntityApprovalRequestViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EntityApprovalRequestViewModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.