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
127# Set customized initial source code that will be presented when solving the
128# question.
129# Returns the modified question.
130setTaskInitialSource(
131id: ID!,
132language: LanguageName!,
133source: String!
134): SingleEnvironmentTask
135
136# Reset the initial source code of the question to the default value for the given
137# language.
138# Returns the modified question.
139unsetTaskInitialSource(id: ID!, language: LanguageName!): SingleEnvironmentTask
140
141# Creates a code review question without any test case or validation.
142createCodeReviewTask(
143taskFields: CreateCodeReviewTaskInput!,
144options: CreateTaskOptionsInput
145): CodeReviewTask
146
147# Edits a code review question with the given ID.
148editCodeReviewTask(
149id: ID!,
150taskFields: EditCodeReviewTaskInput!
151): CodeReviewTask
152
153# Creates a database question with test cases
154createDatabaseTask(
155taskFields: CreateDatabaseTaskInput!,
156options: CreateTaskOptionsInput
157): DatabaseTask
158
159# Edits a database question with the given ID.
160editDatabaseTask(id: ID!, taskFields: EditDatabaseTaskInput!): DatabaseTask
161
162# Creates a free coding question without any test case or validation.
163createFreeCodingTask(
164taskFields: CreateFreeCodingTaskInput!,
165options: CreateTaskOptionsInput
166): SingleEnvironmentTask
167
168# Edits a free coding question with the given ID.
169editFreeCodingTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
170
171# Update one or more front-end question parameters by the question ID
172updateFrontendTask(id: ID!, patch: UpdateFrontendTaskInput!): SingleEnvironmentTask
173
174# Creates a quiz question with one or more correct options.
175createQuizTask(
176taskFields: CreateQuizInput!,
177options: CreateTaskOptionsInput
178): SingleEnvironmentTask
179
180# Edits a quiz question with the given ID.
181editQuizTask(id: ID!, taskFields: EditQuizInput!): SingleEnvironmentTask
182
183# Creates a question with a function as an entry point that receives input and
184# returns the output.
185createStandardTask(
186taskFields: CreateStandardTaskInput!,
187options: CreateTaskOptionsInput
188): SingleEnvironmentTask
189
190# Edits a standard question with the given ID.
191editStandardTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
192
193}

link Required by

This element is not required by anyone