PUT api/Company?id={id}
Change company info
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Company id |
globally unique identifier |
Required |
Body Parameters
Company data transfer object
CompanyDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Company Id (GUID) |
globally unique identifier |
None. |
| Name |
Company name |
string |
None. |
| Description |
Company description |
string |
None. |
| ListOfSectionOfCompanyDto |
List of sections |
Collection of SectionOfCompanyDto |
None. |
| IdOfFileSpecOfLogo |
Id of file of company logo: can be null - if no logo |
globally unique identifier |
None. |
| FileSpecOfLogo |
Logo file with file url varchar(2083): created from IdOfFileSpecOfLogo |
FileSpecDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "d68dc1cb-0283-49bb-8fe7-11dc0d9afa19",
"Name": "sample string 2",
"Description": "sample string 3",
"ListOfSectionOfCompanyDto": [
{
"CompanyId": "517cb898-8762-47ad-8a6c-bb938b2f2ee4",
"Id": "42340f3b-b794-44c4-bf19-827120664a11",
"IsVisible": true,
"SectionPatternId": "sample string 4"
},
{
"CompanyId": "517cb898-8762-47ad-8a6c-bb938b2f2ee4",
"Id": "42340f3b-b794-44c4-bf19-827120664a11",
"IsVisible": true,
"SectionPatternId": "sample string 4"
}
],
"IdOfFileSpecOfLogo": "337446b5-9e22-496b-b707-94466f87c3fd",
"FileSpecOfLogo": {
"Id": "7e524af4-929c-4660-b848-08dd96e11b7b",
"Name": "sample string 2",
"Extension": "sample string 3",
"ContentType": "sample string 4",
"Length": 5,
"ContainerName": "e0e4a969-4450-464a-aa6e-54ca52318758",
"CreatedUnixTime": 7,
"FileUrl": "sample string 8",
"ImgWidth": 1,
"ImgHeight": 1
}
}
application/xml, text/xml
Sample:
<CompanyDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
<Description>sample string 3</Description>
<FileSpecOfLogo>
<ContainerName>e0e4a969-4450-464a-aa6e-54ca52318758</ContainerName>
<ContentType>sample string 4</ContentType>
<CreatedUnixTime>7</CreatedUnixTime>
<Extension>sample string 3</Extension>
<FileUrl>sample string 8</FileUrl>
<Id>7e524af4-929c-4660-b848-08dd96e11b7b</Id>
<ImgHeight>1</ImgHeight>
<ImgWidth>1</ImgWidth>
<Length>5</Length>
<Name>sample string 2</Name>
</FileSpecOfLogo>
<Id>d68dc1cb-0283-49bb-8fe7-11dc0d9afa19</Id>
<IdOfFileSpecOfLogo>337446b5-9e22-496b-b707-94466f87c3fd</IdOfFileSpecOfLogo>
<ListOfSectionOfCompanyDto>
<SectionOfCompanyDto>
<Id>42340f3b-b794-44c4-bf19-827120664a11</Id>
<IsVisible>true</IsVisible>
<SectionPatternId>sample string 4</SectionPatternId>
<CompanyId>517cb898-8762-47ad-8a6c-bb938b2f2ee4</CompanyId>
</SectionOfCompanyDto>
<SectionOfCompanyDto>
<Id>42340f3b-b794-44c4-bf19-827120664a11</Id>
<IsVisible>true</IsVisible>
<SectionPatternId>sample string 4</SectionPatternId>
<CompanyId>517cb898-8762-47ad-8a6c-bb938b2f2ee4</CompanyId>
</SectionOfCompanyDto>
</ListOfSectionOfCompanyDto>
<Name>sample string 2</Name>
</CompanyDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Created company
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.