PUT api/SetTheme

Request Information

URI Parameters

None.

Body Parameters

Theme
NameDescriptionTypeAdditional information
Code

string

Required

Matching regular expression pattern: ^[0-9a-zA-Z-]*$

String length: inclusive between 3 and 3

ColorCode

string

None.

FlashFormationColorCode

string

None.

LabelShort

string

Required

String length: inclusive between 0 and 30

LabelLong

string

Required

String length: inclusive between 0 and 128

Order

integer

Required

Range: inclusive between 1 and 2147483647

Status

AggregateLabel

None.

Referents

Collection of Referent

None.

SubThemes

Collection of SubTheme

None.

Request Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "ColorCode": "sample string 2",
  "FlashFormationColorCode": "sample string 3",
  "LabelShort": "sample string 4",
  "LabelLong": "sample string 5",
  "Order": 1,
  "Status": {
    "Code": "sample string 1",
    "Label": "sample string 2"
  },
  "Referents": [
    {
      "Id": 1,
      "FriendId": 2,
      "CodeTheme": "sample string 3",
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "Email": "sample string 6",
      "Phone": "sample string 7"
    },
    {
      "Id": 1,
      "FriendId": 2,
      "CodeTheme": "sample string 3",
      "FirstName": "sample string 4",
      "LastName": "sample string 5",
      "Email": "sample string 6",
      "Phone": "sample string 7"
    }
  ],
  "SubThemes": [
    {
      "Code": "sample string 1",
      "CodeTheme": "sample string 2",
      "LabelShort": "sample string 3",
      "LabelLong": "sample string 4",
      "Order": 1
    },
    {
      "Code": "sample string 1",
      "CodeTheme": "sample string 2",
      "LabelShort": "sample string 3",
      "LabelLong": "sample string 4",
      "Order": 1
    }
  ]
}

application/xml, text/xml

Sample:
<Theme xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Models">
  <Code>sample string 1</Code>
  <ColorCode>sample string 2</ColorCode>
  <FlashFormationColorCode>sample string 3</FlashFormationColorCode>
  <LabelLong>sample string 5</LabelLong>
  <LabelShort>sample string 4</LabelShort>
  <Order>1</Order>
  <Referents>
    <Referent>
      <CodeTheme>sample string 3</CodeTheme>
      <Email>sample string 6</Email>
      <FirstName>sample string 4</FirstName>
      <FriendId>2</FriendId>
      <Id>1</Id>
      <LastName>sample string 5</LastName>
      <Phone>sample string 7</Phone>
    </Referent>
    <Referent>
      <CodeTheme>sample string 3</CodeTheme>
      <Email>sample string 6</Email>
      <FirstName>sample string 4</FirstName>
      <FriendId>2</FriendId>
      <Id>1</Id>
      <LastName>sample string 5</LastName>
      <Phone>sample string 7</Phone>
    </Referent>
  </Referents>
  <Status>
    <Code>sample string 1</Code>
    <Label>sample string 2</Label>
  </Status>
  <SubThemes>
    <SubTheme>
      <Code>sample string 1</Code>
      <CodeTheme>sample string 2</CodeTheme>
      <LabelLong>sample string 4</LabelLong>
      <LabelShort>sample string 3</LabelShort>
      <Order>1</Order>
    </SubTheme>
    <SubTheme>
      <Code>sample string 1</Code>
      <CodeTheme>sample string 2</CodeTheme>
      <LabelLong>sample string 4</LabelLong>
      <LabelShort>sample string 3</LabelShort>
      <Order>1</Order>
    </SubTheme>
  </SubThemes>
</Theme>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Success

boolean

None.

Code

integer

None.

Modifications

integer

None.

Id

integer

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Code": 2,
  "Modifications": 3,
  "Id": 4,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Models">
  <Code>2</Code>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <Id>4</Id>
  <Modifications>3</Modifications>
  <Success>true</Success>
</Response>