Start a conversation

Archiving a Message

Added in 24.11.

Use the archiveMessage mutation to archive all the supported content types in the Aurora community. Ensure that the content archive feature is enabled in your community.
The fields of the mutation are given in the table below:

Field Description Required
messageId The message ID you want to archive. Yes
relatedUrl This is the related or external URL for the archived content. When members access the archived content, they will be redirected to this URL. No

Example

Use the example below to archive a message (ID: 3376).


mutation {
  archiveMessage(
    messageId: "message:3376"
    relatedUrl: "https://[YOUR COMMUNITY DOMAIN].com/idea/comments/3691"
  ) {
    result
    errors {
      __typename
    }
  }
}

The GraphQL response:


{
  "data": {
    "archiveMessage": {
      "result": true,
      "errors": null
    }
  }
}
Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. ATLAS

  2. Posted
  3. Updated

Comments