Pipelines

Create a schedule

Changed on

Create a schedule for the given repository.

post/repositories/{workspace}/{repo_slug}/pipelines_config/schedules

Request

  • Base URL
    https://api.bitbucket.org/2.0
  • URL
    https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pipelines_config/schedules
  • Auth
    • OAuth 2
      Authorization code: https://bitbucket.org/site/oauth2/authorize
      Token URL: https://bitbucket.org/site/oauth2/access_token scopes: pipeline:write
    • or HTTP basic
    • or API key in header Authorization

Path parameters

workspacestring required

This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}.

repo_slugstring required

The repository.

Request body

typestring required
enabledboolean

Whether the schedule is enabled.

cron_patternstring required

The cron expression with second precision (7 fields) that the schedule applies. For example, for expression: 0 0 12 * * ? *, will execute at 12pm UTC every day.

Response

The created schedule.

typestring required
uuidstring

The UUID identifying the schedule.

enabledboolean

Whether the schedule is enabled.

cron_patternstring

The cron expression with second precision (7 fields) that the schedule applies. For example, for expression: 0 0 12 * * ? *, will execute at 12pm UTC every day.

created_onstring date-time

The timestamp when the schedule was created.

updated_onstring date-time

The timestamp when the schedule was updated.

Changes

    • warning

      removed the optional property ///////////// from the response with the status

    • warning

      removed the optional property ////////// from the response with the status

    • info

      added the optional property ///////// to the response with the status