POST api/Assignment

Request Information

URI Parameters

None.

Body Parameters

AssignmentCreateUpdateModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

AccountId

integer

None.

IsAssignmentForOperator

boolean

None.

Evaluators

Collection of integer

None.

Operators

Collection of integer

None.

Managers

Collection of integer

None.

LocationNodes

Collection of integer

None.

LocationTypes

Collection of integer

None.

InspectionTemplates

Collection of integer

None.

Status

string

None.

AssignmentsQuota

QuotaAssignmentInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "AccountId": 3,
  "IsAssignmentForOperator": true,
  "Evaluators": [
    1,
    2
  ],
  "Operators": [
    1,
    2
  ],
  "Managers": [
    1,
    2
  ],
  "LocationNodes": [
    1,
    2
  ],
  "LocationTypes": [
    1,
    2
  ],
  "InspectionTemplates": [
    1,
    2
  ],
  "Status": "sample string 5",
  "AssignmentsQuota": {
    "Id": 1,
    "InspectionQuotaCount": 2,
    "QuotaPeriodTypeId": 3,
    "QuotaPeriodType": "sample string 4",
    "StartQuotaPeriod": "sample string 5",
    "EndQuotaPeriod": "sample string 6",
    "SkipQuotaPeriod": "sample string 7",
    "IncludeQuotaPeriod": "sample string 8",
    "StartDate": "2024-11-21T10:24:02.1651032+00:00",
    "StartDateDisplay": "sample string 9",
    "AssignmentQuotaPattern": "sample string 10",
    "Status": "sample string 11"
  }
}

application/xml, text/xml

Sample:
<AssignmentList.AssignmentCreateUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Walsh.Model.Models.Assignment">
  <AccountId>3</AccountId>
  <AssignmentsQuota>
    <AssignmentQuotaPattern>sample string 10</AssignmentQuotaPattern>
    <EndQuotaPeriod>sample string 6</EndQuotaPeriod>
    <Id>1</Id>
    <IncludeQuotaPeriod>sample string 8</IncludeQuotaPeriod>
    <InspectionQuotaCount>2</InspectionQuotaCount>
    <QuotaPeriodType>sample string 4</QuotaPeriodType>
    <QuotaPeriodTypeId>3</QuotaPeriodTypeId>
    <SkipQuotaPeriod>sample string 7</SkipQuotaPeriod>
    <StartDate>2024-11-21T10:24:02.1651032+00:00</StartDate>
    <StartDateDisplay>sample string 9</StartDateDisplay>
    <StartQuotaPeriod>sample string 5</StartQuotaPeriod>
    <Status>sample string 11</Status>
  </AssignmentsQuota>
  <Evaluators xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Evaluators>
  <Id>1</Id>
  <InspectionTemplates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </InspectionTemplates>
  <IsAssignmentForOperator>true</IsAssignmentForOperator>
  <LocationNodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </LocationNodes>
  <LocationTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </LocationTypes>
  <Managers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Managers>
  <Name>sample string 2</Name>
  <Operators xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Operators>
  <Status>sample string 5</Status>
</AssignmentList.AssignmentCreateUpdateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

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