Create process
Create a new process for an application. Each application can have at most one web process. The process is created with the specified resource type and scaling strategy. A deployment is required after creation for the new process to take effect.
Authorizations
Path Parameters
Body
Process runtime type. web - HTTP server process that handles incoming web traffic. worker - background process that runs continuously. cron - scheduled process that runs at specified intervals. job - one-time process that runs to completion and then stops.
web, worker, cron, job "web"
How to handle a scheduled run when the previous run is still active. Forbid skips the new run until the current one finishes. Replace cancels the running job and starts a new one, which prevents a stuck run from blocking the schedule. Defaults to Forbid. Only applicable to cron processes.
Forbid, Replace "Forbid"
Maximum run time in seconds. For cron processes, each scheduled run is terminated when it runs longer than this. Leave unset or send 0 for no limit. For job processes, the job is stopped and the deployment fails when the job runs longer than this. A job is also stopped when the deployment reaches its overall time limit (30 minutes by default). Leave unset or send 0 to use the default of 600 seconds. Ignored for web and worker processes.
0 <= x <= 90071992547409913600
When the job process should run relative to deployments. beforeDeployment - run after the build and before the new version of the other processes rolls out. If the job fails, the deployment fails and the running processes stay on the previous version. afterSuccessDeployment - run after a successful deployment. afterFailedDeployment - run after a failed deployment. Required for job processes.
beforeDeployment, afterSuccessDeployment, afterFailedDeployment "beforeDeployment"
Response
Default Response
Identifier of the application this process belongs to
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Process runtime type. web - HTTP server process that handles incoming web traffic. worker - background process that runs continuously. cron - scheduled process that runs at specified intervals. job - one-time process that runs to completion and then stops.
web, worker, cron, job "web"
Identifier of the process resource type (machine size) assigned to this process. Use the List Process Resource Types endpoint to retrieve available options.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
How to handle a scheduled run when the previous run is still active. Forbid skips the new run until the current one finishes. Replace cancels the running job and starts a new one, which prevents a stuck run from blocking the schedule. Defaults to Forbid. Only applicable to cron processes.
Forbid, Replace "Forbid"
Maximum run time in seconds. For cron processes, each scheduled run is terminated when it runs longer than this, and null means no limit. For job processes, the job is stopped and the deployment fails when the job runs longer than this, and null means the default of 600 seconds. A job is also stopped when the deployment reaches its overall time limit (30 minutes by default). Not used for web and worker processes.
1 <= x <= 90071992547409913600
When the job process should run relative to deployments. beforeDeployment - run after the build and before the new version of the other processes rolls out. If the job fails, the deployment fails and the running processes stay on the previous version. afterSuccessDeployment - run after a successful deployment. afterFailedDeployment - run after a failed deployment. Only applicable to job processes.
beforeDeployment, afterSuccessDeployment, afterFailedDeployment "afterSuccessDeployment"
Timestamp when the process was created, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$"2025-01-30T00:00:00.000Z"
Timestamp when the process was last modified, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$"2025-01-30T00:00:00.000Z"