Skip to main content

Create or update worker

Create or update worker

Path Parameters
workspaceId cuid2 — REQUIRED

Possible values: Value must match regular expression ^[0-9a-z]+$

Request Body — REQUIRED
id cuid2

Possible values: Value must match regular expression ^[0-9a-z]+$

name string — REQUIRED

Possible values: 1 ≤ length

description string
code string — REQUIRED

Possible values: 1 ≤ length

active boolean
enableCron boolean
cronExpression string
Responses
200

Successful response

Schema — OPTIONAL
id string
workspaceId string
name string
description — OPTIONAL
code string
revision integer

Possible values: -9007199254740991 ≤ value ≤ 9007199254740991

active boolean
enableCron boolean
cronExpression — OPTIONAL
visibility string

Possible values: [Public, Private]

createdAt string
updatedAt string
400

Invalid input data

Schema — OPTIONAL
message string

The error message

code string

The error code

issues object[] — OPTIONAL

An array of issues that were responsible for the error

message string
401

Authorization not provided

Schema — OPTIONAL
message string

The error message

code string

The error code

issues object[] — OPTIONAL

An array of issues that were responsible for the error

message string
403

Insufficient access

Schema — OPTIONAL
message string

The error message

code string

The error code

issues object[] — OPTIONAL

An array of issues that were responsible for the error

message string
500

Internal server error

Schema — OPTIONAL
message string

The error message

code string

The error code

issues object[] — OPTIONAL

An array of issues that were responsible for the error

message string