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 53"
    }
  },
  "_embedded": {
    "sample string 40": [
      {
        "FileName": "sample string 2",
        "Name": "sample string 13",
        "Data": "QEBA",
        "AttachmentLink": "https://www.altinn.no/api/{resource}/4",
        "AttachmentType": "sample string 5",
        "AttachmentTypeLocalized": "sample string 22",
        "Encrypted": true,
        "SigningLocked": true,
        "SignedByDefault": true,
        "FileSize": 10,
        "_links": {
          "self": {
            "href": "sample string 90"
          }
        }
      },
      {
        "FileName": "sample string 2",
        "Name": "sample string 13",
        "Data": "QEBA",
        "AttachmentLink": "https://www.altinn.no/api/{resource}/4",
        "AttachmentType": "sample string 5",
        "AttachmentTypeLocalized": "sample string 22",
        "Encrypted": true,
        "SigningLocked": true,
        "SignedByDefault": true,
        "FileSize": 10,
        "_links": {
          "self": {
            "href": "sample string 90"
          }
        }
      },
      {
        "FileName": "sample string 2",
        "Name": "sample string 13",
        "Data": "QEBA",
        "AttachmentLink": "https://www.altinn.no/api/{resource}/4",
        "AttachmentType": "sample string 5",
        "AttachmentTypeLocalized": "sample string 22",
        "Encrypted": true,
        "SigningLocked": true,
        "SignedByDefault": true,
        "FileSize": 10,
        "_links": {
          "self": {
            "href": "sample string 90"
          }
        }
      }
    ]
  }
}