DELETE | /brandaliases/{brandAliasId} | Deletes a Brand Alias by Id | |
---|---|---|---|
GET | /brandaliases | Gets all Brand Aliases or a Brand Alias by BrandAliasId, BrandId, or Alias | |
POST | /brandaliases | Creates a new Brand Alias | |
PUT | /brandaliases | Updates an existing Brand Alias |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
BrandAliasId | form | int | No | |
BrandId | form | int | No | |
AccountId | form | int | No | |
Alias | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ResponseStatus | form | ResponseStatus | No | |
BrandAliases | form | List<BrandAlias> | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /brandaliases HTTP/1.1
Host: avb-pos.avbportal.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
brandAliasId: 0,
brandId: 0,
accountId: 0,
alias: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }, brandAliases: [ { brandAliasId: 0, brandId: 0, accountId: 0, alias: String } ] }