Для этой функции требуется аутентификация.

Описание

Возвращает список всех файлов в сущности (сообщении или задаче) с типом и идентификатором, указанными в запросе.

Параметры

НазваниеОписаниеТипПример
entityType

sent in url
Тип сущностиProject, Milestone, Task, SubTask, Team, Comment, Message, File, TimeSpend
entityID

sent in url
ID сущностичисленный1234
Пример
GET api/2.0/project/1234/entityfiles?entityType=project
Host: yourportal.r7-office.ru
Content-Type: application/json
Accept: application/json

Возвращает
Файлы

Пример ответа

application/json

{
  "status": 0,
  "response": [
    {
      "folderId": 12334,
      "version": 3,
      "versionGroup": 1,
      "contentLength": "12.06 KB",
      "pureContentLength": 12345,
      "fileStatus": 2,
      "viewUrl": "http:\/\/www.Р7.com\/viewfile?fileid=2221",
      "fileType": 7,
      "fileExst": ".txt",
      "comment": null,
      "id": 697913024,
      "title": "Some titile.txt",
      "access": 1,
      "shared": false,
      "rootFolderType": 2,
      "updatedBy": {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      },
      "created": "2022-10-12T08:51:51.4996384Z",
      "createdBy": {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      },
      "updated": "2022-10-12T08:51:51.4996384Z"
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <folderId>12334</folderId>
    <version>3</version>
    <versionGroup>1</versionGroup>
    <contentLength>12.06 KB</contentLength>
    <pureContentLength>12345</pureContentLength>
    <fileStatus>2</fileStatus>
    <viewUrl>http://www.Р7.com/viewfile?fileid=2221</viewUrl>
    <fileType>7</fileType>
    <fileExst>.txt</fileExst>
    <comment />
    <id>697913024</id>
    <title>Some titile.txt</title>
    <access>1</access>
    <shared>false</shared>
    <rootFolderType>2</rootFolderType>
    <updatedBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </updatedBy>
    <created>2022-10-12T08:51:51.4996384Z</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-10-12T08:51:51.4996384Z</updated>
  </response>
</result>