OBJECT

Mutation

link GraphQL Schema definition

1type Mutation {
2
3# Deletes the interview template with the given ID.
4deleteInterviewTemplate(interviewTemplateId: ID!): ID!
5
6# Creates an interview template.
7createInterviewTemplate(
8interviewTemplateFields: CreateInterviewTemplateInput!
9): InterviewTemplate
10
11# Edit the interview template with the given ID.
12editInterviewTemplate(
13interviewTemplateId: ID!,
14interviewTemplateFields: EditInterviewTemplateInput!
15): InterviewTemplate
16
17# [*Internal use only*]
18# Update the company's lockdown framework config
19updateLockdownFrameworkEnabled(
20companyId: ID!,
21lockdownFrameworkEnabled: Boolean!
22): Company!
23
24# [*Internal use only*]
25# Appends a verification note to the test session.
26appendCompanyTestSessionVerificationNote(
27id: ID!,
28note: String!
29): CompanyTestSession!
30
31createCompanyTestSession(
32sessionFields: TestSessionInput!
33): CompanyTestSession
34
35deleteCompanyTestSession(
36id: ID!,
37sendNotificationEmail: Boolean
38): ID!
39
40# Arguments
41# customDuration: Duration of the test for this test session, in
42# milliseconds.
43editCompanyTestSessionDuration(
44id: ID!,
45customDuration: Float!
46): CompanyTestSession!
47
48# Arguments
49# expirationDate: When the invitation will expire if the session
50# does not begin. Cannot be used to shorten expiration, only to extend.
51editCompanyTestSessionExpiration(
52id: ID!,
53expirationDate: Timestamp!
54): CompanyTestSession!
55
56setCompanyTestSessionReminders(
57id: ID!,
58reminders: [EmailReminder!]!
59): CompanyTestSession!
60
61resendCompanyTestSession(id: ID!): CompanyTestSession!
62
63reactivateCompanyTestSession(
64id: ID!,
65sendNotificationEmail: Boolean
66): CompanyTestSession!
67
68gradeCompanyTestResult(id: ID!, taskId: ID!, score: Int!): CompanyTestSession!
69
70markCompanyTestResultAsGraded(id: ID!): CompanyTestSession!
71
72archiveCompanyTestSession(id: ID!): CompanyTestSession!
73
74unarchiveCompanyTestSession(id: ID!): CompanyTestSession!
75
76# [*Internal use only*]
77# Creates or updates a role with the given key.
78saveRole(key: ID!, title: String!, permissions: [String!]!): Role!
79
80# Creates a new company-specific role.
81# When companyId is not provided, it is inferred using authorization information.
82createCompanyRole(
83title: String!,
84permissions: [String!]!,
85companyId: ID
86): Role!
87
88# Updates a company-specific role with the given key.
89# The companyId field is deprecated and is left for backwards compatibility only.
90# It is not used when performing the mutation.
91editCompanyRole(key: ID!, title: String!, permissions: [String!]!): Role!
92
93# Deletes the role with the given key.
94deleteRole(key: ID!): ID!
95
96# Creates a company test.
97createCompanyTest(testFields: CreateCompanyTestInput!): CompanyTest
98
99# Creates a company test from a certified assessment.
100#
101# The test will use the certified assessment's configuration for duration, tasks,
102# and
103# other settings controlled by the certified assessment. Other settings like
104# title, emails, and labels
105# can be customized through the input fields.
106#
107# Arguments
108# testFields: The test configuration including certified
109# assessment ID and customizable fields.
110createCompanyTestFromFramework(
111testFields: CreateCompanyTestFromFrameworkInput!
112): CompanyTest
113
114# Edits a company test with the given ID.
115editCompanyTest(id: ID!, testFields: EditCompanyTestInput!): CompanyTest
116
117# Duplicates an existing company test, optionally overriding specific fields.
118#
119# The duplicated test will copy all configuration from the source test and apply
120# any field overrides specified in testFields. If title is not provided in
121# testFields,
122# an auto-resolved unique title based on the source test's title will be used
123# (e.g., "My Test (1)", "My Test (2)").
124#
125# Arguments
126# id: The ID of the company test to duplicate
127# testFields: Modifications to apply during duplication.
128# If a new title is not provided, an auto-resolved unique title based on the
129# source
130# test's title will be used.
131duplicateCompanyTest(
132id: ID!,
133testFields: EditCompanyTestInput!
134): CompanyTest
135
136# Creates a live interview.
137createLiveInterview(interviewFields: LiveInterviewInput): LiveInterview
138
139# Edit a live interview with a given ID.
140editLiveInterview(id: ID!, interviewFields: LiveInterviewInput!): LiveInterview
141
142# Delete a live interview with a given ID.
143deleteLiveInterview(id: ID!): ID!
144
145# [*Internal use only*]
146# Assign question to specific sets.
147#
148# - Cost complexity: 3
149# - Rate limit: 10 requests / second
150addTaskToSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask
151
152# [*Internal use only*]
153# Remove question from specific sets.
154#
155# - Cost complexity: 3
156# - Rate limit: 10 requests / second
157removeTaskFromSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask
158
159# Set customized initial source code that will be presented when solving the
160# question.
161# Returns the modified question.
162setTaskInitialSource(
163id: ID!,
164language: LanguageName!,
165source: String!
166): SingleEnvironmentTask
167
168# Reset the initial source code of the question to the default value for the given
169# language.
170# Returns the modified question.
171unsetTaskInitialSource(id: ID!, language: LanguageName!): SingleEnvironmentTask
172
173# Creates a code review question without any test case or validation.
174createCodeReviewTask(
175taskFields: CreateCodeReviewTaskInput!,
176options: CreateTaskOptionsInput
177): CodeReviewTask
178
179# Edits a code review question with the given ID.
180editCodeReviewTask(
181id: ID!,
182taskFields: EditCodeReviewTaskInput!
183): CodeReviewTask
184
185# Creates a database question with test cases
186createDatabaseTask(
187taskFields: CreateDatabaseTaskInput!,
188options: CreateTaskOptionsInput
189): DatabaseTask
190
191# Edits a database question with the given ID.
192editDatabaseTask(id: ID!, taskFields: EditDatabaseTaskInput!): DatabaseTask
193
194# Creates a free-filesystem question.
195createFreeFilesystemTask(
196taskFields: CreateFreeFilesystemTaskInput!,
197options: CreateTaskOptionsInput
198): FilesystemTask
199
200# Edits a free-filesystem question with the given ID.
201editFreeFilesystemTask(
202id: ID!,
203taskFields: EditFreeFilesystemTaskInput!
204): FilesystemTask
205
206# Creates a scorable-filesystem question. Scorable filesystem questions use unit
207# tests for automated scoring; each execution environment must include at least
208# one unit test with a positive weight.
209createScorableFilesystemTask(
210taskFields: CreateScorableFilesystemTaskInput!,
211options: CreateTaskOptionsInput
212): FilesystemTask
213
214# Edits a scorable-filesystem question with the given ID.
215editScorableFilesystemTask(
216id: ID!,
217taskFields: EditScorableFilesystemTaskInput!
218): FilesystemTask
219
220# Creates a free coding question without any test case or validation.
221createFreeCodingTask(
222taskFields: CreateFreeCodingTaskInput!,
223options: CreateTaskOptionsInput
224): SingleEnvironmentTask
225
226# Edits a free coding question with the given ID.
227editFreeCodingTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
228
229# Update one or more front-end question parameters by the question ID
230updateFrontendTask(id: ID!, patch: UpdateFrontendTaskInput!): SingleEnvironmentTask
231
232# Creates a quiz question with one or more correct options.
233createQuizTask(
234taskFields: CreateQuizInput!,
235options: CreateTaskOptionsInput
236): SingleEnvironmentTask
237
238# Edits a quiz question with the given ID.
239editQuizTask(id: ID!, taskFields: EditQuizInput!): SingleEnvironmentTask
240
241# Creates a question with a function as an entry point that receives input and
242# returns the output.
243createStandardTask(
244taskFields: CreateStandardTaskInput!,
245options: CreateTaskOptionsInput
246): SingleEnvironmentTask
247
248# Edits a standard question with the given ID.
249editStandardTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
250
251}

link Required by

This element is not required by anyone