POST api/AdminData/SaveQuotas?manufacturerID={manufacturerID}&year={year}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| manufacturerID | integer |
Required |
|
| year | integer |
Required |
Body Parameters
QuotaResultViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| States | Collection of QuotaItem |
None. |
|
| SalesRep | Collection of QuotaItem |
None. |
Request Formats
application/json, text/json
Sample:
{
"states": [
{
"userID": 1,
"userName": "sample string 2",
"stateID": 3,
"stateName": "sample string 4",
"marketSegments": [
{
"primaryIndustry": {
"primaryIndustryID": 1,
"primaryIndustryName": "sample string 2",
"primaryIndustryIcon": "sample string 3"
},
"jan": 1.0,
"feb": 2.0,
"mar": 3.0,
"apr": 4.0,
"may": 5.0,
"jun": 6.0,
"jul": 7.0,
"aug": 8.0,
"sep": 9.0,
"oct": 10.0,
"nov": 11.0,
"dec": 12.0
},
{
"primaryIndustry": {
"primaryIndustryID": 1,
"primaryIndustryName": "sample string 2",
"primaryIndustryIcon": "sample string 3"
},
"jan": 1.0,
"feb": 2.0,
"mar": 3.0,
"apr": 4.0,
"may": 5.0,
"jun": 6.0,
"jul": 7.0,
"aug": 8.0,
"sep": 9.0,
"oct": 10.0,
"nov": 11.0,
"dec": 12.0
}
]
},
{
"userID": 1,
"userName": "sample string 2",
"stateID": 3,
"stateName": "sample string 4",
"marketSegments": [
{
"primaryIndustry": {
"primaryIndustryID": 1,
"primaryIndustryName": "sample string 2",
"primaryIndustryIcon": "sample string 3"
},
"jan": 1.0,
"feb": 2.0,
"mar": 3.0,
"apr": 4.0,
"may": 5.0,
"jun": 6.0,
"jul": 7.0,
"aug": 8.0,
"sep": 9.0,
"oct": 10.0,
"nov": 11.0,
"dec": 12.0
},
{
"primaryIndustry": {
"primaryIndustryID": 1,
"primaryIndustryName": "sample string 2",
"primaryIndustryIcon": "sample string 3"
},
"jan": 1.0,
"feb": 2.0,
"mar": 3.0,
"apr": 4.0,
"may": 5.0,
"jun": 6.0,
"jul": 7.0,
"aug": 8.0,
"sep": 9.0,
"oct": 10.0,
"nov": 11.0,
"dec": 12.0
}
]
}
],
"salesRep": [
{
"userID": 1,
"userName": "sample string 2",
"stateID": 3,
"stateName": "sample string 4",
"marketSegments": [
{
"primaryIndustry": {
"primaryIndustryID": 1,
"primaryIndustryName": "sample string 2",
"primaryIndustryIcon": "sample string 3"
},
"jan": 1.0,
"feb": 2.0,
"mar": 3.0,
"apr": 4.0,
"may": 5.0,
"jun": 6.0,
"jul": 7.0,
"aug": 8.0,
"sep": 9.0,
"oct": 10.0,
"nov": 11.0,
"dec": 12.0
},
{
"primaryIndustry": {
"primaryIndustryID": 1,
"primaryIndustryName": "sample string 2",
"primaryIndustryIcon": "sample string 3"
},
"jan": 1.0,
"feb": 2.0,
"mar": 3.0,
"apr": 4.0,
"may": 5.0,
"jun": 6.0,
"jul": 7.0,
"aug": 8.0,
"sep": 9.0,
"oct": 10.0,
"nov": 11.0,
"dec": 12.0
}
]
},
{
"userID": 1,
"userName": "sample string 2",
"stateID": 3,
"stateName": "sample string 4",
"marketSegments": [
{
"primaryIndustry": {
"primaryIndustryID": 1,
"primaryIndustryName": "sample string 2",
"primaryIndustryIcon": "sample string 3"
},
"jan": 1.0,
"feb": 2.0,
"mar": 3.0,
"apr": 4.0,
"may": 5.0,
"jun": 6.0,
"jul": 7.0,
"aug": 8.0,
"sep": 9.0,
"oct": 10.0,
"nov": 11.0,
"dec": 12.0
},
{
"primaryIndustry": {
"primaryIndustryID": 1,
"primaryIndustryName": "sample string 2",
"primaryIndustryIcon": "sample string 3"
},
"jan": 1.0,
"feb": 2.0,
"mar": 3.0,
"apr": 4.0,
"may": 5.0,
"jun": 6.0,
"jul": 7.0,
"aug": 8.0,
"sep": 9.0,
"oct": 10.0,
"nov": 11.0,
"dec": 12.0
}
]
}
]
}
application/xml, text/xml
Sample:
<QuotaResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameTimeBAL.ViewModels">
<SalesRep>
<QuotaItem>
<MarketSegments>
<YearAround>
<Apr>4</Apr>
<Aug>8</Aug>
<Dec>12</Dec>
<Feb>2</Feb>
<Jan>1</Jan>
<Jul>7</Jul>
<Jun>6</Jun>
<Mar>3</Mar>
<May>5</May>
<Nov>11</Nov>
<Oct>10</Oct>
<PrimaryIndustry>
<PrimaryIndustryID>1</PrimaryIndustryID>
<PrimaryIndustryIcon>sample string 3</PrimaryIndustryIcon>
<PrimaryIndustryName>sample string 2</PrimaryIndustryName>
</PrimaryIndustry>
<Sep>9</Sep>
</YearAround>
<YearAround>
<Apr>4</Apr>
<Aug>8</Aug>
<Dec>12</Dec>
<Feb>2</Feb>
<Jan>1</Jan>
<Jul>7</Jul>
<Jun>6</Jun>
<Mar>3</Mar>
<May>5</May>
<Nov>11</Nov>
<Oct>10</Oct>
<PrimaryIndustry>
<PrimaryIndustryID>1</PrimaryIndustryID>
<PrimaryIndustryIcon>sample string 3</PrimaryIndustryIcon>
<PrimaryIndustryName>sample string 2</PrimaryIndustryName>
</PrimaryIndustry>
<Sep>9</Sep>
</YearAround>
</MarketSegments>
<StateID>3</StateID>
<StateName>sample string 4</StateName>
<UserID>1</UserID>
<UserName>sample string 2</UserName>
</QuotaItem>
<QuotaItem>
<MarketSegments>
<YearAround>
<Apr>4</Apr>
<Aug>8</Aug>
<Dec>12</Dec>
<Feb>2</Feb>
<Jan>1</Jan>
<Jul>7</Jul>
<Jun>6</Jun>
<Mar>3</Mar>
<May>5</May>
<Nov>11</Nov>
<Oct>10</Oct>
<PrimaryIndustry>
<PrimaryIndustryID>1</PrimaryIndustryID>
<PrimaryIndustryIcon>sample string 3</PrimaryIndustryIcon>
<PrimaryIndustryName>sample string 2</PrimaryIndustryName>
</PrimaryIndustry>
<Sep>9</Sep>
</YearAround>
<YearAround>
<Apr>4</Apr>
<Aug>8</Aug>
<Dec>12</Dec>
<Feb>2</Feb>
<Jan>1</Jan>
<Jul>7</Jul>
<Jun>6</Jun>
<Mar>3</Mar>
<May>5</May>
<Nov>11</Nov>
<Oct>10</Oct>
<PrimaryIndustry>
<PrimaryIndustryID>1</PrimaryIndustryID>
<PrimaryIndustryIcon>sample string 3</PrimaryIndustryIcon>
<PrimaryIndustryName>sample string 2</PrimaryIndustryName>
</PrimaryIndustry>
<Sep>9</Sep>
</YearAround>
</MarketSegments>
<StateID>3</StateID>
<StateName>sample string 4</StateName>
<UserID>1</UserID>
<UserName>sample string 2</UserName>
</QuotaItem>
</SalesRep>
<States>
<QuotaItem>
<MarketSegments>
<YearAround>
<Apr>4</Apr>
<Aug>8</Aug>
<Dec>12</Dec>
<Feb>2</Feb>
<Jan>1</Jan>
<Jul>7</Jul>
<Jun>6</Jun>
<Mar>3</Mar>
<May>5</May>
<Nov>11</Nov>
<Oct>10</Oct>
<PrimaryIndustry>
<PrimaryIndustryID>1</PrimaryIndustryID>
<PrimaryIndustryIcon>sample string 3</PrimaryIndustryIcon>
<PrimaryIndustryName>sample string 2</PrimaryIndustryName>
</PrimaryIndustry>
<Sep>9</Sep>
</YearAround>
<YearAround>
<Apr>4</Apr>
<Aug>8</Aug>
<Dec>12</Dec>
<Feb>2</Feb>
<Jan>1</Jan>
<Jul>7</Jul>
<Jun>6</Jun>
<Mar>3</Mar>
<May>5</May>
<Nov>11</Nov>
<Oct>10</Oct>
<PrimaryIndustry>
<PrimaryIndustryID>1</PrimaryIndustryID>
<PrimaryIndustryIcon>sample string 3</PrimaryIndustryIcon>
<PrimaryIndustryName>sample string 2</PrimaryIndustryName>
</PrimaryIndustry>
<Sep>9</Sep>
</YearAround>
</MarketSegments>
<StateID>3</StateID>
<StateName>sample string 4</StateName>
<UserID>1</UserID>
<UserName>sample string 2</UserName>
</QuotaItem>
<QuotaItem>
<MarketSegments>
<YearAround>
<Apr>4</Apr>
<Aug>8</Aug>
<Dec>12</Dec>
<Feb>2</Feb>
<Jan>1</Jan>
<Jul>7</Jul>
<Jun>6</Jun>
<Mar>3</Mar>
<May>5</May>
<Nov>11</Nov>
<Oct>10</Oct>
<PrimaryIndustry>
<PrimaryIndustryID>1</PrimaryIndustryID>
<PrimaryIndustryIcon>sample string 3</PrimaryIndustryIcon>
<PrimaryIndustryName>sample string 2</PrimaryIndustryName>
</PrimaryIndustry>
<Sep>9</Sep>
</YearAround>
<YearAround>
<Apr>4</Apr>
<Aug>8</Aug>
<Dec>12</Dec>
<Feb>2</Feb>
<Jan>1</Jan>
<Jul>7</Jul>
<Jun>6</Jun>
<Mar>3</Mar>
<May>5</May>
<Nov>11</Nov>
<Oct>10</Oct>
<PrimaryIndustry>
<PrimaryIndustryID>1</PrimaryIndustryID>
<PrimaryIndustryIcon>sample string 3</PrimaryIndustryIcon>
<PrimaryIndustryName>sample string 2</PrimaryIndustryName>
</PrimaryIndustry>
<Sep>9</Sep>
</YearAround>
</MarketSegments>
<StateID>3</StateID>
<StateName>sample string 4</StateName>
<UserID>1</UserID>
<UserName>sample string 2</UserName>
</QuotaItem>
</States>
</QuotaResultViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.