GET {who}/messages/{messageId}/attachments
Get all attachments related to the given message.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| who | Identifies whose attachments to get (who the user is acting as/on behalf of). Valid values are "my", or an organization number of an organization the user can represent, or "r"<Reportee.ReporteeId>, where the identified reportee may be a person or organization. |
Define this parameter in the request URI. |
| messageId | Id of the message for which attachments should be retrieved. |
Define this parameter in the request URI. |
Response Information
A list of all attachments related to the given message.
Response body formats
application/hal+xml
Sample:
Sample not available.
application/hal+json
Sample:
{
"_links": {
"self": {
"href": "sample string 64"
}
},
"_embedded": {
"sample string 90": [
{
"FileName": "sample string 95",
"Name": "sample string 74",
"Data": "QEBA",
"AttachmentLink": "https://www.altinn.no/api/{resource}/4",
"AttachmentType": "sample string 89",
"AttachmentTypeLocalized": "sample string 88",
"Encrypted": true,
"SigningLocked": true,
"SignedByDefault": true,
"FileSize": 10,
"_links": {
"self": {
"href": "sample string 19"
}
}
},
{
"FileName": "sample string 95",
"Name": "sample string 74",
"Data": "QEBA",
"AttachmentLink": "https://www.altinn.no/api/{resource}/4",
"AttachmentType": "sample string 89",
"AttachmentTypeLocalized": "sample string 88",
"Encrypted": true,
"SigningLocked": true,
"SignedByDefault": true,
"FileSize": 10,
"_links": {
"self": {
"href": "sample string 19"
}
}
},
{
"FileName": "sample string 95",
"Name": "sample string 74",
"Data": "QEBA",
"AttachmentLink": "https://www.altinn.no/api/{resource}/4",
"AttachmentType": "sample string 89",
"AttachmentTypeLocalized": "sample string 88",
"Encrypted": true,
"SigningLocked": true,
"SignedByDefault": true,
"FileSize": 10,
"_links": {
"self": {
"href": "sample string 19"
}
}
}
]
}
}
