POST api/RegisterWebshops/PostRegisterWebshop/{companyId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyId | integer |
Required |
Body Parameters
RegisterWebshopViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| string |
Required |
||
| FirstName | string |
Required String length: inclusive between 0 and 100 |
|
| LastName | string |
Required String length: inclusive between 0 and 100 |
|
| CompanyRole | string |
Required String length: inclusive between 0 and 100 |
|
| CompanyName | string |
Required String length: inclusive between 0 and 100 |
|
| CompanyNumber | string |
Required String length: inclusive between 0 and 50 |
|
| Street | string |
Required String length: inclusive between 0 and 100 |
|
| PCode | string |
Required String length: inclusive between 0 and 20 |
|
| City | string |
Required String length: inclusive between 0 and 100 |
|
| Country | string |
Required String length: inclusive between 0 and 100 |
|
| Telephone | string |
Required String length: inclusive between 0 and 100 |
Request Formats
application/json, text/json
Sample:
{
"email": "sample string 1",
"firstName": "sample string 2",
"lastName": "sample string 3",
"companyRole": "sample string 4",
"companyName": "sample string 5",
"companyNumber": "sample string 6",
"street": "sample string 7",
"pCode": "sample string 8",
"city": "sample string 9",
"country": "sample string 10",
"telephone": "sample string 11"
}
application/xml, text/xml
Sample:
<RegisterWebshopViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.ViewModels"> <City>sample string 9</City> <CompanyName>sample string 5</CompanyName> <CompanyNumber>sample string 6</CompanyNumber> <CompanyRole>sample string 4</CompanyRole> <Country>sample string 10</Country> <Email>sample string 1</Email> <FirstName>sample string 2</FirstName> <LastName>sample string 3</LastName> <PCode>sample string 8</PCode> <Street>sample string 7</Street> <Telephone>sample string 11</Telephone> </RegisterWebshopViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>