POST v1/themes

Creates a theme

Request Information

URI Parameters

None.

Body Parameters

An object representing the theme.

Theme
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

PrimaryColor

string

None.

SecondaryColor

string

None.

SuccessColor

string

None.

FailColor

string

None.

Request 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>

Response Information

Resource Description

A response containing the new Theme's unique id, or validation errors if the theme could not be created.

ThemePostResponse
NameDescriptionTypeAdditional 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.Questionnaire.Api.Contracts.v1.Responses">
  <Id>sample string 1</Id>
</ThemePostResponse>