OBJECT

Mutation

link GraphQL Schema definition

1type Mutation {
2
3# Set customized initial source code that will be presented when solving the task.
4# Returns the modified task.
5setTaskInitialSource(
6id: ID!,
7language: LanguageName!,
8source: String!
9): Task
10
11# Reset the initial source code of the task to the default value for the given
12# language.
13# Returns the modified task.
14unsetTaskInitialSource(id: ID!, language: LanguageName!): Task
15
16# Creates a quiz task with one or more correct options.
17createQuizTask(
18taskFields: CreateQuizInput!,
19options: CreateTaskOptionsInput
20): Task
21
22# Edits a quiz task with the given ID.
23editQuizTask(id: ID!, taskFields: EditQuizInput!): Task
24
25# Creates a task with a function as an entry point that receives input and returns
26# the output.
27createStandardTask(
28taskFields: CreateStandardTaskInput!,
29options: CreateTaskOptionsInput
30): Task
31
32# Edits a standard task with the given ID.
33editStandardTask(id: ID!, taskFields: EditStandardTaskInput!): Task
34
35# Update one or more front-end task parameters by the task ID
36updateFrontendTask(id: ID!, patch: UpdateFrontendTaskInput): Task
37
38# Creates a database task with test cases
39createDatabaseTask(
40taskFields: CreateDatabaseTaskInput!,
41options: CreateTaskOptionsInput
42): Task
43
44# Edits a database task with the given ID.
45editDatabaseTask(id: ID!, taskFields: EditDatabaseTaskInput!): Task
46
47# Creates a free coding task without any test case or validation.
48createFreeCodingTask(
49taskFields: CreateFreeCodingTaskInput!,
50options: CreateTaskOptionsInput
51): Task
52
53# Edits a free coding task with the given ID.
54editFreeCodingTask(id: ID!, taskFields: EditStandardTaskInput!): Task
55
56# Creates a company test.
57createCompanyTest(testFields: CreateCompanyTestInput!): CompanyTest
58
59# Edits a company test with the given ID.
60editCompanyTest(id: ID!, testFields: EditCompanyTestInput!): CompanyTest
61
62# [*Internal use only*]
63# Edits a company's service plans and custom features.
64editCompanyPlanSettings(
65companyId: ID!,
66planSettings: CompanyPlanSettingsInput!
67): Company
68
69# Allow retakes of a company test from a public invitation.
70# Only accept 0 or 1 as retakeAllowanceCount.
71setCompanyTestRetakeAllowances(
72userId: ID,
73username: String,
74testId: ID!,
75retakeAllowanceCount: Int!
76): Int
77
78# Creates a live interview.
79createLiveInterview(interviewFields: LiveInterviewInput): LiveInterview
80
81# Edit a live interview with a given ID.
82editLiveInterview(id: ID!, interviewFields: LiveInterviewInput!): LiveInterview
83
84# [*Internal use only*]
85# Creates or updates a role with the given key.
86saveRole(key: ID!, title: String!, permissions: [String]!): Role
87
88# Creates a new company-specific role.
89createCompanyRole(
90companyId: ID!,
91title: String!,
92permissions: [String]!
93): Role
94
95# Updates a company-specific role with the given key.
96editCompanyRole(
97key: ID!,
98companyId: ID!,
99title: String!,
100permissions: [String]!
101): Role
102
103# Deletes the role with the given key.
104deleteRole(key: ID!): ID!
105
106createCompanyTestSession(
107sessionFields: TestSessionInput!
108): CompanyTestSession
109
110createCertificationRequest(
111requestFields: CreateCertificationRequestInput!
112): CertificationRequest
113
114# Deletes the interview template with the given ID.
115deleteInterviewTemplate(interviewTemplateId: ID!): ID!
116
117# Creates an interview template.
118createInterviewTemplate(
119interviewTemplateFields: CreateInterviewTemplateInput!
120): InterviewTemplate
121
122# Edit the interview template with the given ID.
123editInterviewTemplate(
124interviewTemplateId: ID!,
125interviewTemplateFields: EditInterviewTemplateInput!
126): InterviewTemplate
127
128}

link Required by

This element is not required by anyone