Add/Update the trigger details
put
/iam/governance/selfservice/api/v1/scheduler/jobs/{jobName}/trigger
Adds or updates the trigger of a job.
Request
Supported Media Types
- application/json
Path Parameters
-
jobName: string
Name of the job
Root Schema : Trigger
Type:
Show Source
object-
endTime(optional):
string(date-time)
Format: yyyy-MM-dd'T'HH:mm:ss'Z'
-
intervalType(optional):
string
-
intervalValues(optional):
array intervalValues
-
jobName(optional):
string
-
nextFireTime(optional):
string(date-time)
Format: yyyy-MM-dd'T'HH:mm:ss'Z'
-
startTime(optional):
string(date-time)
Format: yyyy-MM-dd'T'HH:mm:ss'Z'
-
triggerName(optional):
string
-
triggerType(optional):
string
Allowed Values:
[ "Cron", "Periodic", "Single", "None" ]
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : Success
Type:
Show Source
object-
jobName(optional):
string
-
status(optional):
string
Status of the executed action
400 Response
Invalid input
Examples
The following example shows how to add or update the trigger of a job by submitting the PUT request using cURL. The information shown here is against a pseudo system and serves as a prototype.
cURL Example
curl -i -X PUT -u username:password / --header 'Content-Type: application/json' / --header 'Accept: application/json' / --header 'X-Requested-By: <anyvalue>' -d @put.json' / 'http://pseudo.com/iam/governance/selfservice/api/v1/scheduler/jobs/Catalog Synchronization Job/trigger/'
Example of PUT Request Body
The following example shows the contents of the request body in JSON format:
{
"startTime": "2021-11-24T17:44:00Z",
"intervalType": "MONTHLYWEEKDAYS",
"triggerType": "Cron",
"intervalValues": [
"Fourth Monday"
]
}
Example of PUT Response Body
The following example shows the contents of the response body in JSON format:
{
"jobName": "Catalog Synchronization Job",
"status": "Trigger add successfull"
}