GET {who}/messages/{messageId}/attachments

Get all attachments related to the given message.

Request Information

Parameters

NameDescriptionAdditional 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 61"
    }
  },
  "_embedded": {
    "sample string 59": [
      {
        "FileName": "sample string 95",
        "Name": "sample string 14",
        "Data": "QEBA",
        "AttachmentLink": "https://www.altinn.no/api/{resource}/4",
        "AttachmentType": "sample string 57",
        "AttachmentTypeLocalized": "sample string 18",
        "Encrypted": true,
        "SigningLocked": true,
        "SignedByDefault": true,
        "FileSize": 10
      },
      {
        "FileName": "sample string 95",
        "Name": "sample string 14",
        "Data": "QEBA",
        "AttachmentLink": "https://www.altinn.no/api/{resource}/4",
        "AttachmentType": "sample string 57",
        "AttachmentTypeLocalized": "sample string 18",
        "Encrypted": true,
        "SigningLocked": true,
        "SignedByDefault": true,
        "FileSize": 10
      },
      {
        "FileName": "sample string 95",
        "Name": "sample string 14",
        "Data": "QEBA",
        "AttachmentLink": "https://www.altinn.no/api/{resource}/4",
        "AttachmentType": "sample string 57",
        "AttachmentTypeLocalized": "sample string 18",
        "Encrypted": true,
        "SigningLocked": true,
        "SignedByDefault": true,
        "FileSize": 10
      }
    ]
  }
}