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 7" } }, "_embedded": { "sample string 93": [ { "FileName": "sample string 75", "Name": "sample string 21", "Data": "QEBA", "AttachmentLink": "https://www.altinn.no/api/{resource}/4", "AttachmentType": "sample string 31", "AttachmentTypeLocalized": "sample string 68", "Encrypted": true, "SigningLocked": true, "SignedByDefault": true, "FileSize": 10, "_links": { "self": { "href": "sample string 39" } } }, { "FileName": "sample string 75", "Name": "sample string 21", "Data": "QEBA", "AttachmentLink": "https://www.altinn.no/api/{resource}/4", "AttachmentType": "sample string 31", "AttachmentTypeLocalized": "sample string 68", "Encrypted": true, "SigningLocked": true, "SignedByDefault": true, "FileSize": 10, "_links": { "self": { "href": "sample string 39" } } }, { "FileName": "sample string 75", "Name": "sample string 21", "Data": "QEBA", "AttachmentLink": "https://www.altinn.no/api/{resource}/4", "AttachmentType": "sample string 31", "AttachmentTypeLocalized": "sample string 68", "Encrypted": true, "SigningLocked": true, "SignedByDefault": true, "FileSize": 10, "_links": { "self": { "href": "sample string 39" } } } ] } }