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# Edits a company's service plans and custom features.
19editCompanyPlanSettings(
20companyId: ID!,
21planSettings: CompanyPlanSettingsInput!
22): Company
23
24createCompanyTestSession(
25sessionFields: TestSessionInput!
26): CompanyTestSession
27
28deleteCompanyTestSession(
29id: ID!,
30sendNotificationEmail: Boolean
31): ID!
32
33# Arguments
34# customDuration: Duration of the test for this test session, in
35# milliseconds.
36editCompanyTestSessionDuration(
37id: ID!,
38customDuration: Float!
39): CompanyTestSession!
40
41# Arguments
42# expirationDate: Expiration for the test for this session, in
43# milliseconds.
44editCompanyTestSessionExpiration(
45id: ID!,
46expirationDate: Int!
47): CompanyTestSession!
48
49resendCompanyTestSession(id: ID!): CompanyTestSession!
50
51reactivateCompanyTestSession(
52id: ID!,
53sendNotificationEmail: Boolean
54): CompanyTestSession!
55
56gradeCompanyTestResult(id: ID!, taskId: ID!, score: Int!): CompanyTestSession!
57
58markCompanyTestResultAsGraded(id: ID!): CompanyTestSession!
59
60# [*Internal use only*]
61# Creates or updates a role with the given key.
62saveRole(key: ID!, title: String!, permissions: [String]!): Role!
63
64# Creates a new company-specific role.
65# When companyId is not provided, it is inferred using authorization information.
66createCompanyRole(
67title: String!,
68permissions: [String]!,
69companyId: ID
70): Role!
71
72# Updates a company-specific role with the given key.
73# The companyId field is deprecated and is left for backwards compatibility only.
74# It is not used when performing the mutation.
75editCompanyRole(key: ID!, title: String!, permissions: [String]!): Role!
76
77# Deletes the role with the given key.
78deleteRole(key: ID!): ID!
79
80# Creates a company test.
81createCompanyTest(testFields: CreateCompanyTestInput!): CompanyTest
82
83# Edits a company test with the given ID.
84editCompanyTest(id: ID!, testFields: EditCompanyTestInput!): CompanyTest
85
86# Allow retakes of a company test from a public invitation.
87# Only accept 0 or 1 as retakeAllowanceCount.
88setCompanyTestRetakeAllowances(
89userId: ID,
90username: String,
91testId: ID!,
92retakeAllowanceCount: Int!
93): Int
94
95# Creates a live interview.
96createLiveInterview(interviewFields: LiveInterviewInput): LiveInterview
97
98# Edit a live interview with a given ID.
99editLiveInterview(id: ID!, interviewFields: LiveInterviewInput!): LiveInterview
100
101# Delete a live interview with a given ID.
102deleteLiveInterview(id: ID!): ID!
103
104# [*Internal use only*]
105# Assign question to specific sets.
106#
107# - Cost complexity: 3
108# - Rate limit: 10 requests / second
109addTaskToSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask
110
111# [*Internal use only*]
112# Remove question from specific sets.
113#
114# - Cost complexity: 3
115# - Rate limit: 10 requests / second
116removeTaskFromSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask
117
118createCertificationRequest(
119requestFields: CreateCertificationRequestInput!
120): CertificationRequest
121
122# Given the input, revoke the corresponding certification request.
123# There are three ways to specify which certification request to revoke:
124# * by unique request ID;
125# * by candidate email and test ID (your company ID will be used implicitly);
126# * by candidate email, test ID and company ID.
127revokeCertificationRequest(
128certificationRequestInput: CertificationRequestInput!
129): CertificationRequest!
130
131# Set customized initial source code that will be presented when solving the
132# question.
133# Returns the modified question.
134setTaskInitialSource(
135id: ID!,
136language: LanguageName!,
137source: String!
138): SingleEnvironmentTask
139
140# Reset the initial source code of the question to the default value for the given
141# language.
142# Returns the modified question.
143unsetTaskInitialSource(id: ID!, language: LanguageName!): SingleEnvironmentTask
144
145# Creates a quiz question with one or more correct options.
146createQuizTask(
147taskFields: CreateQuizInput!,
148options: CreateTaskOptionsInput
149): SingleEnvironmentTask
150
151# Edits a quiz question with the given ID.
152editQuizTask(id: ID!, taskFields: EditQuizInput!): SingleEnvironmentTask
153
154# Creates a question with a function as an entry point that receives input and
155# returns the output.
156createStandardTask(
157taskFields: CreateStandardTaskInput!,
158options: CreateTaskOptionsInput
159): SingleEnvironmentTask
160
161# Edits a standard question with the given ID.
162editStandardTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
163
164# Update one or more front-end question parameters by the question ID
165updateFrontendTask(id: ID!, patch: UpdateFrontendTaskInput!): SingleEnvironmentTask
166
167# Creates a database question with test cases
168createDatabaseTask(
169taskFields: CreateDatabaseTaskInput!,
170options: CreateTaskOptionsInput
171): DatabaseTask
172
173# Edits a database question with the given ID.
174editDatabaseTask(id: ID!, taskFields: EditDatabaseTaskInput!): DatabaseTask
175
176# Creates a free coding question without any test case or validation.
177createFreeCodingTask(
178taskFields: CreateFreeCodingTaskInput!,
179options: CreateTaskOptionsInput
180): SingleEnvironmentTask
181
182# Edits a free coding question with the given ID.
183editFreeCodingTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
184
185}

link Required by

This element is not required by anyone