POST api/cases/{caseId}/attachments

Add an attachment

Request Information

URI Parameters

NameDescriptionTypeAdditional information
caseId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

CaseAttachment
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

CaseId

globally unique identifier

None.

Timestamp

date

None.

Url

string

Required

Description

string

Required

MimeType

string

Required

UserId

globally unique identifier

None.

CaseAttachmentPermissions

Collection of CaseAttachmentPermission

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "b8ef1e9e-bcac-48a1-a838-c84853a28041",
  "CaseId": "66d64146-0a34-48ed-8f03-5b429c8a7c99",
  "Timestamp": "2025-12-11T12:02:18.4693162+00:00",
  "Url": "sample string 4",
  "Description": "sample string 5",
  "MimeType": "sample string 6",
  "UserId": "4d3795d5-6a70-4998-aa57-5698d3134ac7",
  "CaseAttachmentPermissions": [
    {
      "Id": "69b3adbb-afcd-4b9f-9b82-c22bca67eb44",
      "CaseAttachmentId": "2d226fbe-335e-4618-a5aa-d65500fbb2a9",
      "OrganizationRoleId": "fd31ac87-018d-4b11-b8d6-58d07dbf88ac",
      "UserId": "b43ce3e8-f8a9-4b3a-8e42-c96aca198402"
    },
    {
      "Id": "69b3adbb-afcd-4b9f-9b82-c22bca67eb44",
      "CaseAttachmentId": "2d226fbe-335e-4618-a5aa-d65500fbb2a9",
      "OrganizationRoleId": "fd31ac87-018d-4b11-b8d6-58d07dbf88ac",
      "UserId": "b43ce3e8-f8a9-4b3a-8e42-c96aca198402"
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[DataModels.CaseAttachment, DataModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[DataModels.CaseAttachment, DataModels, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.