Mutation
mutation DeleteCourse($input: DeleteCourseInput!) {
deleteCourse(input: $input) {
clientMutationId
deletedCourseId
errors
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"deleteCourse": {
"clientMutationId": "string",
"deletedCourseId": "id",
"errors": [
"string"
]
}
}
}Mutations
deleteCourse
Delete a course. A course is a Space, so deleting it also removes its coursework, posts, and memberships. This cannot be undone.
Required scope: host:write:network_spaces
MUTATION
deleteCourse(input: DeleteCourseInput!): DeleteCoursePayloadArguments
input
required
Parameters for DeleteCourse
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
deletedCourseId
ID
GlobalID of the course that was deleted.
errors
[String!]!
Mutation
mutation DeleteCourse($input: DeleteCourseInput!) {
deleteCourse(input: $input) {
clientMutationId
deletedCourseId
errors
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"deleteCourse": {
"clientMutationId": "string",
"deletedCourseId": "id",
"errors": [
"string"
]
}
}
}