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
28# [*Internal use only*]
29# Creates or updates a role with the given key.
30saveRole(key: ID!, title: String!, permissions: [String]!): Role
31
32# Creates a new company-specific role.
33createCompanyRole(
34companyId: ID!,
35title: String!,
36permissions: [String]!
37): Role
38
39# Updates a company-specific role with the given key.
40editCompanyRole(
41key: ID!,
42companyId: ID!,
43title: String!,
44permissions: [String]!
45): Role
46
47# Deletes the role with the given key.
48deleteRole(key: ID!): ID!
49
50# Creates a company test.
51createCompanyTest(testFields: CreateCompanyTestInput!): CompanyTest
52
53# Edits a company test with the given ID.
54editCompanyTest(id: ID!, testFields: EditCompanyTestInput!): CompanyTest
55
56# Allow retakes of a company test from a public invitation.
57# Only accept 0 or 1 as retakeAllowanceCount.
58setCompanyTestRetakeAllowances(
59userId: ID,
60username: String,
61testId: ID!,
62retakeAllowanceCount: Int!
63): Int
64
65# Creates a live interview.
66createLiveInterview(interviewFields: LiveInterviewInput): LiveInterview
67
68# Edit a live interview with a given ID.
69editLiveInterview(id: ID!, interviewFields: LiveInterviewInput!): LiveInterview
70
71# [*Internal use only*]
72# Assign task to specific sets.
73#
74# - Cost complexity: 3
75# - Rate limit: 10 requests / second
76addTaskToSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask!
77
78# [*Internal use only*]
79# Remove task from specific sets.
80#
81# - Cost complexity: 3
82# - Rate limit: 10 requests / second
83removeTaskFromSets(editTaskSetsInput: EditTaskSetsInput!): CommonTask!
84
85createCertificationRequest(
86requestFields: CreateCertificationRequestInput!
87): CertificationRequest
88
89# Set customized initial source code that will be presented when solving the task.
90# Returns the modified task.
91setTaskInitialSource(
92id: ID!,
93language: LanguageName!,
94source: String!
95): SingleEnvironmentTask
96
97# Reset the initial source code of the task to the default value for the given
98# language.
99# Returns the modified task.
100unsetTaskInitialSource(id: ID!, language: LanguageName!): SingleEnvironmentTask
101
102# Creates a quiz task with one or more correct options.
103createQuizTask(
104taskFields: CreateQuizInput!,
105options: CreateTaskOptionsInput
106): SingleEnvironmentTask
107
108# Edits a quiz task with the given ID.
109editQuizTask(id: ID!, taskFields: EditQuizInput!): SingleEnvironmentTask
110
111# Creates a task with a function as an entry point that receives input and returns
112# the output.
113createStandardTask(
114taskFields: CreateStandardTaskInput!,
115options: CreateTaskOptionsInput
116): SingleEnvironmentTask
117
118# Edits a standard task with the given ID.
119editStandardTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
120
121# Update one or more front-end task parameters by the task ID
122updateFrontendTask(id: ID!, patch: UpdateFrontendTaskInput): SingleEnvironmentTask
123
124# Creates a database task with test cases
125createDatabaseTask(
126taskFields: CreateDatabaseTaskInput!,
127options: CreateTaskOptionsInput
128): DatabaseTask
129
130# Edits a database task with the given ID.
131editDatabaseTask(id: ID!, taskFields: EditDatabaseTaskInput!): DatabaseTask
132
133# Creates a free coding task without any test case or validation.
134createFreeCodingTask(
135taskFields: CreateFreeCodingTaskInput!,
136options: CreateTaskOptionsInput
137): SingleEnvironmentTask
138
139# Edits a free coding task with the given ID.
140editFreeCodingTask(id: ID!, taskFields: EditStandardTaskInput!): SingleEnvironmentTask
141
142}

link Required by

This element is not required by anyone