curl --location --request POST 'http://localhost:5600/open/subscriptions' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Bilibili",
"type": "public-repo",
"schedule_type": "crontab",
"schedule": "2 2 28 * *",
"interval_schedule": {
"type": "hours",
"value": 55
},
"url": "https://github.com/RayWangQvQ/BiliBiliToolPro.git",
"whitelist": "bili_task_.+\\.sh",
"blacklist": "",
"dependences": "",
"branch": "main",
"pull_type": null,
"pull_option": null,
"alias": "RayWangQvQ_BiliBiliToolPro",
"extensions": "sh",
"sub_before": "",
"sub_after": "",
"proxy": null,
"autoAddCron": true,
"autoDelCron": true
}'
{
"code": 0,
"data": {
"id": 0,
"name": "string",
"type": "public-repo",
"schedule_type": "crontab",
"schedule": "string",
"interval_schedule": {
"type": "days",
"value": 0
},
"url": "string",
"whitelist": "string",
"blacklist": "string",
"dependences": "string",
"branch": "string",
"status": null,
"pull_type": null,
"pull_option": {
"private_key": "string"
},
"pid": "string",
"is_disabled": 0,
"log_path": "string",
"alias": "string",
"command": "string",
"extensions": "string",
"sub_before": "string",
"sub_after": "string",
"proxy": "string",
"autoAddCron": 0,
"autoDelCron": 0,
"createdAt": "string",
"updatedAt": "string"
}
}