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

link Required by

This element is not required by anyone