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
71createCertificationRequest(
72requestFields: CreateCertificationRequestInput!
73): CertificationRequest
74
75# Set customized initial source code that will be presented when solving the task.
76# Returns the modified task.
77setTaskInitialSource(
78id: ID!,
79language: LanguageName!,
80source: String!
81): Task
82
83# Reset the initial source code of the task to the default value for the given
84# language.
85# Returns the modified task.
86unsetTaskInitialSource(id: ID!, language: LanguageName!): Task
87
88# Creates a quiz task with one or more correct options.
89createQuizTask(
90taskFields: CreateQuizInput!,
91options: CreateTaskOptionsInput
92): Task
93
94# Edits a quiz task with the given ID.
95editQuizTask(id: ID!, taskFields: EditQuizInput!): Task
96
97# Creates a task with a function as an entry point that receives input and returns
98# the output.
99createStandardTask(
100taskFields: CreateStandardTaskInput!,
101options: CreateTaskOptionsInput
102): Task
103
104# Edits a standard task with the given ID.
105editStandardTask(id: ID!, taskFields: EditStandardTaskInput!): Task
106
107# Update one or more front-end task parameters by the task ID
108updateFrontendTask(id: ID!, patch: UpdateFrontendTaskInput): Task
109
110# Creates a database task with test cases
111createDatabaseTask(
112taskFields: CreateDatabaseTaskInput!,
113options: CreateTaskOptionsInput
114): Task
115
116# Edits a database task with the given ID.
117editDatabaseTask(id: ID!, taskFields: EditDatabaseTaskInput!): Task
118
119# Creates a free coding task without any test case or validation.
120createFreeCodingTask(
121taskFields: CreateFreeCodingTaskInput!,
122options: CreateTaskOptionsInput
123): Task
124
125# Edits a free coding task with the given ID.
126editFreeCodingTask(id: ID!, taskFields: EditStandardTaskInput!): Task
127
128}

link Required by

This element is not required by anyone