POST api/SubCategories/saveSizes
Request Information
URI Parameters
None.
Body Parameters
StoneFactoryAPI.Models.SubCategoriesModel+saveSize| Name | Description | Type | Additional information |
|---|---|---|---|
| subCategoryId | integer |
None. |
|
| patternId | integer |
None. |
|
| userId | integer |
None. |
|
| changed | string |
None. |
|
| patternSizes | Collection of StoneFactoryAPI.Models.SubCategoriesModel+addSize |
None. |
Request Formats
application/json, text/json
Sample:
{
"subCategoryId": 1,
"patternId": 2,
"userId": 3,
"changed": "sample string 4",
"patternSizes": [
{
"mixId": 1,
"subCategoryId": 2,
"patternId": 3,
"userId": 4,
"groupId": 5
},
{
"mixId": 1,
"subCategoryId": 2,
"patternId": 3,
"userId": 4,
"groupId": 5
}
]
}
application/xml, text/xml
Sample:
<SubCategoriesModel.saveSize xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models">
<changed>sample string 4</changed>
<patternId>2</patternId>
<patternSizes>
<SubCategoriesModel.addSize>
<groupId>5</groupId>
<mixId>1</mixId>
<patternId>3</patternId>
<subCategoryId>2</subCategoryId>
<userId>4</userId>
</SubCategoriesModel.addSize>
<SubCategoriesModel.addSize>
<groupId>5</groupId>
<mixId>1</mixId>
<patternId>3</patternId>
<subCategoryId>2</subCategoryId>
<userId>4</userId>
</SubCategoriesModel.addSize>
</patternSizes>
<subCategoryId>1</subCategoryId>
<userId>3</userId>
</SubCategoriesModel.saveSize>
multipart/form-data
Sample:
<SubCategoriesModel.saveSize xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models"><changed>sample string 4</changed><patternId>2</patternId><patternSizes><SubCategoriesModel.addSize><groupId>5</groupId><mixId>1</mixId><patternId>3</patternId><subCategoryId>2</subCategoryId><userId>4</userId></SubCategoriesModel.addSize><SubCategoriesModel.addSize><groupId>5</groupId><mixId>1</mixId><patternId>3</patternId><subCategoryId>2</subCategoryId><userId>4</userId></SubCategoriesModel.addSize></patternSizes><subCategoryId>1</subCategoryId><userId>3</userId></SubCategoriesModel.saveSize>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
System.Net.Http.HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | System.Version |
None. |
|
| Content | System.Net.Http.HttpContent |
None. |
|
| StatusCode | System.Net.HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | System.Net.Http.HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |