POST Brands
Creates a new brand.
Request Information
URI Parameters
None.
Body Parameters
The data of the brand.
BrandDtoName | 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": "8f523856-045a-464c-8e82-3349cd3cb817", "NetworkId": "10663efc-7f1c-4a97-a3b8-4fe2080a52f1", "Name": "sample string 3", "BrandFuelMasters": [ { "FuelMasterId": "790a813c-ba93-4274-9d50-0e0d9d2aa0b2", "FuelMasterName": "sample string 3", "Name": "sample string 4" }, { "FuelMasterId": "790a813c-ba93-4274-9d50-0e0d9d2aa0b2", "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>790a813c-ba93-4274-9d50-0e0d9d2aa0b2</FuelMasterId> <FuelMasterName>sample string 3</FuelMasterName> <Id>6dae6000-068d-4547-b3d5-bb6610ae3910</Id> <Name>sample string 4</Name> </BrandFuelMasterDto> <BrandFuelMasterDto> <FuelMasterId>790a813c-ba93-4274-9d50-0e0d9d2aa0b2</FuelMasterId> <FuelMasterName>sample string 3</FuelMasterName> <Id>6dae6000-068d-4547-b3d5-bb6610ae3910</Id> <Name>sample string 4</Name> </BrandFuelMasterDto> </BrandFuelMasters> <Id>8f523856-045a-464c-8e82-3349cd3cb817</Id> <Name>sample string 3</Name> <NetworkId>10663efc-7f1c-4a97-a3b8-4fe2080a52f1</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.
BrandDtoName | 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": "3615fb18-8d1e-4fbb-8f99-f1867f5fe1e9", "NetworkId": "04032bed-01f4-459e-a639-05abb99da81f", "Name": "sample string 3", "BrandFuelMasters": [ { "FuelMasterId": "737ab5ca-e9fe-44bb-94f2-a67e6db4bc81", "FuelMasterName": "sample string 3", "Name": "sample string 4" }, { "FuelMasterId": "737ab5ca-e9fe-44bb-94f2-a67e6db4bc81", "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>737ab5ca-e9fe-44bb-94f2-a67e6db4bc81</FuelMasterId> <FuelMasterName>sample string 3</FuelMasterName> <Id>91dcc255-fcef-4291-ae3d-6caab356f6e0</Id> <Name>sample string 4</Name> </BrandFuelMasterDto> <BrandFuelMasterDto> <FuelMasterId>737ab5ca-e9fe-44bb-94f2-a67e6db4bc81</FuelMasterId> <FuelMasterName>sample string 3</FuelMasterName> <Id>91dcc255-fcef-4291-ae3d-6caab356f6e0</Id> <Name>sample string 4</Name> </BrandFuelMasterDto> </BrandFuelMasters> <Id>3615fb18-8d1e-4fbb-8f99-f1867f5fe1e9</Id> <Name>sample string 3</Name> <NetworkId>04032bed-01f4-459e-a639-05abb99da81f</NetworkId> </BrandDto>