PEGA API cases/{caseID}/attachments
Hello,
I would like to point to a PEGA API documentation for uploading of attachments to a case -> cases/{caseID}/attachments
PEGA version: Pega Platform 8.23.4
Where in PEGA API documentation is written this json body, which is wrong:
{
"attachments": {
"type": "File",
"category": "File",
"name": "myFile",
"ID": "213e8449-102e-492d-b883-afdf64da0d78",
"url": "www.somewebsite.com"
}
}
Actually the correct json body is this: (its required to add "[" ,"]" array of attachments even if you are sending one attachment)
{
"attachments": [
{
"type": "File",
"category": "File",
"name": "RobotFile_Test_28052025",
"ID": "9bd821ba-9782-4349-9e97-0d2ba62e948b",
"url": ""
}
]
of course it is then possible to send an array of attachments, where you specify attachments separately.
{
"attachments": [
{
"type": "File",
"category": "File",
"name": "RobotFile_Test_28052025",
"ID": "aae3dab8-7572-4fe0-aa1d-46eb69bc9506",
"url": ""
},
{
"type": "File",
"category": "File",
"name": "RobotFile_Test_28052025",
"ID": "38946fef-f287-46e1-9440-cb77ed444836",
"url": ""
}
]
}
}
NOTE: This small mistake is located in Traditional API documentation, in Constellation DX its OK