POST api/List

Use this method to create an

Request Information

URI Parameters

None.

Body Parameters

The name of the to create

string

Request Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The response to the creation request

GenericResourceResponse
NameDescriptionTypeAdditional information
Id

The unique id of the resource that is worked with

integer

None.

Success

True if successful

boolean

None.

ErrorMessage

Error message if the request is unsuccessful

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "success": true,
  "errorMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<GenericResourceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TScunts.Models.API.List">
  <ErrorMessage>sample string 3</ErrorMessage>
  <Id>1</Id>
  <Success>true</Success>
</GenericResourceResponse>