GET {who}/Messages/trashbin?language={language}

Gets all soft deleted messages for the given 'who'. These can optionally be retrieved in the language specified.

Request Information

Parameters

NameDescriptionAdditional information
who Who to retrieve messages for. Valid values are "my", or an organization number of an organization the user can represent, or <Reportee.ReporteeId>, where the identified reportee may be a person or organization.

Define this parameter in the request URI.

queryOptions The supplied ODataQueryOptions (if any).

None.

language Translation of messages retrieved, valid values are: 1033 (English), 1044 (Bokmal) and 2068 (Nynorsk) This is an optional parameter, defaults to the user preset language.

Define this parameter in the request URI.

Response Information

All messages for the requested user.

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 35"
    }
  },
  "_embedded": {
    "sample string 15": [
      {
        "MessageId": "sample string 6",
        "OriginalId": "sample string 85",
        "Subject": "sample string 88",
        "Status": "sample string 13",
        "LastChangedDateTime": "2020-09-27T06:11:19.7835166+02:00",
        "CreatedDate": "2020-09-27T06:11:19.7835166+02:00",
        "LastChangedBy": "sample string 90",
        "ServiceOwner": "sample string 16",
        "Type": "sample string 8",
        "MessageSender": "sample string 95",
        "Summary": "sample string 57",
        "Body": "sample string 39",
        "ServiceCode": "sample string 25",
        "ServiceEdition": 15,
        "SignatureSpec": {
          "FormIds": [
            1,
            2,
            3
          ],
          "AttachmentIds": [
            1,
            2,
            3
          ]
        },
        "DueDate": "2020-09-27T06:11:19.7835166+02:00",
        "AvailableAction": 0,
        "ArchiveReference": "sample string 14",
        "ReplyOptions": [
          {
            "Type": "sample string 25",
            "URL": "sample string 24",
            "Text": "sample string 20"
          },
          {
            "Type": "sample string 25",
            "URL": "sample string 24",
            "Text": "sample string 20"
          },
          {
            "Type": "sample string 25",
            "URL": "sample string 24",
            "Text": "sample string 20"
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 58"
          }
        }
      },
      {
        "MessageId": "sample string 6",
        "OriginalId": "sample string 85",
        "Subject": "sample string 88",
        "Status": "sample string 13",
        "LastChangedDateTime": "2020-09-27T06:11:19.7835166+02:00",
        "CreatedDate": "2020-09-27T06:11:19.7835166+02:00",
        "LastChangedBy": "sample string 90",
        "ServiceOwner": "sample string 16",
        "Type": "sample string 8",
        "MessageSender": "sample string 95",
        "Summary": "sample string 57",
        "Body": "sample string 39",
        "ServiceCode": "sample string 25",
        "ServiceEdition": 15,
        "SignatureSpec": {
          "FormIds": [
            1,
            2,
            3
          ],
          "AttachmentIds": [
            1,
            2,
            3
          ]
        },
        "DueDate": "2020-09-27T06:11:19.7835166+02:00",
        "AvailableAction": 0,
        "ArchiveReference": "sample string 14",
        "ReplyOptions": [
          {
            "Type": "sample string 25",
            "URL": "sample string 24",
            "Text": "sample string 20"
          },
          {
            "Type": "sample string 25",
            "URL": "sample string 24",
            "Text": "sample string 20"
          },
          {
            "Type": "sample string 25",
            "URL": "sample string 24",
            "Text": "sample string 20"
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 58"
          }
        }
      },
      {
        "MessageId": "sample string 6",
        "OriginalId": "sample string 85",
        "Subject": "sample string 88",
        "Status": "sample string 13",
        "LastChangedDateTime": "2020-09-27T06:11:19.7835166+02:00",
        "CreatedDate": "2020-09-27T06:11:19.7835166+02:00",
        "LastChangedBy": "sample string 90",
        "ServiceOwner": "sample string 16",
        "Type": "sample string 8",
        "MessageSender": "sample string 95",
        "Summary": "sample string 57",
        "Body": "sample string 39",
        "ServiceCode": "sample string 25",
        "ServiceEdition": 15,
        "SignatureSpec": {
          "FormIds": [
            1,
            2,
            3
          ],
          "AttachmentIds": [
            1,
            2,
            3
          ]
        },
        "DueDate": "2020-09-27T06:11:19.7835166+02:00",
        "AvailableAction": 0,
        "ArchiveReference": "sample string 14",
        "ReplyOptions": [
          {
            "Type": "sample string 25",
            "URL": "sample string 24",
            "Text": "sample string 20"
          },
          {
            "Type": "sample string 25",
            "URL": "sample string 24",
            "Text": "sample string 20"
          },
          {
            "Type": "sample string 25",
            "URL": "sample string 24",
            "Text": "sample string 20"
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 58"
          }
        }
      }
    ]
  }
}