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": "98da29ec-63df-4333-ba6b-a61a093bee4b",
"NetworkId": "5dfc2b85-3b0e-4d33-aa4c-327fad4a36e3",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "866d7910-eb1e-4a57-8563-0effa05665f1",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "866d7910-eb1e-4a57-8563-0effa05665f1",
"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>866d7910-eb1e-4a57-8563-0effa05665f1</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>4a1ea2d8-1273-4d43-ad72-464335e13657</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>866d7910-eb1e-4a57-8563-0effa05665f1</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>4a1ea2d8-1273-4d43-ad72-464335e13657</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>98da29ec-63df-4333-ba6b-a61a093bee4b</Id>
<Name>sample string 3</Name>
<NetworkId>5dfc2b85-3b0e-4d33-aa4c-327fad4a36e3</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": "8ee1e55e-d42f-429d-a956-e9138c870813",
"NetworkId": "e306cd41-19d9-4226-b2c0-e746bca3b986",
"Name": "sample string 3",
"BrandFuelMasters": [
{
"FuelMasterId": "aec147de-8e55-48e0-85cf-114951a0d38e",
"FuelMasterName": "sample string 3",
"Name": "sample string 4"
},
{
"FuelMasterId": "aec147de-8e55-48e0-85cf-114951a0d38e",
"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>aec147de-8e55-48e0-85cf-114951a0d38e</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>c92e79e0-d6d5-41cc-82ce-04a2fb805823</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
<BrandFuelMasterDto>
<FuelMasterId>aec147de-8e55-48e0-85cf-114951a0d38e</FuelMasterId>
<FuelMasterName>sample string 3</FuelMasterName>
<Id>c92e79e0-d6d5-41cc-82ce-04a2fb805823</Id>
<Name>sample string 4</Name>
</BrandFuelMasterDto>
</BrandFuelMasters>
<Id>8ee1e55e-d42f-429d-a956-e9138c870813</Id>
<Name>sample string 3</Name>
<NetworkId>e306cd41-19d9-4226-b2c0-e746bca3b986</NetworkId>
</BrandDto>