跳到主要内容

Update a template

PUT /api/2.0/project/template/{id:[0-9]+}

Updates the existing template information with the parameters specified in the request.

Request body​

id​

type: integer

Template ID

Example: 0

title​

type: string

New template title

Example: "string"

description​

type: string

New JSON template structure in the following format: {"tasks": [{"title": "Task without milestone"}], "milestones": [{"title": "milestone title", "duration": 0.5, "tasks": [{"title": "milestone task"}]}]}

Example: "string"

Request example​

{
"id": 0,
"title": "string",
"description": "string"
}

Returns​

Updated template. A request that is not authenticated returns 401.

Id​

type: integer

Example: 10

Title​

type: string

Example: "Sample Title"

Description​

type: string

Example: "Sample description"

Status​

type: integer

Example: 0

Responsible​

type: EmployeeWraper

ResponsibleId​

type: string

Example: "00000000-0000-0000-0000-000000000000"

Response example​

{
"Id": 10,
"Title": "Sample Title",
"Description": "Sample description",
"Status": 0,
"Responsible": {
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Mike Zanyatski",
"Title": "Manager",
"AvatarSmall": "url to small avatar",
"ProfileUrl": "/Products/People/Profile.aspx?user=administrator"
},
"ResponsibleId": "00000000-0000-0000-0000-000000000000"
}