Pauses Execution Instance by SID
POST/execution-instance/:instanceSid/pause
Pauses Execution Instance by SID
Request
Path Parameters
Header Parameters
The secret for the requested Strategy
Responses
- 200
The found record
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- MOD3
Array [
Array [
]
]
Array [
]
Array [
]
Array [
Array [
]
Array [
- MOD1
- MOD1
- MOD1
- MOD2
- MOD3
- MOD4
- MOD1
]
Array [
]
]
Array [
Array [
]
Array [
Array [
]
Array [
]
]
]
Array [
- MOD1
- MOD1
- MOD1
- MOD2
- MOD3
- MOD4
- MOD1
]
Entity creation date
Entity update date
Execution Instance ID
Execution Strategy description
Execution Strategy name or sid
Possible values: [ACTIVE
, CANCELED
, PAUSED
]
Instance status
Execution cycle
Execution start date
Execution end date
Next execution date
Saves the execution day in the month
attributes
object
Optional instance data
property name*
object
oneOf
string
boolean
number
nextEvent
object
Possible values: [HTTP_REQUEST
, CONTROLLER_HELPER
, MAX_ATTEMPTS
, CREATE_CYCLE_ERROR
]
Cancel reason
strategy
object
Entity creation date
Entity update date
Execution Strategy ID
Execution Strategy name
Execution Strategy description
Execution Strategy secret
Default value: 1
Execution Strategy version
settings
object
required
config
object
Strategy configuration
Possible values: <= 5000
Time in ms to delay each service call
Events won't be automatically queued if true
Timezone to use
Instance attributes JTD validation
schedule
object
required
Schedule configurations
initialDelay
object
Initial scheduling delay
Possible values: [years
, months
, days
, hours
, minutes
]
Unit of time
Amount of unit
Calculate from date in instance attributes
resetTo
object
Reset time to especified values after delta
Possible values: >= 1
and <= 12
Reset month to value
Possible values: >= 1
and <= 31
Reset day to value
Possible values: <= 24
Reset hour to value
Possible values: <= 59
Reset minute to value
Controller to get the custom period for each retry. If not mapped will use current unit/amount as default
calendars
object[]
required
List of calendars
Calendar key
Calendar description
Possible values: >= 1
Cycle number on which to run calendar
Cycle number callback to validate if calendar should run
Calculate the next cycle date
scheduleAfter
object
required
Schedule after time
Possible values: [years
, months
, days
, hours
, minutes
]
Unit of time
Amount of unit
Calculate from date in instance attributes
resetTo
object
Reset time to especified values after delta
Possible values: >= 1
and <= 12
Reset month to value
Possible values: >= 1
and <= 31
Reset day to value
Possible values: <= 24
Reset hour to value
Possible values: <= 59
Reset minute to value
Controller to get the custom period for each retry. If not mapped will use current unit/amount as default
Key of task to run
leadingUpTasks
object[]
Tasks to run leading up to main task
Key of task to run
scheduleBefore
object
Schedule before time
Possible values: [years
, months
, days
, hours
, minutes
]
Unit of time
Amount of unit
Calculate from date in instance attributes
resetTo
object
Reset time to especified values after delta
Possible values: >= 1
and <= 12
Reset month to value
Possible values: >= 1
and <= 31
Reset day to value
Possible values: <= 24
Reset hour to value
Possible values: <= 59
Reset minute to value
Controller to get the custom period for each retry. If not mapped will use current unit/amount as default
onCreateTasks
object[]
Tasks to execute on instance creation
delayBy
object
Delay after event
Possible values: [years
, months
, days
, hours
, minutes
]
Unit of time
Amount of unit
Calculate from date in instance attributes
resetTo
object
Reset time to especified values after delta
Possible values: >= 1
and <= 12
Reset month to value
Possible values: >= 1
and <= 31
Reset day to value
Possible values: <= 24
Reset hour to value
Possible values: <= 59
Reset minute to value
Controller to get the custom period for each retry. If not mapped will use current unit/amount as default
Events won't be automatically queued if true
Callback to validate if event should be created
Name of task to execute
onCancelTasks
object[]
Tasks to execute on instance cancelation
delayBy
object
Delay after event
Possible values: [years
, months
, days
, hours
, minutes
]
Unit of time
Amount of unit
Calculate from date in instance attributes
resetTo
object
Reset time to especified values after delta
Possible values: >= 1
and <= 12
Reset month to value
Possible values: >= 1
and <= 31
Reset day to value
Possible values: <= 24
Reset hour to value
Possible values: <= 59
Reset minute to value
Controller to get the custom period for each retry. If not mapped will use current unit/amount as default
Events won't be automatically queued if true
Callback to validate if event should be created
Name of task to execute
services
object[]
required
List of services
Service key
Service description
baseUrls
object[]
required
List of base URLs, per environment
Environment name
URL for environment
authorization
object[]
List of authoriozation configurations, per environment
headers
object
Optional set of headers
property name*
object
oneOf
string
params
object
Optional set of params
property name*
object
oneOf
string
data
object
Optional body data
property name*
object
oneOf
string
boolean
number
object
attributes
object
Optional set of attributes
property name*
object
oneOf
string
Environment name
Authorization URL
Possible values: [get
, delete
, post
, put
, patch
]
API method
Cache the authorization token for all service methods
Path to credential
Credential type
methods
object[]
required
List of methods
Method key
Method description
Method resource URL
Possible values: [get
, delete
, post
, put
, patch
]
API method
Method is asynchronous
Request validation schema
Response validation schema
tasks
object[]
required
List of tasks
Task key
Task description
retryConfig
object
Task retry configuration
Number of times to retry
retryAfter
object
Task retry configuration
Possible values: [years
, months
, days
, hours
, minutes
]
Unit of time
Amount of unit
Calculate from date in instance attributes
resetTo
object
Reset time to especified values after delta
Possible values: >= 1
and <= 12
Reset month to value
Possible values: >= 1
and <= 31
Reset day to value
Possible values: <= 24
Reset hour to value
Possible values: <= 59
Reset minute to value
Controller to get the custom period for each retry. If not mapped will use current unit/amount as default
When the maximum number of attempts has been reached, pause instead of canceling.
retryStrategy
object[]
Possible values: [years
, months
, days
, hours
, minutes
]
steps
object[]
required
List of steps
Step key
Step description
retryConfig
object
Task retry configuration
Number of times to retry
retryAfter
object
Task retry configuration
Possible values: [years
, months
, days
, hours
, minutes
]
Unit of time
Amount of unit
Calculate from date in instance attributes
resetTo
object
Reset time to especified values after delta
Possible values: >= 1
and <= 12
Reset month to value
Possible values: >= 1
and <= 31
Reset day to value
Possible values: <= 24
Reset hour to value
Possible values: <= 59
Reset minute to value
Controller to get the custom period for each retry. If not mapped will use current unit/amount as default
When the maximum number of attempts has been reached, pause instead of canceling.
retryStrategy
object[]
Possible values: [years
, months
, days
, hours
, minutes
]
Reset attemps
Action to execute with step
Is step final
Controller to use with step
Controller callback to use with step
Resume controller callback is executed when the event is resumed
Is step optional
Should step execute again on retry
Step key
nextStepRules
object[]
Next step rules
Possible values: [onError
, onBeforeRetry
, onBeforePause
, callback
]
Next step if event of type
Next step callback validator
Next step rule description
Next step key
Task initial step
actions
object[]
required
List of actions
headers
object
Optional set of headers
property name*
object
oneOf
string
params
object
Optional set of params
property name*
object
oneOf
string
data
object
Optional body data
property name*
object
oneOf
string
boolean
number
object
attributes
object
Optional set of attributes
property name*
object
oneOf
string
Action key
Key of service to use
Key of service method to use
encryptedSettings
object
Encryption iv
Encryption hash
Encrypted text
{
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"sid": "string",
"description": "string",
"strategyId": "string",
"status": "ACTIVE",
"cycle": 0,
"startDate": "2024-07-29T15:51:28.071Z",
"endDate": "2024-07-29T15:51:28.071Z",
"executionDate": "2024-07-29T15:51:28.071Z",
"executionDay": 0,
"attributes": {},
"nextEvent": {
"sid": "string",
"date": "2024-07-29T15:51:28.071Z"
},
"cancelReason": "HTTP_REQUEST",
"strategy": {
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"sid": "string",
"name": "string",
"description": "string",
"secret": "string",
"version": "1",
"settings": {
"config": {
"requestDelayTime": 0,
"manualTrigger": true,
"timezone": "string"
},
"instanceValidation": {},
"schedule": {
"initialDelay": {
"unit": "years",
"amount": 0,
"from": "string",
"resetTo": {
"month": 0,
"day": 0,
"hour": 0,
"minute": 0
},
"retryEventCallback": "string"
},
"calendars": [
{
"key": "string",
"description": "string",
"runOnCycle": 0,
"runOnCycleCallback": "string",
"nextCycleDateCallback": "string",
"scheduleAfter": {
"unit": "years",
"amount": 0,
"from": "string",
"resetTo": {
"month": 0,
"day": 0,
"hour": 0,
"minute": 0
},
"retryEventCallback": "string"
},
"task": "string",
"leadingUpTasks": [
{
"task": "string",
"scheduleBefore": {
"unit": "years",
"amount": 0,
"from": "string",
"resetTo": {
"month": 0,
"day": 0,
"hour": 0,
"minute": 0
},
"retryEventCallback": "string"
}
}
]
}
]
},
"onCreateTasks": [
{
"delayBy": {
"unit": "years",
"amount": 0,
"from": "string",
"resetTo": {
"month": 0,
"day": 0,
"hour": 0,
"minute": 0
},
"retryEventCallback": "string"
},
"manualTrigger": true,
"createIf": "string",
"task": "string"
}
],
"onCancelTasks": [
{
"delayBy": {
"unit": "years",
"amount": 0,
"from": "string",
"resetTo": {
"month": 0,
"day": 0,
"hour": 0,
"minute": 0
},
"retryEventCallback": "string"
},
"manualTrigger": true,
"createIf": "string",
"task": "string"
}
],
"services": [
{
"key": "string",
"description": "string",
"baseUrls": [
{
"environment": "string",
"url": "string"
}
],
"authorization": [
{
"headers": {},
"params": {},
"data": {},
"attributes": {},
"environment": "string",
"url": "string",
"method": "get",
"noCache": true
}
],
"credentialPath": "string",
"credentialType": "string",
"methods": [
{
"key": "string",
"description": "string",
"url": "string",
"method": "get",
"async": true,
"requestValidation": "string",
"responseValidation": {}
}
]
}
],
"tasks": [
{
"key": "string",
"description": "string",
"retryConfig": {
"times": 0,
"retryAfter": {
"unit": "years",
"amount": 0,
"from": "string",
"resetTo": {
"month": 0,
"day": 0,
"hour": 0,
"minute": 0
},
"retryEventCallback": "string"
},
"pauseBeforeCancel": true,
"retryStrategy": [
{
"unit": "years",
"amount": 0
}
]
},
"steps": [
{
"key": "string",
"description": "string",
"retryConfig": {
"times": 0,
"retryAfter": {
"unit": "years",
"amount": 0,
"from": "string",
"resetTo": {
"month": 0,
"day": 0,
"hour": 0,
"minute": 0
},
"retryEventCallback": "string"
},
"pauseBeforeCancel": true,
"retryStrategy": [
{
"unit": "years",
"amount": 0
}
]
},
"resetAttempts": true,
"action": "string",
"final": true,
"controller": "string",
"controllerCallback": "string",
"resumeControllerCallback": "string",
"optional": true,
"repeatOnRetry": true,
"nextStep": "string",
"nextStepRules": [
{
"if": "onError",
"ifCallback": "string",
"description": "string",
"nextStep": "string"
}
]
}
],
"initialStep": "string"
}
],
"actions": [
{
"headers": {},
"params": {},
"data": {},
"attributes": {},
"key": "string",
"service": "string",
"method": "string"
}
]
},
"encryptedSettings": {
"iv": "string",
"hash": "string",
"encryptedText": "string"
}
}
}