Skip to main content
POST
Create worker

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body schema.

name
string
required

Worker name.

slug
string
required

Worker URL slug.

folderUuid
string<uuid>

Folder identifier for the worker.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
description
string

Worker description.

triggers
Triggers · object[]

Cron triggers for the worker. Each trigger calls the worker's URL at the given path on the schedule.

Maximum array length: 10

Response

Successful response

worker
Worker · object
required

Created worker details.