Skip to main content
Version: 8.9 (unreleased)

Type Alias: JobResultUserTask

type JobResultUserTask = {
corrections?: JobResultCorrections;
denied?: boolean | null;
deniedReason?: string | null;
type?: string;
} | null;

Defined in: gen/types.gen.ts:3774

Job result details for a user task completion, optionally including a denial reason and corrected task properties.

Type Declaration

{
corrections?: JobResultCorrections;
denied?: boolean | null;
deniedReason?: string | null;
type?: string;
}

corrections?

optional corrections: JobResultCorrections;

denied?

optional denied: boolean | null;

Indicates whether the worker denies the work, i.e. explicitly doesn't approve it. For example, a user task listener can deny the completion of a task by setting this flag to true. In this example, the completion of a task is represented by a job that the worker can complete as denied. As a result, the completion request is rejected and the task remains active. Defaults to false.

deniedReason?

optional deniedReason: string | null;

The reason provided by the user task listener for denying the work.

type?

optional type: string;

Used to distinguish between different types of job results.

null