Create Schedule
Create Schedule on the NodeRings client API (POST /v1/game-servers/{id}/schedules).
Authorization<token>
Bearer token
In: header
X-Organization-ID<token>
Tenant or organization identifier
In: header
Path Parameters
idstring
name?string
minute?string
hour?string
dayOfMonth?string
month?string
dayOfWeek?string
onlyWhenOnline?boolean
isActive?boolean
Omitted means the schedule is created enabled.
Response Body
application/json
curl -X POST "https://api.noderings.com/v1/game-servers/{id}/schedules" \ -H "Authorization: Bearer {your_token}" \ -H "X-Organization-ID: {your_org_id}" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "minute": "string", "hour": "string", "dayOfMonth": "string", "month": "string", "dayOfWeek": "string", "onlyWhenOnline": false, "isActive": false}'{
"id": "string",
"name": "string",
"minute": "string",
"hour": "string",
"dayOfMonth": "string",
"month": "string",
"dayOfWeek": "string",
"isActive": true,
"onlyWhenOnline": true,
"tasks": [
{
"id": "string",
"sequenceId": 0,
"action": "string",
"payload": "string",
"timeOffset": 0,
"continueOnFailure": true
}
],
"lastRunAt": "string",
"nextRunAt": "string",
"isProcessing": true
}