POST api/authorizations/{authId}/attachments?RqUID={RqUID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
authId

integer

Required

RqUID

string

None.

Body Parameters

RestAttachmentDTO
NameDescriptionTypeAdditional information
Description

string

None.

Private

boolean

None.

File

RestFileDTO

None.

IsPicture

boolean

None.

AttachmentTypeId

integer

None.

FileUrl

string

None.

UserLogin

string

Required

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "Description": "sample string 1",
  "Private": true,
  "File": {
    "FileName": "sample string 1",
    "FileStream": "QEA="
  },
  "IsPicture": true,
  "AttachmentTypeId": 4,
  "FileUrl": "sample string 5",
  "UserLogin": "sample string 6"
}

application/xml, text/xml

Sample:
<RestAttachmentDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GtMotive.GtGlobal.Common.DTO.Rest.Authorization">
  <UserLogin xmlns="http://schemas.datacontract.org/2004/07/GtMotive.GtGlobal.Common.DTO.Rest.Shared">sample string 6</UserLogin>
  <AttachmentTypeId>4</AttachmentTypeId>
  <Description>sample string 1</Description>
  <File xmlns:d2p1="http://schemas.datacontract.org/2004/07/GtMotive.GtGlobal.Common.DTO.Rest.Shared">
    <d2p1:FileName>sample string 1</d2p1:FileName>
    <d2p1:FileStream>QEA=</d2p1:FileStream>
  </File>
  <FileUrl>sample string 5</FileUrl>
  <IsPicture>true</IsPicture>
  <Private>true</Private>
</RestAttachmentDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RestElementIdResponseDTO
NameDescriptionTypeAdditional information
ElementId

integer

None.

RqUID

string

None.

Code

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ElementId": 1,
  "RqUID": "sample string 2",
  "Code": "sample string 3",
  "Message": "sample string 4"
}

application/xml, text/xml

Sample:
<RestElementIdResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GtMotive.GtGlobal.Common.DTO.Rest.Shared">
  <Code>sample string 3</Code>
  <Message>sample string 4</Message>
  <RqUID>sample string 2</RqUID>
  <ElementId>1</ElementId>
</RestElementIdResponseDTO>