POST v1/files/~files/outlook/attachments

Request Information

URI Parameters

None.

Body Parameters

OutlookAttachmentInModel
NameDescriptionTypeAdditional information
AttachmentToken

string

None.

EwsUrl

string

None.

IssueGuid

globally unique identifier

None.

Attachments

Collection of OutlookAttachmentDetails

None.

Request Formats

application/json, text/json, application/vnd.team.do+json

Sample:
{
  "AttachmentToken": "sample string 1",
  "EwsUrl": "sample string 2",
  "IssueGuid": "b8c165eb-5042-4979-ae2c-de81f3d89ca8",
  "Attachments": [
    {
      "AttachmentType": 0,
      "ContentType": "sample string 1",
      "Id": "sample string 2",
      "IsInline": true,
      "Name": "sample string 4",
      "Size": 5
    },
    {
      "AttachmentType": 0,
      "ContentType": "sample string 1",
      "Id": "sample string 2",
      "IsInline": true,
      "Name": "sample string 4",
      "Size": 5
    }
  ]
}

text/html

Sample:
{"AttachmentToken":"sample string 1","EwsUrl":"sample string 2","IssueGuid":"b8c165eb-5042-4979-ae2c-de81f3d89ca8","Attachments":[{"AttachmentType":0,"ContentType":"sample string 1","Id":"sample string 2","IsInline":true,"Name":"sample string 4","Size":5},{"AttachmentType":0,"ContentType":"sample string 1","Id":"sample string 2","IsInline":true,"Name":"sample string 4","Size":5}]}

Response Information

Resource Description

Collection of FileOutModel
NameDescriptionTypeAdditional information
FileID

integer

None.

FileKey

string

None.

Name

string

None.

Size

integer

None.

Url

string

None.

Icon

string

None.

UploadDate

date

None.

ItemID

integer

None.

ItemType

enmItemType

None.

ItemPerCompanyId

integer

None.

Response Formats

application/json, text/json, application/vnd.team.do+json

Sample:
[
  {
    "FileID": 1,
    "FileKey": "sample string 2",
    "Name": "sample string 3",
    "Size": 4,
    "Url": "sample string 5",
    "Icon": "sample string 6",
    "UploadDate": "2019-03-16T07:03:04.3923793+00:00",
    "ItemID": 8,
    "ItemType": 0,
    "ItemPerCompanyId": 1
  },
  {
    "FileID": 1,
    "FileKey": "sample string 2",
    "Name": "sample string 3",
    "Size": 4,
    "Url": "sample string 5",
    "Icon": "sample string 6",
    "UploadDate": "2019-03-16T07:03:04.3923793+00:00",
    "ItemID": 8,
    "ItemType": 0,
    "ItemPerCompanyId": 1
  }
]

text/html

Sample:
[{"FileID":1,"FileKey":"sample string 2","Name":"sample string 3","Size":4,"Url":"sample string 5","Icon":"sample string 6","UploadDate":"2019-03-16T07:03:04.3923793+00:00","ItemID":8,"ItemType":0,"ItemPerCompanyId":1},{"FileID":1,"FileKey":"sample string 2","Name":"sample string 3","Size":4,"Url":"sample string 5","Icon":"sample string 6","UploadDate":"2019-03-16T07:03:04.3923793+00:00","ItemID":8,"ItemType":0,"ItemPerCompanyId":1}]