Cron Create

Updated 2 years ago by Admin

Create a new cron job. Please note this api requires write access to the repository.

POST /api/repos/{owner}/{repo}/cron

Example Request Body:

1  {
2 "name": "nightly",
3 "expr": "0 0 1 * * *",
4 "branch": "master"
5 }

Example Response Body:

1   {
2 "id": 1,
3 "repo_id": 42,
4 "name": "nightly",
5 "expr": "0 0 1 * * *",
6 "branch": "master",
7 "next": 1564120128,
8 "pref": 1564116480,
9 "created": 1564096971,
10 "updated": 1564096971,
11 }


How did we do?