POST v1/themes
Creates a theme
Request Information
URI Parameters
None.
Body Parameters
An object representing the theme.
Theme| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Name | string |
None. |
|
| LegendHeader | string |
None. |
|
| LegendBackgroundColor | string |
None. |
|
| LegendTextColor | string |
None. |
|
| FrameBackgroundColor | string |
None. |
|
| CompanyLogo | string |
None. |
|
| Logo | string |
None. |
|
| FrameBackgroundImage | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"Name": "sample string 2",
"LegendHeader": "sample string 3",
"LegendBackgroundColor": "sample string 4",
"LegendTextColor": "sample string 5",
"FrameBackgroundColor": "sample string 6",
"CompanyLogo": "sample string 7",
"Logo": "sample string 8",
"FrameBackgroundImage": "sample string 9"
}
text/html
Sample:
{"Id":"sample string 1","Name":"sample string 2","LegendHeader":"sample string 3","LegendBackgroundColor":"sample string 4","LegendTextColor":"sample string 5","FrameBackgroundColor":"sample string 6","CompanyLogo":"sample string 7","Logo":"sample string 8","FrameBackgroundImage":"sample string 9"}
application/xml, text/xml
Sample:
<Theme xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Games.Api.Contracts.v1.Models"> <CompanyLogo>sample string 7</CompanyLogo> <FrameBackgroundColor>sample string 6</FrameBackgroundColor> <FrameBackgroundImage>sample string 9</FrameBackgroundImage> <Id>sample string 1</Id> <LegendBackgroundColor>sample string 4</LegendBackgroundColor> <LegendHeader>sample string 3</LegendHeader> <LegendTextColor>sample string 5</LegendTextColor> <Logo>sample string 8</Logo> <Name>sample string 2</Name> </Theme>
Response Information
Resource Description
A response containing the new Theme's unique id, or validation errors if the theme could not be created.
ThemePostResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
Response Codes
- 201 Created: Theme successfully created.
- 400 BadRequest: Data validation failed, see the response body for more information.
- 401 Unauthorized:
- 500 InternalServerError:
Response Formats
application/json, text/json
Sample:
{
"Id": "sample string 1"
}
text/html
Sample:
{"Id":"sample string 1"}
application/xml, text/xml
Sample:
<ThemePostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Games.Api.Contracts.v1.Responses"> <Id>sample string 1</Id> </ThemePostResponse>