POST api/Charts/PostChart

Request Information

URI Parameters

None.

Body Parameters

Chart
NameDescriptionTypeAdditional information
ChartId

integer

None.

ChartTypeId

integer

None.

Title

string

None.

Position

integer

None.

Chartvalues

string

Max length: -1

TitleColorHex

string

None.

LastChanged

date

None.

LastChange_AuthorId

integer

None.

IsDraft

boolean

None.

IsTopTitled

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ChartId": 1,
  "ChartTypeId": 2,
  "Title": "sample string 3",
  "Position": 1,
  "Chartvalues": "sample string 4",
  "TitleColorHex": "sample string 5",
  "LastChanged": "2025-07-27T18:37:29.0241598+00:00",
  "LastChange_AuthorId": 1,
  "IsDraft": true,
  "IsTopTitled": true
}

application/xml, text/xml

Sample:
<Chart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <ChartId>1</ChartId>
  <ChartTypeId>2</ChartTypeId>
  <Chartvalues>sample string 4</Chartvalues>
  <IsDraft>true</IsDraft>
  <IsTopTitled>true</IsTopTitled>
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-07-27T18:37:29.0241598+00:00</LastChanged>
  <Position>1</Position>
  <Title>sample string 3</Title>
  <TitleColorHex>sample string 5</TitleColorHex>
</Chart>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Chart'.

Response Information

Resource Description

Chart
NameDescriptionTypeAdditional information
ChartId

integer

None.

ChartTypeId

integer

None.

Title

string

None.

Position

integer

None.

Chartvalues

string

Max length: -1

TitleColorHex

string

None.

LastChanged

date

None.

LastChange_AuthorId

integer

None.

IsDraft

boolean

None.

IsTopTitled

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "ChartId": 1,
  "ChartTypeId": 2,
  "Title": "sample string 3",
  "Position": 1,
  "Chartvalues": "sample string 4",
  "TitleColorHex": "sample string 5",
  "LastChanged": "2025-07-27T18:37:29.0397657+00:00",
  "LastChange_AuthorId": 1,
  "IsDraft": true,
  "IsTopTitled": true
}

application/xml, text/xml

Sample:
<Chart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <ChartId>1</ChartId>
  <ChartTypeId>2</ChartTypeId>
  <Chartvalues>sample string 4</Chartvalues>
  <IsDraft>true</IsDraft>
  <IsTopTitled>true</IsTopTitled>
  <LastChange_AuthorId>1</LastChange_AuthorId>
  <LastChanged>2025-07-27T18:37:29.0397657+00:00</LastChanged>
  <Position>1</Position>
  <Title>sample string 3</Title>
  <TitleColorHex>sample string 5</TitleColorHex>
</Chart>