PUT api/CompanyCategories/{id}
Редактировать запись
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
ИД CompCategoryId |
integer |
Required |
Body Parameters
Класс CompanyCategory
CompanyCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| CompCategoryId |
ИД |
integer |
None. |
| CompanyId |
Внешний ключ, связан с таблицей Companies |
integer |
Required |
| CategoryId |
Внешний ключ, связан с таблицей CategoryWorks |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"CompCategoryId": 1,
"CompanyId": 2,
"CategoryId": 3
}
application/xml, text/xml
Sample:
<CompanyCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SadiApi.Models"> <CategoryId>3</CategoryId> <CompCategoryId>1</CompCategoryId> <CompanyId>2</CompanyId> </CompanyCategory>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CompanyCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| CompCategoryId |
ИД |
integer |
None. |
| CompanyId |
Внешний ключ, связан с таблицей Companies |
integer |
Required |
| CategoryId |
Внешний ключ, связан с таблицей CategoryWorks |
integer |
Required |
Response Formats
application/json, text/json
Sample:
{
"CompCategoryId": 1,
"CompanyId": 2,
"CategoryId": 3
}
application/xml, text/xml
Sample:
<CompanyCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SadiApi.Models"> <CategoryId>3</CategoryId> <CompCategoryId>1</CompCategoryId> <CompanyId>2</CompanyId> </CompanyCategory>