POST api/2.0/project/reportДанная функция требует аутентификацииОписание Параметры
Пример POST api/2.0/project/report
Host: yourportal.Р7.com
Content-Type: application/json
Accept: application/json
{
"name": "some text",
"period": "some text",
"periodItem": 1234,
"hour": 1234,
"autoGenerated": true,
"reportType": "milestonesexpired",
"tag": 1234,
"project": 1234,
"status": null,
"departament": "9924256A-739C-462b-AF15-E652A3B1B6EB",
"userId": "9924256A-739C-462b-AF15-E652A3B1B6EB",
"reportTimeInterval": "absolute",
"fromDate": "2008-04-10T06-30-00.000Z",
"toDate": "2008-04-10T06-30-00.000Z",
"viewType": 1234,
"noResponsible": true,
"isShowAverageTime": true,
"typeOfShowAverageTime": "all",
"projectAverageCompletingTasks": true
} Возвращает Пример ответа application/json {
"status": 0,
"response": {
"autoGenerated": false,
"cron": null,
"reportType": 0,
"filter": null,
"id": 1233,
"title": "Sample ReportTemplate",
"description": "Sample description",
"status": 0,
"created": "2022-11-03T15:35:57.9042922Z",
"createdBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"updated": "2022-11-03T15:35:57.9042922Z"
}
} text/xml <result>
<status>0</status>
<response>
<autoGenerated>false</autoGenerated>
<cron />
<reportType>0</reportType>
<filter />
<id>1233</id>
<title>Sample ReportTemplate</title>
<description>Sample description</description>
<status>0</status>
<created>2022-11-03T15:35:57.9042922Z</created>
<createdBy>
<id>00000000-0000-0000-0000-000000000000</id>
<displayName>Mike Zanyatski</displayName>
<title>Manager</title>
<avatarSmall>url to small avatar</avatarSmall>
<profileUrl></profileUrl>
</createdBy>
<updated>2022-11-03T15:35:57.9042922Z</updated>
</response>
</result> |