Dispatch jobs
Dispatch jobs: 18 operations, tagged dispatch-jobs in the OpenAPI document.
| Method | Path | Summary |
|---|---|---|
GET |
/api/dispatch-jobs |
List dispatch jobs with filters |
POST |
/api/dispatch-jobs |
Create a single dispatch job (SDK) |
POST |
/api/dispatch-jobs/batch |
Ingest a batch of dispatch jobs (SDK) |
GET |
/api/dispatch-jobs/by-event/{eventId} |
Dispatch jobs spawned by an event (SDK alias of /event/{eventId}) |
GET |
/api/dispatch-jobs/event/{eventId} |
Dispatch jobs spawned by a specific event |
GET |
/api/dispatch-jobs/filter-options |
Distinct facet values for dispatch jobs |
GET |
/api/dispatch-jobs/list-raw |
List dispatch jobs (raw) |
GET |
/api/dispatch-jobs/raw |
List dispatch jobs raw (SDK alias of /list-raw) |
POST |
/api/dispatch-jobs/requeue |
Reset dispatch jobs to PENDING for re-dispatch |
POST |
/api/dispatch-jobs/requeue-by-filter |
Reset every dispatch job a filter matches to PENDING (confirmed count, capped) |
POST |
/api/dispatch-jobs/requeue-by-filter/preview |
Count the dispatch jobs a filter matches and how many a requeue would reset |
GET |
/api/dispatch-jobs/{id} |
Get a dispatch job by id |
GET |
/api/dispatch-jobs/{id}/attempts |
List a dispatch job’s attempt history |
POST |
/api/dispatch-jobs/{id}/cancel |
Cancel a PENDING or FAILED dispatch job |
POST |
/api/dispatch-jobs/{id}/complete |
Mark a FAILED dispatch job COMPLETED (delivered out of band) |
PUT |
/api/dispatch-jobs/{id}/payload |
Replace the payload of a PENDING or FAILED dispatch job (status and attempts are unchanged) |
GET |
/api/dispatch-jobs/{id}/raw |
Get a dispatch job (raw) |
POST |
/api/dispatch-jobs/{id}/sign |
Build the job’s delivery (signing account, headers, signature) without sending it |
Operations
Section titled “Operations”GET /api/dispatch-jobs
Section titled “GET /api/dispatch-jobs”List dispatch jobs with filters
Operation ID: listDispatchJobs
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status |
query | string | no | |
clientId |
query | string | no | |
dispatchPoolId |
query | string | no | |
subscriptionId |
query | string | no | |
code |
query | string | no | |
since |
query | string | no | RFC3339 timestamp |
until |
query | string | no | RFC3339 timestamp |
messageGroup |
query | string | no | Exact message group |
clientIds |
query | string | no | CSV of client ids |
statuses |
query | string | no | CSV of statuses |
applications |
query | string | no | CSV of application codes |
subdomains |
query | string | no | CSV of subdomains |
aggregates |
query | string | no | CSV of aggregates |
codes |
query | string | no | CSV of codes |
source |
query | string | no | Free-text source filter |
eventType |
query | string | no | Exact event type. A job’s code is its event type for a job raised by an event (and the caller’s own job code for an SDK or function-dispatched job), so this filters the same column as code, by an index that also orders by createdAt. Combines with eventTypes and codes (all must hold). |
eventTypes |
query | string | no | CSV of event types (at most 10; more is 400 TOO_MANY_EVENT_TYPES) |
subscriptionIds |
query | string | no | CSV of subscription ids (at most 50; more is 400 TOO_MANY_SUBSCRIPTION_IDS). Combines with subscriptionId. |
subscriptionCode |
query | string | no | Subscription code, exact; a trailing * makes it a prefix. Resolved to subscription ids first (400 TOO_MANY_MATCHES past 200); a code that matches nothing lists no jobs. |
subscriptionName |
query | string | no | Subscription name, exact and case-insensitive; a trailing * makes it a prefix. Resolved like subscriptionCode. |
connectionId |
query | string | no | Jobs delivered through this connection: the jobs of its subscriptions and the jobs that name the connection themselves (function dispatch). |
connectionCode |
query | string | no | Connection code, exact; a trailing * makes it a prefix. Resolved to connection ids first (400 TOO_MANY_MATCHES past 50); a code that matches nothing lists no jobs. |
limit |
query | integer (int64) | no | |
offset |
query | integer (int64) | no | |
size |
query | integer (int64) | no | Max rows (default 50, max 1000) |
sort |
query | string | no | createdAt.asc | createdAt.desc (default) |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobRead[] |
default |
Error | application/json ErrorModel |
POST /api/dispatch-jobs
Section titled “POST /api/dispatch-jobs”Create a single dispatch job (SDK)
Requires platform:messaging:batch:dispatch-jobs-write. code, targetUrl, payload and serviceAccountId are required. Responds 201 with the new job id, or, for an idempotencyKey already held in the job’s application and client, the holding job’s id (nothing is created).
Operation ID: createDispatchJob
Request body (required)
| Content type | Schema |
|---|---|
application/json |
CreateDispatchJobRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json DispatchJobCreatedResponse |
default |
Error | application/json ErrorModel |
POST /api/dispatch-jobs/batch
Section titled “POST /api/dispatch-jobs/batch”Ingest a batch of dispatch jobs (SDK)
Requires platform:messaging:batch:dispatch-jobs-write. At most 1000 items; any refused item (unknown kind, bad targetUrl, client or application the credential cannot ingest for, unknown or out-of-scope connectionId, idempotencyKey over 100 characters) rejects the whole batch, and the insert is all-or-nothing. Responds 201 with one result per item, in order, status SUCCESS; an item whose idempotencyKey is already held in its application and client answers the holding job’s id and creates nothing. An empty batch responds 200 with an empty results list.
Operation ID: batchCreateDispatchJobs
Request body (required)
| Content type | Schema |
|---|---|
application/json |
DispatchJobBatchRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json DispatchJobBatchResponse |
default |
Error | application/json ErrorModel |
GET /api/dispatch-jobs/by-event/{eventId}
Section titled “GET /api/dispatch-jobs/by-event/{eventId}”Dispatch jobs spawned by an event (SDK alias of /event/{eventId})
Operation ID: dispatchJobsByEventAlias
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
eventId |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobRead[] |
default |
Error | application/json ErrorModel |
GET /api/dispatch-jobs/event/{eventId}
Section titled “GET /api/dispatch-jobs/event/{eventId}”Dispatch jobs spawned by a specific event
Operation ID: dispatchJobsByEvent
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
eventId |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobRead[] |
default |
Error | application/json ErrorModel |
GET /api/dispatch-jobs/filter-options
Section titled “GET /api/dispatch-jobs/filter-options”Distinct facet values for dispatch jobs
Operation ID: dispatchJobFilterOptions
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
since |
query | string | no | RFC3339; start of the created_at window the values are read from (default: 24 hours before until/now) |
until |
query | string | no | RFC3339; end of the window (default: now) |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobFilterOptionsResponse |
default |
Error | application/json ErrorModel |
GET /api/dispatch-jobs/list-raw
Section titled “GET /api/dispatch-jobs/list-raw”List dispatch jobs (raw)
Operation ID: listDispatchJobsRaw
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status |
query | string | no | |
clientId |
query | string | no | |
dispatchPoolId |
query | string | no | |
subscriptionId |
query | string | no | |
code |
query | string | no | |
since |
query | string | no | RFC3339 timestamp |
until |
query | string | no | RFC3339 timestamp |
messageGroup |
query | string | no | Exact message group |
clientIds |
query | string | no | CSV of client ids |
statuses |
query | string | no | CSV of statuses |
applications |
query | string | no | CSV of application codes |
subdomains |
query | string | no | CSV of subdomains |
aggregates |
query | string | no | CSV of aggregates |
codes |
query | string | no | CSV of codes |
source |
query | string | no | Free-text source filter |
eventType |
query | string | no | Exact event type. A job’s code is its event type for a job raised by an event (and the caller’s own job code for an SDK or function-dispatched job), so this filters the same column as code, by an index that also orders by createdAt. Combines with eventTypes and codes (all must hold). |
eventTypes |
query | string | no | CSV of event types (at most 10; more is 400 TOO_MANY_EVENT_TYPES) |
subscriptionIds |
query | string | no | CSV of subscription ids (at most 50; more is 400 TOO_MANY_SUBSCRIPTION_IDS). Combines with subscriptionId. |
subscriptionCode |
query | string | no | Subscription code, exact; a trailing * makes it a prefix. Resolved to subscription ids first (400 TOO_MANY_MATCHES past 200); a code that matches nothing lists no jobs. |
subscriptionName |
query | string | no | Subscription name, exact and case-insensitive; a trailing * makes it a prefix. Resolved like subscriptionCode. |
connectionId |
query | string | no | Jobs delivered through this connection: the jobs of its subscriptions and the jobs that name the connection themselves (function dispatch). |
connectionCode |
query | string | no | Connection code, exact; a trailing * makes it a prefix. Resolved to connection ids first (400 TOO_MANY_MATCHES past 50); a code that matches nothing lists no jobs. |
limit |
query | integer (int64) | no | |
offset |
query | integer (int64) | no | |
size |
query | integer (int64) | no | Max rows (default 50, max 1000) |
sort |
query | string | no | createdAt.asc | createdAt.desc (default) |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobRead[] |
default |
Error | application/json ErrorModel |
GET /api/dispatch-jobs/raw
Section titled “GET /api/dispatch-jobs/raw”List dispatch jobs raw (SDK alias of /list-raw)
Operation ID: listDispatchJobsRawAlias
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status |
query | string | no | |
clientId |
query | string | no | |
dispatchPoolId |
query | string | no | |
subscriptionId |
query | string | no | |
code |
query | string | no | |
since |
query | string | no | RFC3339 timestamp |
until |
query | string | no | RFC3339 timestamp |
messageGroup |
query | string | no | Exact message group |
clientIds |
query | string | no | CSV of client ids |
statuses |
query | string | no | CSV of statuses |
applications |
query | string | no | CSV of application codes |
subdomains |
query | string | no | CSV of subdomains |
aggregates |
query | string | no | CSV of aggregates |
codes |
query | string | no | CSV of codes |
source |
query | string | no | Free-text source filter |
eventType |
query | string | no | Exact event type. A job’s code is its event type for a job raised by an event (and the caller’s own job code for an SDK or function-dispatched job), so this filters the same column as code, by an index that also orders by createdAt. Combines with eventTypes and codes (all must hold). |
eventTypes |
query | string | no | CSV of event types (at most 10; more is 400 TOO_MANY_EVENT_TYPES) |
subscriptionIds |
query | string | no | CSV of subscription ids (at most 50; more is 400 TOO_MANY_SUBSCRIPTION_IDS). Combines with subscriptionId. |
subscriptionCode |
query | string | no | Subscription code, exact; a trailing * makes it a prefix. Resolved to subscription ids first (400 TOO_MANY_MATCHES past 200); a code that matches nothing lists no jobs. |
subscriptionName |
query | string | no | Subscription name, exact and case-insensitive; a trailing * makes it a prefix. Resolved like subscriptionCode. |
connectionId |
query | string | no | Jobs delivered through this connection: the jobs of its subscriptions and the jobs that name the connection themselves (function dispatch). |
connectionCode |
query | string | no | Connection code, exact; a trailing * makes it a prefix. Resolved to connection ids first (400 TOO_MANY_MATCHES past 50); a code that matches nothing lists no jobs. |
limit |
query | integer (int64) | no | |
offset |
query | integer (int64) | no | |
size |
query | integer (int64) | no | Max rows (default 50, max 1000) |
sort |
query | string | no | createdAt.asc | createdAt.desc (default) |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobRead[] |
default |
Error | application/json ErrorModel |
POST /api/dispatch-jobs/requeue
Section titled “POST /api/dispatch-jobs/requeue”Reset dispatch jobs to PENDING for re-dispatch
Operation ID: requeueDispatchJobs
Request body (required)
| Content type | Schema |
|---|---|
application/json |
RequeueRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RequeueResponse |
default |
Error | application/json ErrorModel |
POST /api/dispatch-jobs/requeue-by-filter
Section titled “POST /api/dispatch-jobs/requeue-by-filter”Reset every dispatch job a filter matches to PENDING (confirmed count, capped)
Operation ID: requeueDispatchJobsByFilter
Request body (required)
| Content type | Schema |
|---|---|
application/json |
RequeueByFilterRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RequeueByFilterResponse |
default |
Error | application/json ErrorModel |
POST /api/dispatch-jobs/requeue-by-filter/preview
Section titled “POST /api/dispatch-jobs/requeue-by-filter/preview”Count the dispatch jobs a filter matches and how many a requeue would reset
Operation ID: previewRequeueDispatchJobsByFilter
Request body (required)
| Content type | Schema |
|---|---|
application/json |
RequeueByFilterPreviewRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RequeueByFilterPreviewResponse |
default |
Error | application/json ErrorModel |
GET /api/dispatch-jobs/{id}
Section titled “GET /api/dispatch-jobs/{id}”Get a dispatch job by id
Operation ID: getDispatchJob
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobResponse |
default |
Error | application/json ErrorModel |
GET /api/dispatch-jobs/{id}/attempts
Section titled “GET /api/dispatch-jobs/{id}/attempts”List a dispatch job’s attempt history
Operation ID: listDispatchJobAttempts
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json AttemptDTO[] |
default |
Error | application/json ErrorModel |
POST /api/dispatch-jobs/{id}/cancel
Section titled “POST /api/dispatch-jobs/{id}/cancel”Cancel a PENDING or FAILED dispatch job
Operation ID: cancelDispatchJob
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobResponse |
default |
Error | application/json ErrorModel |
POST /api/dispatch-jobs/{id}/complete
Section titled “POST /api/dispatch-jobs/{id}/complete”Mark a FAILED dispatch job COMPLETED (delivered out of band)
Operation ID: completeDispatchJob
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobResponse |
default |
Error | application/json ErrorModel |
PUT /api/dispatch-jobs/{id}/payload
Section titled “PUT /api/dispatch-jobs/{id}/payload”Replace the payload of a PENDING or FAILED dispatch job (status and attempts are unchanged)
Operation ID: editDispatchJobPayload
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
EditPayloadRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobResponse |
default |
Error | application/json ErrorModel |
GET /api/dispatch-jobs/{id}/raw
Section titled “GET /api/dispatch-jobs/{id}/raw”Get a dispatch job (raw)
Operation ID: getDispatchJobRaw
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DispatchJobResponse |
default |
Error | application/json ErrorModel |
POST /api/dispatch-jobs/{id}/sign
Section titled “POST /api/dispatch-jobs/{id}/sign”Build the job’s delivery (signing account, headers, signature) without sending it
Operation ID: signDispatchJob
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json DeliveryPlan |
default |
Error | application/json ErrorModel |
Schemas
Section titled “Schemas”AttemptDTO
Section titled “AttemptDTO”| Field | Type | Required | Description |
|---|---|---|---|
attemptNumber |
integer (int32) | yes | |
attemptedAt |
string (date-time) | yes | |
completedAt |
string (date-time) | no | |
durationMillis |
integer (int64) | no | |
errorMessage |
string | no | |
errorType |
string | no | |
request |
RequestSummary |
no | |
responseBody |
string | no | |
responseCode |
integer (int64) | no | |
success |
boolean | yes |
BatchItem
Section titled “BatchItem”| Field | Type | Required | Description |
|---|---|---|---|
clientCode |
string | no | |
clientId |
string | no | |
code |
string | yes | |
connectionCode |
string | no | Connection by code when connectionId is absent: the job’s application’s connection of that code (its client’s, else global), else a shared one (its client’s, else global). 400 CONNECTION_NOT_FOUND when none exists. |
connectionId |
string | no | |
correlationId |
string | no | |
dataOnly |
boolean | no | |
descriptor |
string | no | Max length 255. |
dispatchPoolCode |
string | no | Dispatch pool by code when dispatchPoolId is absent: the job’s client’s pool of that code, else the platform-wide one. 400 DISPATCH_POOL_NOT_FOUND when neither exists. |
dispatchPoolId |
string | no | |
eventId |
string | no | |
expiresAt |
string | no | Not delivered after this instant (RFC 3339); then EXPIRED. Must be after scheduledFor. |
externalId |
string | no | |
id |
string | no | |
idempotencyKey |
string | no | Max length 100. |
kind |
string | no | |
maxRetries |
integer (int32) | no | Minimum 0. |
messageGroup |
string | no | |
metadata |
Metadata[] |
no | |
mode |
string | no | |
payload |
string | no | |
payloadContentType |
string | no | |
queue |
string | no | |
scheduledFor |
string | no | Not delivered before this instant (RFC 3339). |
sequence |
integer (int32) | no | |
serviceAccountId |
string | no | |
source |
string | no | |
subject |
string | no | |
subscriptionId |
string | no | |
targetUrl |
string | yes | |
timeoutSeconds |
integer (int32) | no | Minimum 0. |
CreateDispatchJobRequest
Section titled “CreateDispatchJobRequest”| Field | Type | Required | Description |
|---|---|---|---|
clientCode |
string | no | |
clientId |
string | no | |
code |
string | yes | |
connectionCode |
string | no | Connection by code when connectionId is absent: the job’s application’s connection of that code (its client’s, else global), else a shared one. |
connectionId |
string | no | |
correlationId |
string | no | |
dataOnly |
boolean | no | |
descriptor |
string | no | Max length 255. |
dispatchPoolCode |
string | no | Dispatch pool by code when dispatchPoolId is absent: the job’s client’s pool of that code, else the platform-wide one. |
dispatchPoolId |
string | no | |
eventId |
string | no | |
expiresAt |
string | no | Not delivered after this instant (RFC 3339); then EXPIRED. Must be after scheduledFor. |
externalId |
string | no | |
idempotencyKey |
string | no | |
kind |
string | no | |
maxRetries |
integer (int32) | no | Minimum 0. |
messageGroup |
string | no | |
metadata |
map<string, string> | no | |
mode |
string | no | |
payload |
string | yes | |
payloadContentType |
string | no | |
queue |
string | no | |
retryStrategy |
string | no | |
scheduledFor |
string | no | Not delivered before this instant (RFC 3339). |
sequence |
integer (int32) | no | |
serviceAccountId |
string | yes | |
source |
string | no | |
subject |
string | no | |
subscriptionId |
string | no | |
targetUrl |
string | yes | |
timeoutSeconds |
integer (int32) | no | Minimum 0. |
DeliveryPlan
Section titled “DeliveryPlan”| Field | Type | Required | Description |
|---|---|---|---|
body |
string | yes | |
headers |
map<string, string> | yes | |
request |
RequestSummary |
yes |
DispatchJobBatchRequest
Section titled “DispatchJobBatchRequest”| Field | Type | Required | Description |
|---|---|---|---|
items |
BatchItem[] |
yes |
DispatchJobBatchResponse
Section titled “DispatchJobBatchResponse”| Field | Type | Required | Description |
|---|---|---|---|
results |
DispatchJobBatchResult[] |
yes |
DispatchJobBatchResult
Section titled “DispatchJobBatchResult”| Field | Type | Required | Description |
|---|---|---|---|
error |
string | no | |
id |
string | yes | |
status |
string | yes |
DispatchJobCreatedResponse
Section titled “DispatchJobCreatedResponse”| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes |
DispatchJobFilterOptionsResponse
Section titled “DispatchJobFilterOptionsResponse”| Field | Type | Required | Description |
|---|---|---|---|
clientIds |
string[] | yes | |
codes |
string[] | yes | |
dispatchPoolIds |
string[] | yes | |
eventTypes |
string[] | yes | |
kinds |
string[] | yes | |
statuses |
string[] | yes | |
subscriptionIds |
string[] | yes | |
window |
WindowResponse |
yes |
DispatchJobRead
Section titled “DispatchJobRead”| Field | Type | Required | Description |
|---|---|---|---|
aggregate |
string | no | |
application |
string | no | |
attemptCount |
integer (int32) | yes | Delivery attempts made, the final one included; deferrals (ack=false, 429) are not attempts |
clientId |
string | no | |
clientIdentifier |
string | no | |
code |
string | yes | |
completedAt |
string (date-time) | no | |
correlationId |
string | no | |
createdAt |
string (date-time) | yes | |
descriptor |
string | no | |
dispatchMode |
string | no | |
eventId |
string | no | |
id |
string | yes | |
kind |
string | yes | |
lastAttemptAt |
string (date-time) | no | |
messageGroup |
string | no | |
metadata |
MetadataDTO[] |
no | |
mode |
string | yes | |
priority |
integer (int32) | no | |
scheduledFor |
string (date-time) | no | |
serviceAccountId |
string | no | |
source |
string | no | |
status |
string | yes | |
subdomain |
string | no | |
subject |
string | no | |
subscriptionId |
string | no | |
targetUrl |
string | yes | |
updatedAt |
string (date-time) | yes |
DispatchJobResponse
Section titled “DispatchJobResponse”| Field | Type | Required | Description |
|---|---|---|---|
attemptCount |
integer (int32) | yes | Delivery attempts made, the final one included; deferrals (ack=false, 429) are not attempts |
attempts |
AttemptDTO[] |
no | |
clientId |
string | no | |
code |
string | yes | |
completedAt |
string (date-time) | no | |
correlationId |
string | no | |
createdAt |
string (date-time) | yes | |
dataOnly |
boolean | yes | |
descriptor |
string | no | |
dispatchPoolId |
string | no | |
durationMillis |
integer (int64) | no | |
eventId |
string | no | |
expiresAt |
string (date-time) | no | |
externalId |
string | no | |
id |
string | yes | |
idempotencyKey |
string | no | |
kind |
string | yes | |
lastAttemptAt |
string (date-time) | no | |
lastError |
string | no | |
maxRetries |
integer (int32) | yes | Minimum 0. |
messageGroup |
string | no | |
metadata |
MetadataDTO[] |
no | |
mode |
string | yes | |
payload |
string | no | |
payloadContentType |
string | yes | |
payloadUnavailable |
boolean | no | True when the job’s payload could not be read from the payload store for this response (the store failed, or the payload is missing); payload is then absent. Absent otherwise. |
protocol |
string | yes | |
retryStrategy |
string | yes | |
scheduledFor |
string (date-time) | no | |
schemaId |
string | no | |
sequence |
integer (int32) | yes | |
serviceAccountId |
string | no | |
source |
string | no | |
status |
string | yes | |
subject |
string | no | |
subscriptionId |
string | no | |
targetUrl |
string | yes | |
timeoutSeconds |
integer (int32) | yes | Minimum 0. |
updatedAt |
string (date-time) | yes |
EditPayloadRequest
Section titled “EditPayloadRequest”| Field | Type | Required | Description |
|---|---|---|---|
payload |
string | yes | The new payload text (UTF-8; at most the largest payload the deployment accepts: FC_PAYLOAD_MAX_BYTES while payloads are offloaded (a payload store with FC_PAYLOAD_TABLE_WRITES on), else FC_PAYLOAD_INLINE_MAX_BYTES (1 MiB by default), refused 400 PAYLOAD_TOO_LARGE; valid JSON when the content type is JSON) Min length 1. |
payloadContentType |
string | no | New media type; omit to keep the job’s |
Metadata
Section titled “Metadata”| Field | Type | Required | Description |
|---|---|---|---|
key |
string | yes | |
value |
string | yes |
MetadataDTO
Section titled “MetadataDTO”| Field | Type | Required | Description |
|---|---|---|---|
key |
string | yes | |
value |
string | yes |
RequestSummary
Section titled “RequestSummary”| Field | Type | Required | Description |
|---|---|---|---|
bearer |
boolean | yes | |
headers |
string[] | no | |
signature |
boolean | yes | |
signedBy |
string | no | |
target |
string | no | |
timestamp |
string | no | |
unsignedReason |
string | no |
RequeueByFilterPreviewRequest
Section titled “RequeueByFilterPreviewRequest”| Field | Type | Required | Description |
|---|---|---|---|
aggregates |
string | no | CSV of aggregates |
applications |
string | no | CSV of application codes |
clientId |
string | no | |
clientIds |
string | no | CSV of client ids |
code |
string | no | |
codes |
string | no | CSV of codes |
connectionCode |
string | no | Connection code, exact; a trailing * makes it a prefix. Resolved to connection ids first (400 TOO_MANY_MATCHES past 50); a code that matches nothing lists no jobs. |
connectionId |
string | no | Jobs delivered through this connection: the jobs of its subscriptions and the jobs that name the connection themselves (function dispatch). |
dispatchPoolId |
string | no | |
eventType |
string | no | Exact event type. A job’s code is its event type for a job raised by an event (and the caller’s own job code for an SDK or function-dispatched job), so this filters the same column as code, by an index that also orders by createdAt. Combines with eventTypes and codes (all must hold). |
eventTypes |
string | no | CSV of event types (at most 10; more is 400 TOO_MANY_EVENT_TYPES) |
messageGroup |
string | no | Exact message group |
since |
string | no | RFC3339 timestamp |
source |
string | no | Free-text source filter |
status |
string | no | |
statuses |
string | no | CSV of statuses |
subdomains |
string | no | CSV of subdomains |
subscriptionCode |
string | no | Subscription code, exact; a trailing * makes it a prefix. Resolved to subscription ids first (400 TOO_MANY_MATCHES past 200); a code that matches nothing lists no jobs. |
subscriptionId |
string | no | |
subscriptionIds |
string | no | CSV of subscription ids (at most 50; more is 400 TOO_MANY_SUBSCRIPTION_IDS). Combines with subscriptionId. |
subscriptionName |
string | no | Subscription name, exact and case-insensitive; a trailing * makes it a prefix. Resolved like subscriptionCode. |
until |
string | no | RFC3339 timestamp |
RequeueByFilterPreviewResponse
Section titled “RequeueByFilterPreviewResponse”| Field | Type | Required | Description |
|---|---|---|---|
byStatus |
map<string, integer (int64)> | yes | count broken down by status |
completedCount |
integer (int64) | yes | COMPLETED jobs the filter matches that the caller can see. A requeue skips them; they are redriven only with redriveCompleted and confirmRedriveCompleted |
count |
integer (int64) | yes | Jobs the filter matches in the window that the caller can see |
eligibleCount |
integer (int64) | yes | How many of them a requeue would reset for this caller (not COMPLETED, not in flight); send it back as confirmCount |
inFlightCount |
integer (int64) | yes | QUEUED or PROCESSING jobs the filter matches; a requeue never resets them |
redriveEligibleCount |
integer (int64) | yes | eligibleCount + completedCount: the confirmCount of a request that also redrives COMPLETED jobs |
window |
WindowResponse |
yes | The created_at window the counts cover |
RequeueByFilterRequest
Section titled “RequeueByFilterRequest”| Field | Type | Required | Description |
|---|---|---|---|
aggregates |
string | no | CSV of aggregates |
applications |
string | no | CSV of application codes |
clientId |
string | no | |
clientIds |
string | no | CSV of client ids |
code |
string | no | |
codes |
string | no | CSV of codes |
confirmCount |
integer (int64) | yes | The eligibleCount the caller was shown (redriveEligibleCount when redriveCompleted). If more jobs would be reset now, nothing is reset and the response is 409 FILTER_MATCH_CHANGED. Minimum 0. |
confirmRedriveCompleted |
string | no | The literal REDRIVE, confirming redriveCompleted. |
connectionCode |
string | no | Connection code, exact; a trailing * makes it a prefix. Resolved to connection ids first (400 TOO_MANY_MATCHES past 50); a code that matches nothing lists no jobs. |
connectionId |
string | no | Jobs delivered through this connection: the jobs of its subscriptions and the jobs that name the connection themselves (function dispatch). |
dispatchPoolId |
string | no | |
eventType |
string | no | Exact event type. A job’s code is its event type for a job raised by an event (and the caller’s own job code for an SDK or function-dispatched job), so this filters the same column as code, by an index that also orders by createdAt. Combines with eventTypes and codes (all must hold). |
eventTypes |
string | no | CSV of event types (at most 10; more is 400 TOO_MANY_EVENT_TYPES) |
limit |
integer (int64) | no | Most jobs to reset in this request (default and maximum 10000) Minimum 0. Maximum 10000. |
messageGroup |
string | no | Exact message group |
redriveCompleted |
boolean | no | Also re-deliver the COMPLETED jobs the filter matches. Needs confirmRedriveCompleted=REDRIVE and the dispatch-job:redrive-completed permission (403 without it). Without both fields COMPLETED jobs are skipped and counted in skippedCompleted. |
since |
string | no | RFC3339 timestamp |
source |
string | no | Free-text source filter |
status |
string | no | |
statuses |
string | no | CSV of statuses |
subdomains |
string | no | CSV of subdomains |
subscriptionCode |
string | no | Subscription code, exact; a trailing * makes it a prefix. Resolved to subscription ids first (400 TOO_MANY_MATCHES past 200); a code that matches nothing lists no jobs. |
subscriptionId |
string | no | |
subscriptionIds |
string | no | CSV of subscription ids (at most 50; more is 400 TOO_MANY_SUBSCRIPTION_IDS). Combines with subscriptionId. |
subscriptionName |
string | no | Subscription name, exact and case-insensitive; a trailing * makes it a prefix. Resolved like subscriptionCode. |
until |
string | no | RFC3339 timestamp |
RequeueByFilterResponse
Section titled “RequeueByFilterResponse”| Field | Type | Required | Description |
|---|---|---|---|
redriven |
integer (int64) | yes | How many of them were COMPLETED jobs re-delivered |
remaining |
integer (int64) | yes | Eligible jobs still matching after the run; run again to continue |
requeued |
integer (int64) | yes | Jobs reset to PENDING (redriven COMPLETED jobs included) |
skippedCompleted |
integer (int64) | yes | COMPLETED matches left alone because the redrive was not requested and confirmed |
skippedInFlight |
integer (int64) | yes | QUEUED or PROCESSING matches left alone (never reset) |
truncated |
boolean | yes | The run stopped at its limit (or at confirmCount) with eligible jobs left |
window |
WindowResponse |
yes | The created_at window the run was held to |
RequeueRequest
Section titled “RequeueRequest”| Field | Type | Required | Description |
|---|---|---|---|
confirmRedriveCompleted |
string | no | The literal REDRIVE, confirming redriveCompleted. Without both fields, COMPLETED jobs are skipped. |
ids |
string[] | yes | Dispatch job ids to reset to PENDING for re-dispatch. QUEUED and PROCESSING jobs are never reset; COMPLETED jobs only with redriveCompleted and confirmRedriveCompleted. Skipped jobs are reported, not an error. |
redriveCompleted |
boolean | no | Also re-deliver COMPLETED jobs. Needs confirmRedriveCompleted=REDRIVE and the dispatch-job:redrive-completed permission (403 without it). |
RequeueResponse
Section titled “RequeueResponse”| Field | Type | Required | Description |
|---|---|---|---|
redriven |
integer (int64) | yes | How many of them were COMPLETED jobs re-delivered (0 unless the request redrove) |
requeued |
integer (int64) | yes | Jobs reset to PENDING (redriven COMPLETED jobs included) |
skipped |
SkippedJobResponse[] |
yes | The skipped jobs, with the reason |
skippedCompleted |
integer (int64) | yes | COMPLETED jobs left alone because the redrive was not requested and confirmed |
skippedInFlight |
integer (int64) | yes | QUEUED or PROCESSING jobs left alone |
SkippedJobResponse
Section titled “SkippedJobResponse”| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes | |
reason |
string | yes | IN_FLIGHT: QUEUED or PROCESSING, never reset. COMPLETED_REDRIVE_NOT_CONFIRMED: completed jobs are redriven only with redriveCompleted and confirmRedriveCompleted. One of: IN_FLIGHT, COMPLETED_REDRIVE_NOT_CONFIRMED. |
status |
string | yes |
WindowResponse
Section titled “WindowResponse”| Field | Type | Required | Description |
|---|---|---|---|
defaulted |
boolean | yes | true when the server supplied a bound the request did not (no since/until: the last 24 hours) |
from |
string (date-time) | yes | Start of the window (inclusive) |
to |
string (date-time) | yes | End of the window; now when the request gave no until |