Mark Content as Read
To toggle the read status for a content library element
Use the markContentAsReadOrUnread
mutation to toggle the read status for a content library element.
Arguments
MarkContentAsReadOrUnreadInput!
Object that contains the Id of the content library element and the read status to be set.
Example
mutation($input: MarkContentAsReadOrUnreadInput!){
markContentAsReadOrUnread(input: $input) {
success message errors {field messages}
}
}
variables = {
"input": {
"contentLibraryId": "Q29udGVudExpYnJhcnk6MjBmZGY0NWMtMTY5Zi00MmYwLThkMjktNmRlNzcwOGJjMDkz",
"markAsRead": True,
}
}
Example 2
mutation{
markContentAsReadOrUnread (input:{markAsRead: true contentLibraryId: "Q29udGVudExpYnJhcnk6MDkxZjdiMWQtZjE0YS00ZDcyLTgyZGItMDA2ODE2ZTQ5YjFm" }){
success
message
}
}
{
"data": {
"markContentAsReadOrUnread": {
"success": true
}
}
}