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": "b2ecda7b-8d0c-491c-8ef5-1cf8b322091e", "NetworkId": "15da2023-671d-46c9-bd31-cf91035f4623", "Name": "sample string 3", "BrandFuelMasters": [ { "FuelMasterId": "f8ad1708-4fb8-4535-82fc-b81d6c60a5df", "FuelMasterName": "sample string 3", "Name": "sample string 4" }, { "FuelMasterId": "f8ad1708-4fb8-4535-82fc-b81d6c60a5df", "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>f8ad1708-4fb8-4535-82fc-b81d6c60a5df</FuelMasterId> <FuelMasterName>sample string 3</FuelMasterName> <Id>356aefa9-e26d-4f18-8268-2ceca4c07858</Id> <Name>sample string 4</Name> </BrandFuelMasterDto> <BrandFuelMasterDto> <FuelMasterId>f8ad1708-4fb8-4535-82fc-b81d6c60a5df</FuelMasterId> <FuelMasterName>sample string 3</FuelMasterName> <Id>356aefa9-e26d-4f18-8268-2ceca4c07858</Id> <Name>sample string 4</Name> </BrandFuelMasterDto> </BrandFuelMasters> <Id>b2ecda7b-8d0c-491c-8ef5-1cf8b322091e</Id> <Name>sample string 3</Name> <NetworkId>15da2023-671d-46c9-bd31-cf91035f4623</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": "860584ae-68db-4a38-9319-c2d1fe4f3374", "NetworkId": "e847fe40-7a19-41de-930f-ad777f13e4d8", "Name": "sample string 3", "BrandFuelMasters": [ { "FuelMasterId": "7325cbaa-1251-4ffa-bfad-f978c8682f80", "FuelMasterName": "sample string 3", "Name": "sample string 4" }, { "FuelMasterId": "7325cbaa-1251-4ffa-bfad-f978c8682f80", "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>7325cbaa-1251-4ffa-bfad-f978c8682f80</FuelMasterId> <FuelMasterName>sample string 3</FuelMasterName> <Id>564718f1-1f75-4972-b9c9-25c172d91fbd</Id> <Name>sample string 4</Name> </BrandFuelMasterDto> <BrandFuelMasterDto> <FuelMasterId>7325cbaa-1251-4ffa-bfad-f978c8682f80</FuelMasterId> <FuelMasterName>sample string 3</FuelMasterName> <Id>564718f1-1f75-4972-b9c9-25c172d91fbd</Id> <Name>sample string 4</Name> </BrandFuelMasterDto> </BrandFuelMasters> <Id>860584ae-68db-4a38-9319-c2d1fe4f3374</Id> <Name>sample string 3</Name> <NetworkId>e847fe40-7a19-41de-930f-ad777f13e4d8</NetworkId> </BrandDto>