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

link Required by

This element is not required by anyone