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": "3cd3b151-24be-48d3-83cd-657569869047",
"NetworkId": "e14484cd-73c3-49cc-9fc0-58389cf1fd95",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "ed4ab214-b8f3-4bca-bb05-a7c2582debff",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "ed4ab214-b8f3-4bca-bb05-a7c2582debff",
"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>ed4ab214-b8f3-4bca-bb05-a7c2582debff</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>b0c1b492-888a-444d-9efa-f7ccb691401d</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>ed4ab214-b8f3-4bca-bb05-a7c2582debff</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>b0c1b492-888a-444d-9efa-f7ccb691401d</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>3cd3b151-24be-48d3-83cd-657569869047</Id>
<Name>sample string 3</Name>
<NetworkId>e14484cd-73c3-49cc-9fc0-58389cf1fd95</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": "b5eb6463-65a1-44f4-add8-e03645b0c64e",
"NetworkId": "ca34d45d-eb8e-4037-8824-5bc8184d597a",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "8a3aabe5-a48d-4dbc-9e13-b1bea7683d67",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "8a3aabe5-a48d-4dbc-9e13-b1bea7683d67",
"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>8a3aabe5-a48d-4dbc-9e13-b1bea7683d67</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>74d7f620-68d6-4e6e-b3f2-f5de8f034f0c</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>8a3aabe5-a48d-4dbc-9e13-b1bea7683d67</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>74d7f620-68d6-4e6e-b3f2-f5de8f034f0c</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>b5eb6463-65a1-44f4-add8-e03645b0c64e</Id>
<Name>sample string 3</Name>
<NetworkId>ca34d45d-eb8e-4037-8824-5bc8184d597a</NetworkId>
</BrandDto>