POST Brands
Creates a new brand.
Request Information
URI Parameters
None.
Body Parameters
The data of the brand.
BrandDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| NetworkId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| BrandFuelMasters | Collection of BrandFuelMasterDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "f80c822c-8f1f-4673-996b-226ea10e3c50",
"NetworkId": "ff9b5713-4881-41c6-8ea9-f13821eedf43",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "77c188f2-d310-4116-b515-a84bc0acbc9a",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "77c188f2-d310-4116-b515-a84bc0acbc9a",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<BrandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
<BrandFuelMasters>
<BrandFuelMasterDto>
<FuelMasterId>77c188f2-d310-4116-b515-a84bc0acbc9a</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>99f3ad61-8a61-4e3f-848e-77b9709da132</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>77c188f2-d310-4116-b515-a84bc0acbc9a</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>99f3ad61-8a61-4e3f-848e-77b9709da132</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>f80c822c-8f1f-4673-996b-226ea10e3c50</Id>
<Name>sample string 3</Name>
<NetworkId>ff9b5713-4881-41c6-8ea9-f13821eedf43</NetworkId>
</BrandDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
State of the action, and if created returns the brand as BrandDto and the link to the brand.
BrandDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| NetworkId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| BrandFuelMasters | Collection of BrandFuelMasterDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "4aef0d44-4991-4dd3-893f-3292503abb0e",
"NetworkId": "d5ec87d2-d146-419b-8d84-aea84e55bc61",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "79a8b537-bbec-44c8-9850-2621009e088f",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "79a8b537-bbec-44c8-9850-2621009e088f",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
}
]
}
application/xml, text/xml
Sample:
<BrandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
<BrandFuelMasters>
<BrandFuelMasterDto>
<FuelMasterId>79a8b537-bbec-44c8-9850-2621009e088f</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>4c976ae9-3be7-4d88-b11f-8bec81b98c52</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>79a8b537-bbec-44c8-9850-2621009e088f</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>4c976ae9-3be7-4d88-b11f-8bec81b98c52</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>4aef0d44-4991-4dd3-893f-3292503abb0e</Id>
<Name>sample string 3</Name>
<NetworkId>d5ec87d2-d146-419b-8d84-aea84e55bc61</NetworkId>
</BrandDto>