canvas-rs/graphql/queries/CreateSubmission.graphql
2024-10-14 00:18:50 -06:00

26 lines
No EOL
413 B
GraphQL

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
}
}
}
}
}