Skip to content

Update one business-function schedule.

PUT
/api/workspace/admin/function-schedules/{scheduleId}
curl --request PUT \
--url https://example.com/api/workspace/admin/function-schedules/example \
--header 'Content-Type: application/json' \
--data '{ "Name": "example", "BusinessFunctionId": "example", "TimeZone": "example", "CronExpression": "example", "Args": {}, "Status": 0, "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "TimeoutSeconds": 1 }'

Schedule occurrences never overlap active queued or running work for their target function. An overlapping occurrence is recorded as Skipped instead of creating a parallel job.

  • None
scheduleId
required
string
access_token
string

Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.

Request payload to update a business-function schedule.

object
Name

Schedule name.

string
nullable
BusinessFunctionId

Published global function identifier.

string
nullable
TimeZone

Optional schedule time zone identifier; empty values inherit the workspace time zone.

string
nullable
CronExpression

Cron expression.

string
nullable
Args

Optional JSON arguments exposed as ctx.args.

object
Status
integer format: int32
Allowed values: 0 1
RowVersion

Expected concurrency token.

string format: uuid
TimeoutSeconds

Maximum duration for one scheduled occurrence; defaults to 60 seconds.

integer format: int32
nullable

OK

Media typeapplication/json
object
Data

Business-function schedule configuration.

object
Id

Schedule identifier.

string
nullable
Name

Schedule name.

string
nullable
BusinessFunctionId

Published global function identifier.

string
nullable
TimeZone

Explicit schedule time zone identifier; null inherits the workspace time zone.

string
nullable
CronExpression

Cron expression.

string
nullable
Args

Optional JSON arguments exposed as ctx.args.

object
Status
integer format: int32
Allowed values: 0 1
NextRunAt

Next eligible run timestamp.

string format: date-time
nullable
LastRunAt

Last enqueue or execution activity timestamp.

string format: date-time
nullable
LastStatus

Last enqueue, job, or run status.

string
nullable
LastError

Last enqueue, job, or run error summary.

string
nullable
TargetState
integer format: int32
Allowed values: 0 1
TargetError

Target-resolution error for broken schedules.

string
nullable
TargetBrokenAt

Timestamp when target resolution broke.

string format: date-time
nullable
TimeoutSeconds

Maximum duration for one scheduled occurrence.

integer format: int32
RowVersion

Optimistic concurrency token.

string format: uuid
ActiveJob

Retry-control state for a schedule job that is still queued or leased.

object
Id

Queued job identifier.

string
nullable
Status
integer format: int32
Allowed values: 0 1 2 3 4
ModifiedAt

Concurrency token required by the stop-retries command.

string format: date-time
nullable
CurrentAttempt

Current persisted attempt number.

integer format: int32
EffectiveMaxAttempts

Retry limit snapshotted for this job.

integer format: int32
RemainingAttempts

Attempts still permitted by the snapshot.

integer format: int32
RetryDelaySeconds

Delay before another attempt.

integer format: int32
NextRunAt

Next eligible attempt timestamp.

string format: date-time
nullable
WillRetry

Whether the job is currently waiting for or executing an attempt that may retry.

boolean
CanStopRetries

Whether an administrator can stop this retry chain.

boolean
RetryStopState
integer format: int32
Allowed values: 0 1 2
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Status": 0,
"TargetState": 0,
"ActiveJob": {
"Status": 0,
"RetryStopState": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Bad Request

Media typeapplication/json
object
Data

Business-function schedule configuration.

object
Id

Schedule identifier.

string
nullable
Name

Schedule name.

string
nullable
BusinessFunctionId

Published global function identifier.

string
nullable
TimeZone

Explicit schedule time zone identifier; null inherits the workspace time zone.

string
nullable
CronExpression

Cron expression.

string
nullable
Args

Optional JSON arguments exposed as ctx.args.

object
Status
integer format: int32
Allowed values: 0 1
NextRunAt

Next eligible run timestamp.

string format: date-time
nullable
LastRunAt

Last enqueue or execution activity timestamp.

string format: date-time
nullable
LastStatus

Last enqueue, job, or run status.

string
nullable
LastError

Last enqueue, job, or run error summary.

string
nullable
TargetState
integer format: int32
Allowed values: 0 1
TargetError

Target-resolution error for broken schedules.

string
nullable
TargetBrokenAt

Timestamp when target resolution broke.

string format: date-time
nullable
TimeoutSeconds

Maximum duration for one scheduled occurrence.

integer format: int32
RowVersion

Optimistic concurrency token.

string format: uuid
ActiveJob

Retry-control state for a schedule job that is still queued or leased.

object
Id

Queued job identifier.

string
nullable
Status
integer format: int32
Allowed values: 0 1 2 3 4
ModifiedAt

Concurrency token required by the stop-retries command.

string format: date-time
nullable
CurrentAttempt

Current persisted attempt number.

integer format: int32
EffectiveMaxAttempts

Retry limit snapshotted for this job.

integer format: int32
RemainingAttempts

Attempts still permitted by the snapshot.

integer format: int32
RetryDelaySeconds

Delay before another attempt.

integer format: int32
NextRunAt

Next eligible attempt timestamp.

string format: date-time
nullable
WillRetry

Whether the job is currently waiting for or executing an attempt that may retry.

boolean
CanStopRetries

Whether an administrator can stop this retry chain.

boolean
RetryStopState
integer format: int32
Allowed values: 0 1 2
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Status": 0,
"TargetState": 0,
"ActiveJob": {
"Status": 0,
"RetryStopState": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Forbidden

Media typeapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Media typeapplication/json
object
Data

Business-function schedule configuration.

object
Id

Schedule identifier.

string
nullable
Name

Schedule name.

string
nullable
BusinessFunctionId

Published global function identifier.

string
nullable
TimeZone

Explicit schedule time zone identifier; null inherits the workspace time zone.

string
nullable
CronExpression

Cron expression.

string
nullable
Args

Optional JSON arguments exposed as ctx.args.

object
Status
integer format: int32
Allowed values: 0 1
NextRunAt

Next eligible run timestamp.

string format: date-time
nullable
LastRunAt

Last enqueue or execution activity timestamp.

string format: date-time
nullable
LastStatus

Last enqueue, job, or run status.

string
nullable
LastError

Last enqueue, job, or run error summary.

string
nullable
TargetState
integer format: int32
Allowed values: 0 1
TargetError

Target-resolution error for broken schedules.

string
nullable
TargetBrokenAt

Timestamp when target resolution broke.

string format: date-time
nullable
TimeoutSeconds

Maximum duration for one scheduled occurrence.

integer format: int32
RowVersion

Optimistic concurrency token.

string format: uuid
ActiveJob

Retry-control state for a schedule job that is still queued or leased.

object
Id

Queued job identifier.

string
nullable
Status
integer format: int32
Allowed values: 0 1 2 3 4
ModifiedAt

Concurrency token required by the stop-retries command.

string format: date-time
nullable
CurrentAttempt

Current persisted attempt number.

integer format: int32
EffectiveMaxAttempts

Retry limit snapshotted for this job.

integer format: int32
RemainingAttempts

Attempts still permitted by the snapshot.

integer format: int32
RetryDelaySeconds

Delay before another attempt.

integer format: int32
NextRunAt

Next eligible attempt timestamp.

string format: date-time
nullable
WillRetry

Whether the job is currently waiting for or executing an attempt that may retry.

boolean
CanStopRetries

Whether an administrator can stop this retry chain.

boolean
RetryStopState
integer format: int32
Allowed values: 0 1 2
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Status": 0,
"TargetState": 0,
"ActiveJob": {
"Status": 0,
"RetryStopState": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Conflict

Media typeapplication/json
object
Data

Business-function schedule configuration.

object
Id

Schedule identifier.

string
nullable
Name

Schedule name.

string
nullable
BusinessFunctionId

Published global function identifier.

string
nullable
TimeZone

Explicit schedule time zone identifier; null inherits the workspace time zone.

string
nullable
CronExpression

Cron expression.

string
nullable
Args

Optional JSON arguments exposed as ctx.args.

object
Status
integer format: int32
Allowed values: 0 1
NextRunAt

Next eligible run timestamp.

string format: date-time
nullable
LastRunAt

Last enqueue or execution activity timestamp.

string format: date-time
nullable
LastStatus

Last enqueue, job, or run status.

string
nullable
LastError

Last enqueue, job, or run error summary.

string
nullable
TargetState
integer format: int32
Allowed values: 0 1
TargetError

Target-resolution error for broken schedules.

string
nullable
TargetBrokenAt

Timestamp when target resolution broke.

string format: date-time
nullable
TimeoutSeconds

Maximum duration for one scheduled occurrence.

integer format: int32
RowVersion

Optimistic concurrency token.

string format: uuid
ActiveJob

Retry-control state for a schedule job that is still queued or leased.

object
Id

Queued job identifier.

string
nullable
Status
integer format: int32
Allowed values: 0 1 2 3 4
ModifiedAt

Concurrency token required by the stop-retries command.

string format: date-time
nullable
CurrentAttempt

Current persisted attempt number.

integer format: int32
EffectiveMaxAttempts

Retry limit snapshotted for this job.

integer format: int32
RemainingAttempts

Attempts still permitted by the snapshot.

integer format: int32
RetryDelaySeconds

Delay before another attempt.

integer format: int32
NextRunAt

Next eligible attempt timestamp.

string format: date-time
nullable
WillRetry

Whether the job is currently waiting for or executing an attempt that may retry.

boolean
CanStopRetries

Whether an administrator can stop this retry chain.

boolean
RetryStopState
integer format: int32
Allowed values: 0 1 2
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Status": 0,
"TargetState": 0,
"ActiveJob": {
"Status": 0,
"RetryStopState": 0
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}