POST api/admin/support/requests/{supportRequestId}/comments/{commentId}/attachments

This method should be used to add attachments to an existing support request comment

Requires Authorization!

Request Information

URI Parameters

NameDescriptionTypeAdditional information
supportRequestId

Support request id

integer

Required

commentId

Support request comment id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Instance of

SupportRequestCommentAttachmentPo
NameDescriptionTypeAdditional information
SupportRequestId

integer

None.

Id

integer

None.

Name

string

None.

AttachmentUrl

string

None.

AddedDate

date

None.

SupportRequestCommentId

integer

None.

SupportRequestComment

SupportRequestComment

None.

Response Formats

application/json, text/json

Sample:
{
  "supportRequestId": 1,
  "id": 2,
  "name": "sample string 3",
  "attachmentUrl": "sample string 4",
  "addedDate": "2025-05-20T14:51:04.9948264-05:00",
  "supportRequestCommentId": 6,
  "supportRequestComment": {
    "id": 1,
    "content": "sample string 2",
    "isSystem": true,
    "createdDate": "2025-05-20T14:51:04.9948264-05:00",
    "lastModifiedDate": "2025-05-20T14:51:04.9948264-05:00",
    "supportRequestId": 5,
    "userId": 6,
    "supportRequest": {
      "id": 1,
      "submitter": "sample string 2",
      "phone": "sample string 3",
      "email": "sample string 4",
      "subject": "sample string 5",
      "content": "sample string 6",
      "submitDate": "2025-05-20T14:51:04.9948264-05:00",
      "shouldPublish": true,
      "submitterAvatar": "sample string 9",
      "submitterOccupation": "sample string 10",
      "requestNumber": "sample string 11",
      "completionDeadline": "2025-05-20T14:51:04.9948264-05:00",
      "supportRequestTypeId": 12,
      "supportRequestStatusId": 13,
      "supportRequestType": {
        "id": 1,
        "type": "sample string 2",
        "description": "sample string 3"
      },
      "supportRequestStatus": {
        "id": 1,
        "status": "sample string 2",
        "description": "sample string 3"
      }
    },
    "user": {
      "id": 1,
      "accessFailedCount": 2,
      "email": "sample string 3",
      "emailConfirmed": true,
      "lockoutEnabled": true,
      "lockoutEndDateUtc": "2025-05-20T14:51:04.9948264-05:00",
      "passwordHash": "sample string 6",
      "phoneNumberConfirmed": true,
      "securityStamp": "sample string 8",
      "twoFactorEnabled": true,
      "userName": "sample string 10",
      "joinDate": "2025-05-20T14:51:04.9948264-05:00",
      "firstName": "sample string 12",
      "lastName": "sample string 13",
      "isSystemUser": true,
      "accountVerified": true,
      "acceptedTermsAndConditionsDate": "2025-05-20T14:51:04.9948264-05:00",
      "phoneNumber": "sample string 15",
      "roles": [],
      "claims": [],
      "logins": []
    }
  }
}

text/html

Sample:
{"supportRequestId":1,"id":2,"name":"sample string 3","attachmentUrl":"sample string 4","addedDate":"2025-05-20T14:51:04.9948264-05:00","supportRequestCommentId":6,"supportRequestComment":{"id":1,"content":"sample string 2","isSystem":true,"createdDate":"2025-05-20T14:51:04.9948264-05:00","lastModifiedDate":"2025-05-20T14:51:04.9948264-05:00","supportRequestId":5,"userId":6,"supportRequest":{"id":1,"submitter":"sample string 2","phone":"sample string 3","email":"sample string 4","subject":"sample string 5","content":"sample string 6","submitDate":"2025-05-20T14:51:04.9948264-05:00","shouldPublish":true,"submitterAvatar":"sample string 9","submitterOccupation":"sample string 10","requestNumber":"sample string 11","completionDeadline":"2025-05-20T14:51:04.9948264-05:00","supportRequestTypeId":12,"supportRequestStatusId":13,"supportRequestType":{"id":1,"type":"sample string 2","description":"sample string 3"},"supportRequestStatus":{"id":1,"status":"sample string 2","description":"sample string 3"}},"user":{"id":1,"accessFailedCount":2,"email":"sample string 3","emailConfirmed":true,"lockoutEnabled":true,"lockoutEndDateUtc":"2025-05-20T14:51:04.9948264-05:00","passwordHash":"sample string 6","phoneNumberConfirmed":true,"securityStamp":"sample string 8","twoFactorEnabled":true,"userName":"sample string 10","joinDate":"2025-05-20T14:51:04.9948264-05:00","firstName":"sample string 12","lastName":"sample string 13","isSystemUser":true,"accountVerified":true,"acceptedTermsAndConditionsDate":"2025-05-20T14:51:04.9948264-05:00","phoneNumber":"sample string 15","roles":[],"claims":[],"logins":[]}}}

application/xml, text/xml

Sample:
<SupportRequestCommentAttachmentPo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Pos">
  <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">2</Id>
  <AddedDate xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">2025-05-20T14:51:04.9948264-05:00</AddedDate>
  <AttachmentUrl xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">sample string 4</AttachmentUrl>
  <Name xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">sample string 3</Name>
  <SupportRequestComment xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">
    <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id>
    <Content>sample string 2</Content>
    <CreatedDate>2025-05-20T14:51:04.9948264-05:00</CreatedDate>
    <IsSystem>true</IsSystem>
    <LastModifiedDate>2025-05-20T14:51:04.9948264-05:00</LastModifiedDate>
    <SupportRequest>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id>
      <CompletionDeadline>2025-05-20T14:51:04.9948264-05:00</CompletionDeadline>
      <Content>sample string 6</Content>
      <Email>sample string 4</Email>
      <Phone>sample string 3</Phone>
      <RequestNumber>sample string 11</RequestNumber>
      <ShouldPublish>true</ShouldPublish>
      <Subject>sample string 5</Subject>
      <SubmitDate>2025-05-20T14:51:04.9948264-05:00</SubmitDate>
      <Submitter>sample string 2</Submitter>
      <SubmitterAvatar>sample string 9</SubmitterAvatar>
      <SubmitterOccupation>sample string 10</SubmitterOccupation>
      <SupportRequestStatus xmlns:d4p1="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.ValueTypes">
        <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id>
        <d4p1:Description>sample string 3</d4p1:Description>
        <d4p1:Status>sample string 2</d4p1:Status>
      </SupportRequestStatus>
      <SupportRequestStatusId>13</SupportRequestStatusId>
      <SupportRequestType>
        <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id>
        <Description>sample string 3</Description>
        <Type>sample string 2</Type>
      </SupportRequestType>
      <SupportRequestTypeId>12</SupportRequestTypeId>
    </SupportRequest>
    <SupportRequestId>5</SupportRequestId>
    <User xmlns:d3p1="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.AuthEntities">
      <AccessFailedCount xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2</AccessFailedCount>
      <Email xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 3</Email>
      <EmailConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</EmailConfirmed>
      <Id xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">1</Id>
      <LockoutEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</LockoutEnabled>
      <LockoutEndDateUtc xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2025-05-20T14:51:04.9948264-05:00</LockoutEndDateUtc>
      <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 6</PasswordHash>
      <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 15</PhoneNumber>
      <PhoneNumberConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</PhoneNumberConfirmed>
      <SecurityStamp xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 8</SecurityStamp>
      <TwoFactorEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</TwoFactorEnabled>
      <UserName xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 10</UserName>
      <d3p1:AcceptedTermsAndConditionsDate>2025-05-20T14:51:04.9948264-05:00</d3p1:AcceptedTermsAndConditionsDate>
      <d3p1:AccountVerified>true</d3p1:AccountVerified>
      <d3p1:FirstName>sample string 12</d3p1:FirstName>
      <d3p1:IsSystemUser>true</d3p1:IsSystemUser>
      <d3p1:JoinDate>2025-05-20T14:51:04.9948264-05:00</d3p1:JoinDate>
      <d3p1:LastName>sample string 13</d3p1:LastName>
    </User>
    <UserId>6</UserId>
  </SupportRequestComment>
  <SupportRequestCommentId xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities">6</SupportRequestCommentId>
  <SupportRequestId>1</SupportRequestId>
</SupportRequestCommentAttachmentPo>