Skip to main content

UpdateThread

Updates the opening comment of the thread. The results of this mutation can be affected by providing an authToken header to set a user for the operation.

UpdateThread(
id: ID!
body: String!
title: String!
asset: String
commentableType: CommentableType
): Thread

Arguments

UpdateThread.id ● ID! non-null scalar

The ID of the thread.

UpdateThread.body ● String! non-null scalar

The body of the opening comment of the thread.

UpdateThread.title ● String! non-null scalar

The title of the comment.

UpdateThread.asset ● String scalar

The URL of the asset.

UpdateThread.commentableType ● CommentableType enum

The type of thread to be updated, based on the thread's location, e.g. discussion board, assignment, widget thread, etc.

Type

Thread object

Examples

Run in Postman

Query:

UpdateThread(
$id: ID!,
$body: String!,
$title: String!,
$asset: String,
$commentableType: CommentableType
) {
UpdateThread(
id: $id,
body: $body,
title: $title,
asset: $asset,
commentableType: $commentableType
) {
id
course {
...CourseFragment
}
forum {
...ForumFragment
}
forumId
client {
...ClientFragment
}
createdAt
updatedAt
asset
assetFileName
videoAsset
title
body
commentsCount
user {
...UserFragment
}
notificationsEnabled
matchCount
bookmark
}
}

Variables:

{
"id": "0e99a117-e3b6-40a6-867c-6b3bbc166b41",
"body": "abc123",
"title": "xyz789",
"asset": "abc123",
"commentableType": "thread"
}

Response:

{
"data": {
"UpdateThread": {
"id": "0e99a117-e3b6-40a6-867c-6b3bbc166b41",
"course": "course-1",
"forum": "Forum",
"forumId": "0e99a117-e3b6-40a6-867c-6b3bbc166b41",
"client": "client-1",
"createdAt": "2024-09-26T13:39:48.013Z",
"updatedAt": "2025-03-26T13:39:48.013Z",
"asset": "URL",
"assetFileName": "abc123",
"videoAsset": "0e99a117-e3b6-40a6-867c-6b3bbc166b41",
"title": "abc123",
"body": "abc123",
"commentsCount": 116,
"user": "User",
"notificationsEnabled": false,
"matchCount": 116,
"bookmark": "0e99a117-e3b6-40a6-867c-6b3bbc166b41"
}
}
}