canvas-rs/graphql/queries/CreateSubmission.graphql

26 lines
413 B
GraphQL
Raw Normal View History

2024-10-14 00:18:50 -06:00
mutation CreateSubmission($file_id: ID!, $assignment_id: ID!) {
createSubmission(
input: {
assignmentId: $assignment_id,
fileIds: [
$file_id
],
submissionType: online_upload
}
) {
errors {
message
attribute
}
submission {
id
assignment {
name
course {
name
courseCode
}
}
}
}
}