GET v1/themes/{id}
Retrieves a theme by their id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Unique Identifier of the theme requested. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
The Theme, if it exists. Otherwise a 404 error.
Theme| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| Name | string |
None. |
|
| PrimaryColor | string |
None. |
|
| SecondaryColor | string |
None. |
|
| SuccessColor | string |
None. |
|
| FailColor | string |
None. |
Response Codes
- 200 OK: Requested theme successfully returned.
- 401 Unauthorized:
- 404 NotFound: Requested theme does not exist.
- 500 InternalServerError:
Response Formats
application/json, text/json
Sample:
{
"Id": "sample string 1",
"Name": "sample string 2",
"PrimaryColor": "sample string 3",
"SecondaryColor": "sample string 4",
"SuccessColor": "sample string 5",
"FailColor": "sample string 6"
}
text/html
Sample:
{"Id":"sample string 1","Name":"sample string 2","PrimaryColor":"sample string 3","SecondaryColor":"sample string 4","SuccessColor":"sample string 5","FailColor":"sample string 6"}
application/xml, text/xml
Sample:
<Theme xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Models"> <FailColor>sample string 6</FailColor> <Id>sample string 1</Id> <Name>sample string 2</Name> <PrimaryColor>sample string 3</PrimaryColor> <SecondaryColor>sample string 4</SecondaryColor> <SuccessColor>sample string 5</SuccessColor> </Theme>