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": "908c9c54-ada4-4a42-8266-8176846265d9",
"NetworkId": "3ac81239-8410-4d29-9985-c00a3fc0ca9f",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "3f816380-9dd0-4d6b-b172-a95fb8504e21",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "3f816380-9dd0-4d6b-b172-a95fb8504e21",
"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>3f816380-9dd0-4d6b-b172-a95fb8504e21</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>b96d12c7-1d3a-4222-b74b-482571302004</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>3f816380-9dd0-4d6b-b172-a95fb8504e21</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>b96d12c7-1d3a-4222-b74b-482571302004</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>908c9c54-ada4-4a42-8266-8176846265d9</Id>
<Name>sample string 3</Name>
<NetworkId>3ac81239-8410-4d29-9985-c00a3fc0ca9f</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": "a35f3621-def1-45da-9015-bbd0439265fe",
"NetworkId": "fb269317-d3b3-4935-a33e-9e8687822ed3",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "ddd0fb6e-5bd5-4481-9468-94c5133813f3",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "ddd0fb6e-5bd5-4481-9468-94c5133813f3",
"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>ddd0fb6e-5bd5-4481-9468-94c5133813f3</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>31572f1e-da39-43aa-a9b1-7e10e1067b41</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>ddd0fb6e-5bd5-4481-9468-94c5133813f3</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>31572f1e-da39-43aa-a9b1-7e10e1067b41</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>a35f3621-def1-45da-9015-bbd0439265fe</Id>
<Name>sample string 3</Name>
<NetworkId>fb269317-d3b3-4935-a33e-9e8687822ed3</NetworkId>
</BrandDto>