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

link Required by

This element is not required by anyone