Usage:

curl -s -u username:password -H "X-Atlassian-Token:no-check" -X POST $BITBUCKET_URL/rest/gx/1.0/scheduler/schedule -d @/path/to/payload --header "Content-Type: application/json"

where /path/to/payload should contain:

{"data":{"name":"enable","scope":{"type":"REPOSITORY","id":1},"arguments":false}}


- "arguments":false means "disable"
- "arguments":true means "enable"

There're also convenience variants of the payload:

  • to disable

    {"data":{"name":"disable","scope":{"type":"REPOSITORY","id":1}}}
  • to enable

    {"data":{"name":"enable","scope":{"type":"REPOSITORY","id":1}}}


The "id" parameter is the repository id that can be found on Repository Settings page of the Bitbucket ("Location on disk" section).

This command currently doesn't return any visible result to the console. This will be fixed in the future releases.
You may check the command output in the logs: 

git log -p refs/gx/metadata


  • No labels