curl --location -g --request PUT 'https://api.iotwireless.{region}.amazonaws.com/things//jobs//cancel' \
--header 'Content-Type: application/json' \
--data-raw '{
"expectedVersion": 0,
"statusDetails": {
"property1": "string",
"property2": "string"
}
}'
{}
true
the job execution will be canceled if it has status IN_PROGRESS or QUEUED, otherwise the job execution will be canceled only if it has status QUEUED. If you attempt to cancel a job execution that is IN_PROGRESS, and you do not set force
to true
, then an InvalidStateTransitionException
will be thrown. The default is false
.