PUT v1/themes/{id}

Creates a new theme or updates an existing theme

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Unique Identifier of the theme to update or create.

string

Required

Body Parameters

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 quiz group could not be created or updated.

ThemePostResponse
NameDescriptionTypeAdditional information
Id

string

None.

Response Codes

  • 200 OK: Theme successfully saved.
  • 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>