Skip to main content
POST
Create background process
Required permission: environment_instance.edit

Authorizations

Authorization
string
header
required

The Bearer Token generated on the Cloud UI.

Path Parameters

instance
string
required

The instance identifier

Body

application/json
type
enum<string>
required
Available options:
worker,
custom
processes
integer
required
Required range: 1 <= x <= 10
command
string

Custom command to run. Required when type is 'custom'. Not applicable for 'worker' type.

Example:

"php artisan my:command"

config
object

Response

BackgroundProcessResource

data
BackgroundProcessResource · object
required
included
InstanceResource · object[]