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# Edits a company's service plans and custom features.
63editCompanyPlanSettings(
64companyId: ID!,
65planSettings: CompanyPlanSettingsInput!
66): Company
67
68# Allow retakes of a company test.
69# Only accept 0 or 1 as retakeAllowanceCount.
70setCompanyTestRetakeAllowances(
71userId: ID,
72username: String,
73testId: ID!,
74retakeAllowanceCount: Int!
75): Int
76
77# Creates a live interview.
78createLiveInterview(interviewFields: LiveInterviewInput): LiveInterview
79
80# Edit a live interview with a given ID.
81editLiveInterview(id: ID!, interviewFields: LiveInterviewInput!): LiveInterview
82
83# Creates or updates a role with the given key.
84saveRole(key: ID!, title: String!, permissions: [String]!): Role
85
86# Creates a new company-specific role.
87createCompanyRole(
88companyId: ID!,
89title: String!,
90permissions: [String]!
91): Role
92
93# Updates a company-specific role with the given key.
94editCompanyRole(
95key: ID!,
96companyId: ID!,
97title: String!,
98permissions: [String]!
99): Role
100
101# Deletes the role with the given key.
102deleteRole(key: ID!): ID!
103
104createCompanyTestSession(
105sessionFields: TestSessionInput!
106): CompanyTestSession
107
108createCertificationRequest(
109requestFields: CreateCertificationRequestInput!
110): CertificationRequest
111
112}

link Required by

This element is not required by anyone