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

link Required by

This element is not required by anyone