Edit Scheduled Behavior

Edit Scheduled Behavior

Edit execution state of a schedule on given behvior. After edit the behavior will be re-scheduled if the "cronExpression" or the "active" property is changed.

Request
URI
PUT
https://{api_host}/cloudapi/1.0.0/entityTypes/{id}/behaviors/{behaviorId}/schedule/{scheduleId}
COPY
Path Parameters
string
id
Required

id

string
behaviorId
Required

behaviorId

string
scheduleId
Required

scheduleId


Request Body
ScheduledBehavior of type(s) application/json
Optional
{
    "id": "string",
    "name": "string",
    "configuration": {
        "target": {
            "behaviorRef": {
                "name": "string",
                "id": "string"
            },
            "entityRef": {
                "name": "string",
                "id": "string"
            },
            "invocationArguments": {
                "arguments": {},
                "metadata": {}
            }
        },
        "config": {
            "active": false,
            "runOnce": false,
            "retries": 0,
            "allowedFailures": 0,
            "cronExpression": "30 * * * * * (Executes behavior every 30 seconds)",
            "taskTimeout": 0
        }
    },
    "state": {
        "execution": {
            "taskRef": {
                "name": "string",
                "id": "string"
            }
        },
        "schedule": {
            "inRetryMode": false,
            "retryCounter": 0,
            "allowedFailuresCounter": 0
        }
    }
}
string
id
Optional

The id of the scheduled behavior, used as unique identifier of the schedule.

string
name
Required

The name of the scheduled behavior.

configuration
Optional

Contains target and configuration of behavior to be scheduled.

state
Optional

Contains execution and schedule that represent the current state of the scheduled behavior.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns ScheduledBehavior of type(s) application/json;version=39.0
{
    "id": "string",
    "name": "string",
    "configuration": {
        "target": {
            "behaviorRef": {
                "name": "string",
                "id": "string"
            },
            "entityRef": {
                "name": "string",
                "id": "string"
            },
            "invocationArguments": {
                "arguments": {},
                "metadata": {}
            }
        },
        "config": {
            "active": false,
            "runOnce": false,
            "retries": 0,
            "allowedFailures": 0,
            "cronExpression": "30 * * * * * (Executes behavior every 30 seconds)",
            "taskTimeout": 0
        }
    },
    "state": {
        "execution": {
            "taskRef": {
                "name": "string",
                "id": "string"
            }
        },
        "schedule": {
            "inRetryMode": false,
            "retryCounter": 0,
            "allowedFailuresCounter": 0
        }
    }
}
string
id
Optional

The id of the scheduled behavior, used as unique identifier of the schedule.

string
name
Required

The name of the scheduled behavior.

configuration
Optional

Contains target and configuration of behavior to be scheduled.

state
Optional

Contains execution and schedule that represent the current state of the scheduled behavior.