Skip to main content
POST
/
projects
/
{project_reference}
/
schedules
Create Project Schedule
curl --request POST \
  --url https://api.veryfront.com/projects/{project_reference}/schedules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "target": {
    "id": "<string>",
    "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "schedule": "<string>",
  "timezone": "<string>",
  "runtime_target_environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "runtime_target_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "config": {},
  "timeout_seconds": 1,
  "backoff_limit": 1
}
'
{
  "schedule": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "target": {
      "id": "<string>",
      "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "schedule": "<string>",
    "timezone": "<string>",
    "runtime_target_environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "runtime_target_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "config": {},
    "timeout_seconds": 123,
    "backoff_limit": 123,
    "concurrency_policy": "<string>",
    "last_scheduled_at": "<string>",
    "last_successful_at": "<string>",
    "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "run_as_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required
Minimum string length: 1

Body

application/json
name
string
required
Required string length: 1 - 255
target
object
required
schedule
string
required
Required string length: 1 - 255
timezone
string
Required string length: 1 - 128
runtime_target_kind
enum<string>
Available options:
main_branch,
environment,
preview_branch
runtime_target_environment_id
string<uuid> | null
runtime_target_branch_id
string<uuid> | null
config
object
timeout_seconds
integer
Required range: x > 0
backoff_limit
integer
Required range: x >= 0
concurrency_policy
enum<string>
Available options:
Allow,
Forbid,
Replace

Response

Created schedule

schedule
object
required