Mutation
mutation PublishCoursework($input: PublishCourseworkInput!) {
publishCoursework(input: $input) {
clientMutationId
coursework {
children {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
}
completionCriteria
course {
avatarDarkModeUrl
avatarUrl
coursework {
__typename
}
descriptionHtml
descriptionText
id
}
createdAt
descriptionHtml
descriptionText
}
errors
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"publishCoursework": {
"clientMutationId": "string",
"coursework": {
"children": {
"edges": [
{
"__typename": "CourseworkEdge"
}
],
"nodes": [
{
"__typename": "Coursework"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"completionCriteria": "BUTTON",
"course": {
"avatarDarkModeUrl": "string",
"avatarUrl": "string",
"coursework": {
"__typename": "CourseworkConnection"
},
"descriptionHtml": "string",
"descriptionText": "string",
"id": "id"
},
"createdAt": "value",
"descriptionHtml": "string",
"descriptionText": "string"
},
"errors": [
"string"
]
}
}
}Mutations
publishCoursework
Publish a coursework item, making it visible to members
MUTATION
publishCoursework(input: PublishCourseworkInput!): PublishCourseworkPayloadArguments
input
PublishCourseworkInput!
required
Parameters for PublishCoursework
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
coursework
errors
[String!]!
Mutation
mutation PublishCoursework($input: PublishCourseworkInput!) {
publishCoursework(input: $input) {
clientMutationId
coursework {
children {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
}
completionCriteria
course {
avatarDarkModeUrl
avatarUrl
coursework {
__typename
}
descriptionHtml
descriptionText
id
}
createdAt
descriptionHtml
descriptionText
}
errors
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"publishCoursework": {
"clientMutationId": "string",
"coursework": {
"children": {
"edges": [
{
"__typename": "CourseworkEdge"
}
],
"nodes": [
{
"__typename": "Coursework"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"completionCriteria": "BUTTON",
"course": {
"avatarDarkModeUrl": "string",
"avatarUrl": "string",
"coursework": {
"__typename": "CourseworkConnection"
},
"descriptionHtml": "string",
"descriptionText": "string",
"id": "id"
},
"createdAt": "value",
"descriptionHtml": "string",
"descriptionText": "string"
},
"errors": [
"string"
]
}
}
}⌘I