POST api/TrackTimeProjects/NewProject

Creates a new Track time project.

Request Information

URI Parameters

None.

Body Parameters

NewTrackTimeProjectPost
NameDescriptionTypeAdditional information
Name

(Required) Name of the Track time project.

string

None.

Code

Code of the Track time project

string

None.

Color

(Required) Color of the Track time project

string

None.

IsArchived

True if the Track time project is archived

boolean

None.

Description

Description of the Track time project

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "New project",
  "Code": "3",
  "Color": "#000000",
  "IsArchived": false,
  "Description": "Description"
}

application/xml, text/xml

Sample:
<NewTrackTimeProjectPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <Code>3</Code>
  <Color>#000000</Color>
  <Description>Description</Description>
  <IsArchived>false</IsArchived>
  <Name>New project</Name>
</NewTrackTimeProjectPost>

Response Information

Resource Description

Returns id

IHttpActionResult

None.