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
63resendCompanyTestSession(id: ID!): CompanyTestSession!
64
65reactivateCompanyTestSession(
66id: ID!,
67sendNotificationEmail: Boolean
68): CompanyTestSession!
69
70gradeCompanyTestResult(id: ID!, taskId: ID!, score: Int!): CompanyTestSession!
71
72markCompanyTestResultAsGraded(id: ID!): CompanyTestSession!
73
74archiveCompanyTestSession(id: ID!): CompanyTestSession!
75
76unarchiveCompanyTestSession(id: ID!): CompanyTestSession!
77
78# [*Internal use only*]
79# Creates or updates a role with the given key.
80saveRole(key: ID!, title: String!, permissions: [String!]!): Role!
81
82# Creates a new company-specific role.
83# When companyId is not provided, it is inferred using authorization information.
84createCompanyRole(
85title: String!,
86permissions: [String!]!,
87companyId: ID
88): Role!
89
90# Updates a company-specific role with the given key.
91# The companyId field is deprecated and is left for backwards compatibility only.
92# It is not used when performing the mutation.
93editCompanyRole(key: ID!, title: String!, permissions: [String!]!): Role!
94
95# Deletes the role with the given key.
96deleteRole(key: ID!): ID!
97
98# Creates a company test.
99createCompanyTest(testFields: CreateCompanyTestInput!): CompanyTest
100
101# Edits a company test with the given ID.
102editCompanyTest(id: ID!, testFields: EditCompanyTestInput!): CompanyTest
103
104# Creates a live interview.
105createLiveInterview(interviewFields: LiveInterviewInput): LiveInterview
106
107# Edit a live interview with a given ID.
108editLiveInterview(id: ID!, interviewFields: LiveInterviewInput!): LiveInterview
109
110# Delete a live interview with a given ID.
111deleteLiveInterview(id: ID!): ID!
112
113# [*Internal use only*]
114# Assign question to specific sets.
115#
116# - Cost complexity: 3
117# - Rate limit: 10 requests / second
118addTaskToSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask
119
120# [*Internal use only*]
121# Remove question from specific sets.
122#
123# - Cost complexity: 3
124# - Rate limit: 10 requests / second
125removeTaskFromSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask
126
127createCertificationRequest(
128requestFields: CreateCertificationRequestInput!
129): CertificationRequest
130
131# Given the input, revoke the corresponding certification request.
132# There are three ways to specify which certification request to revoke:
133# * by unique request ID;
134# * by candidate email and test ID (your company ID will be used implicitly);
135# * by candidate email, test ID and company ID.
136revokeCertificationRequest(
137certificationRequestInput: CertificationRequestInput!
138): CertificationRequest!
139
140# Set customized initial source code that will be presented when solving the
141# question.
142# Returns the modified question.
143setTaskInitialSource(
144id: ID!,
145language: LanguageName!,
146source: String!
147): SingleEnvironmentTask
148
149# Reset the initial source code of the question to the default value for the given
150# language.
151# Returns the modified question.
152unsetTaskInitialSource(id: ID!, language: LanguageName!): SingleEnvironmentTask
153
154# Creates a code review question without any test case or validation.
155createCodeReviewTask(
156taskFields: CreateCodeReviewTaskInput!,
157options: CreateTaskOptionsInput
158): CodeReviewTask
159
160# Edits a code review question with the given ID.
161editCodeReviewTask(
162id: ID!,
163taskFields: EditCodeReviewTaskInput!
164): CodeReviewTask
165
166# Creates a database question with test cases
167createDatabaseTask(
168taskFields: CreateDatabaseTaskInput!,
169options: CreateTaskOptionsInput
170): DatabaseTask
171
172# Edits a database question with the given ID.
173editDatabaseTask(id: ID!, taskFields: EditDatabaseTaskInput!): DatabaseTask
174
175# Creates a free coding question without any test case or validation.
176createFreeCodingTask(
177taskFields: CreateFreeCodingTaskInput!,
178options: CreateTaskOptionsInput
179): SingleEnvironmentTask
180
181# Edits a free coding question with the given ID.
182editFreeCodingTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
183
184# Update one or more front-end question parameters by the question ID
185updateFrontendTask(id: ID!, patch: UpdateFrontendTaskInput!): SingleEnvironmentTask
186
187# Creates a quiz question with one or more correct options.
188createQuizTask(
189taskFields: CreateQuizInput!,
190options: CreateTaskOptionsInput
191): SingleEnvironmentTask
192
193# Edits a quiz question with the given ID.
194editQuizTask(id: ID!, taskFields: EditQuizInput!): SingleEnvironmentTask
195
196# Creates a question with a function as an entry point that receives input and
197# returns the output.
198createStandardTask(
199taskFields: CreateStandardTaskInput!,
200options: CreateTaskOptionsInput
201): SingleEnvironmentTask
202
203# Edits a standard question with the given ID.
204editStandardTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
205
206}

link Required by

This element is not required by anyone