跳到主要内容

Get contact projects

GET /api/2.0/project/contact/{contactid:[0-9]+}

Returns a list of all the projects linked with a contact with the ID specified in the request.

Request body​

contactid​

type: integer

Contact ID

Example: 0

Request example​

{
"contactid": 0
}

Returns​

List of projects. A request that is not authenticated returns 401.

Response example​

[
{
"CanEdit": false,
"CanDelete": false,
"Security": {
"CanCreateMilestone": false,
"CanCreateMessage": false,
"CanCreateTask": false,
"CanCreateTimeSpend": false,
"CanEditTeam": false,
"CanReadFiles": false,
"CanReadMilestones": false,
"CanReadMessages": false,
"CanReadTasks": false,
"CanLinkContact": false,
"CanReadContacts": false,
"CanEdit": false,
"CanDelete": false,
"IsInTeam": false
},
"ProjectFolder": "13234",
"IsPrivate": false,
"TaskCount": 0,
"TaskCountTotal": 0,
"MilestoneCount": 0,
"DiscussionCount": 0,
"ParticipantCount": 0,
"TimeTrackingTotal": "TimeTrackingTotal",
"DocumentsCount": 0,
"IsFollow": "0",
"Tags": [
"Tags1,Tags2"
],
"Created": "2020-12-22T04:11:56.5658524Z",
"CreatedBy": {
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Mike Zanyatski",
"Title": "Manager",
"AvatarSmall": "url to small avatar",
"ProfileUrl": "/Products/People/Profile.aspx?user=administrator"
},
"CreatedById": "00000000-0000-0000-0000-000000000000",
"Updated": "2020-12-22T04:11:56.5658524Z",
"UpdatedBy": {
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Mike Zanyatski",
"Title": "Manager",
"AvatarSmall": "url to small avatar",
"ProfileUrl": "/Products/People/Profile.aspx?user=administrator"
},
"UpdatedById": "00000000-0000-0000-0000-000000000000",
"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"
}
]