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 framework.
107#
108# The test will use the framework's configuration for duration, tasks, and other
109# framework-controlled settings. Other settings like title, emails, and labels
110# can be customized through the input fields.
111#
112# Arguments
113# testFields: The test configuration including framework ID and
114# customizable fields.
115createCompanyTestFromFramework(
116testFields: CreateCompanyTestFromFrameworkInput!
117): CompanyTest
118
119# Edits a company test with the given ID.
120editCompanyTest(id: ID!, testFields: EditCompanyTestInput!): CompanyTest
121
122# Duplicates an existing company test, optionally overriding specific fields.
123#
124# The duplicated test will copy all configuration from the source test and apply
125# any field overrides specified in testFields. If title is not provided in
126# testFields,
127# it will default to the source test's title with " - duplicate" appended. The
128# operation
129# will fail if a test with the same title already exists in the company.
130#
131# Arguments
132# id: The ID of the company test to duplicate
133# testFields: Modifications to apply during duplication.
134# If a new title is not provided, it defaults to the source test title with " -
135# duplicate" appended.
136duplicateCompanyTest(
137id: ID!,
138testFields: EditCompanyTestInput!
139): CompanyTest
140
141# Creates a live interview.
142createLiveInterview(interviewFields: LiveInterviewInput): LiveInterview
143
144# Edit a live interview with a given ID.
145editLiveInterview(id: ID!, interviewFields: LiveInterviewInput!): LiveInterview
146
147# Delete a live interview with a given ID.
148deleteLiveInterview(id: ID!): ID!
149
150# [*Internal use only*]
151# Assign question to specific sets.
152#
153# - Cost complexity: 3
154# - Rate limit: 10 requests / second
155addTaskToSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask
156
157# [*Internal use only*]
158# Remove question from specific sets.
159#
160# - Cost complexity: 3
161# - Rate limit: 10 requests / second
162removeTaskFromSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask
163
164# Set customized initial source code that will be presented when solving the
165# question.
166# Returns the modified question.
167setTaskInitialSource(
168id: ID!,
169language: LanguageName!,
170source: String!
171): SingleEnvironmentTask
172
173# Reset the initial source code of the question to the default value for the given
174# language.
175# Returns the modified question.
176unsetTaskInitialSource(id: ID!, language: LanguageName!): SingleEnvironmentTask
177
178# Creates a code review question without any test case or validation.
179createCodeReviewTask(
180taskFields: CreateCodeReviewTaskInput!,
181options: CreateTaskOptionsInput
182): CodeReviewTask
183
184# Edits a code review question with the given ID.
185editCodeReviewTask(
186id: ID!,
187taskFields: EditCodeReviewTaskInput!
188): CodeReviewTask
189
190# Creates a database question with test cases
191createDatabaseTask(
192taskFields: CreateDatabaseTaskInput!,
193options: CreateTaskOptionsInput
194): DatabaseTask
195
196# Edits a database question with the given ID.
197editDatabaseTask(id: ID!, taskFields: EditDatabaseTaskInput!): DatabaseTask
198
199# Creates a free coding question without any test case or validation.
200createFreeCodingTask(
201taskFields: CreateFreeCodingTaskInput!,
202options: CreateTaskOptionsInput
203): SingleEnvironmentTask
204
205# Edits a free coding question with the given ID.
206editFreeCodingTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
207
208# Update one or more front-end question parameters by the question ID
209updateFrontendTask(id: ID!, patch: UpdateFrontendTaskInput!): SingleEnvironmentTask
210
211# Creates a quiz question with one or more correct options.
212createQuizTask(
213taskFields: CreateQuizInput!,
214options: CreateTaskOptionsInput
215): SingleEnvironmentTask
216
217# Edits a quiz question with the given ID.
218editQuizTask(id: ID!, taskFields: EditQuizInput!): SingleEnvironmentTask
219
220# Creates a question with a function as an entry point that receives input and
221# returns the output.
222createStandardTask(
223taskFields: CreateStandardTaskInput!,
224options: CreateTaskOptionsInput
225): SingleEnvironmentTask
226
227# Edits a standard question with the given ID.
228editStandardTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
229
230}

link Required by

This element is not required by anyone