Note: Only Administrators and Moderators can enable the content archive feature.
Use the setContentArchiveSettingsOnCommunity
mutation to enable the content feature and external URL.
When archiving, you can provide an external URL that is outside your community. When someone accesses this link, they will be redirected to the external URL for related content.
Example: GraphQL Mutation
mutation {
setContentArchiveSettingsOnCommunity(settingsInput:{
isContentArchiveEnabled: true,
isContentArchiveExternalUrlsEnabled: true
}){
result
}
}
The settingsInput
description are as follows:
isContentArchiveEnabled
- If this value is set astrue
, the content archive feature is turned on for your community.isContentArchiveExternalUrlsEnabled
- If this value is set astrue
, the external URLs are turned on for your community. When someone accesses the archived content, the external URL redirects the member for more information.
GraphQL Response Example
{
"data": {
"setContentArchiveSettingsOnCommunity": {
"result": true
}
}
}
ATLAS
Comments