- Introduction
- Auth
- Bolts
- Environments
- Git
- Domains
- Logs
- List Environments
- Create Environment
- Get Environment
- Update Environment
- Delete Environment
- Purge Environment Cache
- List Environment Cronjobs
- Get Environment Statistics
- Get Environment Available Settings
- Get Environment PHP Versions
- Get Environment Usage
- Get Environment SSH Accesses
- Create Environment SSH Access
- Remove Environment SSH Access
- List Environment Databases
- Toggle Environment Dev Mode
- Environment Install Wordpress
- Environment Optimize Wordpress
- Locations
- Databases
- Cronjobs
- SSH Keys
- Certificates
- Billing
- Profile
Get Cronjob
GET
https://api.servebolt.io/v1/cronjobs/{cronjobId}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
cronjobId
integer
required
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.servebolt.io/v1/cronjobs/' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Responses
🟢200OK
application/json
Body
data
object
required
type
string
required
id
string
required
attributes
object
required
relationships
object
required
links
object
required
Example
{
"data": {
"type": "cronjobs",
"id": "283",
"attributes": {
"active": true,
"disabled": false,
"command": "bash myscript.sh",
"comment": "my script",
"schedule": "* * * * *",
"notifications": "none"
},
"relationships": {
"environment": {
"links": {
"related": "https://xxx/v1/environments/1785"
},
"data": {
"type": "environments",
"id": "1785"
}
}
},
"links": {
"self": "https://xxx/v1/cronjobs/283"
}
}
}
Modified at 2024-05-29 10:06:22