POST api/Company
Post company
Request Information
URI Parameters
None.
Body Parameters
Company
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": "f8134706-fa51-498a-8411-8100a42db5d6",
"Name": "sample string 2",
"Description": "sample string 3",
"ListOfSectionOfCompanyDto": [
{
"CompanyId": "a60dd8f2-0b3e-4d60-b8cc-f2f8062a543b",
"Id": "b7041181-d4c9-40bb-9d78-bb96bfcc632e",
"IsVisible": true,
"SectionPatternId": "sample string 4"
},
{
"CompanyId": "a60dd8f2-0b3e-4d60-b8cc-f2f8062a543b",
"Id": "b7041181-d4c9-40bb-9d78-bb96bfcc632e",
"IsVisible": true,
"SectionPatternId": "sample string 4"
}
],
"IdOfFileSpecOfLogo": "b93e1eb9-5d89-4e55-9906-ba2d9cf00d43",
"FileSpecOfLogo": {
"Id": "b23aad5e-bb98-46ab-b90e-15418e63b8c8",
"Name": "sample string 2",
"Extension": "sample string 3",
"ContentType": "sample string 4",
"Length": 5,
"ContainerName": "ec535ab1-21b5-46c4-8a3e-4ead8142fc7c",
"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>ec535ab1-21b5-46c4-8a3e-4ead8142fc7c</ContainerName>
<ContentType>sample string 4</ContentType>
<CreatedUnixTime>7</CreatedUnixTime>
<Extension>sample string 3</Extension>
<FileUrl>sample string 8</FileUrl>
<Id>b23aad5e-bb98-46ab-b90e-15418e63b8c8</Id>
<ImgHeight>1</ImgHeight>
<ImgWidth>1</ImgWidth>
<Length>5</Length>
<Name>sample string 2</Name>
</FileSpecOfLogo>
<Id>f8134706-fa51-498a-8411-8100a42db5d6</Id>
<IdOfFileSpecOfLogo>b93e1eb9-5d89-4e55-9906-ba2d9cf00d43</IdOfFileSpecOfLogo>
<ListOfSectionOfCompanyDto>
<SectionOfCompanyDto>
<Id>b7041181-d4c9-40bb-9d78-bb96bfcc632e</Id>
<IsVisible>true</IsVisible>
<SectionPatternId>sample string 4</SectionPatternId>
<CompanyId>a60dd8f2-0b3e-4d60-b8cc-f2f8062a543b</CompanyId>
</SectionOfCompanyDto>
<SectionOfCompanyDto>
<Id>b7041181-d4c9-40bb-9d78-bb96bfcc632e</Id>
<IsVisible>true</IsVisible>
<SectionPatternId>sample string 4</SectionPatternId>
<CompanyId>a60dd8f2-0b3e-4d60-b8cc-f2f8062a543b</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.