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# Creates a live interview.
87createLiveInterview(interviewFields: LiveInterviewInput): LiveInterview
88
89# Edit a live interview with a given ID.
90editLiveInterview(id: ID!, interviewFields: LiveInterviewInput!): LiveInterview
91
92# Delete a live interview with a given ID.
93deleteLiveInterview(id: ID!): ID!
94
95# [*Internal use only*]
96# Assign question to specific sets.
97#
98# - Cost complexity: 3
99# - Rate limit: 10 requests / second
100addTaskToSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask
101
102# [*Internal use only*]
103# Remove question from specific sets.
104#
105# - Cost complexity: 3
106# - Rate limit: 10 requests / second
107removeTaskFromSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask
108
109createCertificationRequest(
110requestFields: CreateCertificationRequestInput!
111): CertificationRequest
112
113# Given the input, revoke the corresponding certification request.
114# There are three ways to specify which certification request to revoke:
115# * by unique request ID;
116# * by candidate email and test ID (your company ID will be used implicitly);
117# * by candidate email, test ID and company ID.
118revokeCertificationRequest(
119certificationRequestInput: CertificationRequestInput!
120): CertificationRequest!
121
122# Set customized initial source code that will be presented when solving the
123# question.
124# Returns the modified question.
125setTaskInitialSource(
126id: ID!,
127language: LanguageName!,
128source: String!
129): SingleEnvironmentTask
130
131# Reset the initial source code of the question to the default value for the given
132# language.
133# Returns the modified question.
134unsetTaskInitialSource(id: ID!, language: LanguageName!): SingleEnvironmentTask
135
136# Creates a quiz question with one or more correct options.
137createQuizTask(
138taskFields: CreateQuizInput!,
139options: CreateTaskOptionsInput
140): SingleEnvironmentTask
141
142# Edits a quiz question with the given ID.
143editQuizTask(id: ID!, taskFields: EditQuizInput!): SingleEnvironmentTask
144
145# Creates a question with a function as an entry point that receives input and
146# returns the output.
147createStandardTask(
148taskFields: CreateStandardTaskInput!,
149options: CreateTaskOptionsInput
150): SingleEnvironmentTask
151
152# Edits a standard question with the given ID.
153editStandardTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
154
155# Update one or more front-end question parameters by the question ID
156updateFrontendTask(id: ID!, patch: UpdateFrontendTaskInput!): SingleEnvironmentTask
157
158# Creates a database question with test cases
159createDatabaseTask(
160taskFields: CreateDatabaseTaskInput!,
161options: CreateTaskOptionsInput
162): DatabaseTask
163
164# Edits a database question with the given ID.
165editDatabaseTask(id: ID!, taskFields: EditDatabaseTaskInput!): DatabaseTask
166
167# Creates a free coding question without any test case or validation.
168createFreeCodingTask(
169taskFields: CreateFreeCodingTaskInput!,
170options: CreateTaskOptionsInput
171): SingleEnvironmentTask
172
173# Edits a free coding question with the given ID.
174editFreeCodingTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
175
176}

link Required by

This element is not required by anyone