Skip to content

Atlassian: Validate update workflows

Atlassian workflows.validateUpdateWorkflows: arguments, response, policy and SDK examples.

← Workflows operations · Get started

Operation atlassian.validateupdateworkflows

Provider route: POST /{cloudId}/rest/api/3/workflows/update/validation. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["workflows"]["validateUpdateWorkflows"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.workflows.validateUpdateWorkflows(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.workflows.validate_update_workflows(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
bodyModelRequired within parentExpand Validate update workflows — request body — body

Referenced models: Validate update workflows — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Validate create workflows — response body

Referenced models: Validate create workflows — response body

10 more schemas are linked from the tables above, on the schema pages.

Validate create workflows — response body
FieldTypePresenceDescription and constraints
$objectRoot
errorsJSONOptional
errors (anyOf 1)arrayAlternativeThe list of validation errors.
errors (anyOf 1)[]ModelEach itemExpand Validate create workflows — response body — errors The list of validation errors item
errors (anyOf 2)nullAlternative

Referenced models: Validate create workflows — response body — errors The list of validation errors item

Validate update workflows — request body — body
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
payloadModelRequired within parentExpand Bulk update workflows — request body — body
validationOptionsModelOptionalExpand Validate create workflows — request body — body validation Options

Referenced models: Validate create workflows — request body — body validation Options, Bulk update workflows — request body — body

Validate create workflows — response body — errors The list of validation errors item
FieldTypePresenceDescription and constraints
$objectRootThe details about a workflow validation error.
additionalDetailsJSONOptional
additionalDetails (anyOf 1)stringAlternativeAdditional details about the validation error.
additionalDetails (anyOf 2)nullAlternative
codeJSONOptional
code (anyOf 1)stringAlternativeAn error code.
code (anyOf 2)nullAlternative
elementReferenceJSONOptional
elementReference (anyOf 1)ModelAlternativeExpand Validate create workflows — response body — errors The list of validation errors item element Reference property Key, rule Id, status Mapping Reference, status Reference, transition Id
elementReference (anyOf 2)nullAlternative
levelJSONOptional
level (anyOf 1)stringAlternativeThe validation error level.
Known values: WARNING, ERROR
level (anyOf 2)nullAlternative
messageJSONOptional
message (anyOf 1)stringAlternativeAn error message.
message (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe type of element the error or warning references.
Known values: RULE, STATUS, STATUS_LAYOUT, STATUS_PROPERTY, WORKFLOW, TRANSITION, TRANSITION_PROPERTY, SCOPE, STATUS_MAPPING, TRIGGER
type (anyOf 2)nullAlternative

Referenced models: Validate create workflows — response body — errors The list of validation errors item element Reference property Key, rule Id, status Mapping Reference, status Reference, transition Id

Validate create workflows — request body — body validation Options
FieldTypePresenceDescription and constraints
$objectRootThe level of validation to return from the API. If no values are provided, the default would return `WARNING` and `ERROR` level validation results.
Additional keys: not allowed
levelsarrayOptionalMaximum items: 2
levels[]stringEach itemOne of: WARNING, ERROR
Bulk update workflows — request body — body
FieldTypePresenceDescription and constraints
$objectRootThe update workflows payload.
Additional keys: not allowed
statusesarrayOptionalThe statuses to associate with the workflows.
Maximum: 1000
statuses[]ModelEach itemExpand Bulk create workflows — request body — body statuses item
workflowsarrayOptionalThe details of the workflows to update.
Maximum: 20
workflows[]ModelEach itemExpand Bulk update workflows — request body — body workflows item

Referenced models: Bulk create workflows — request body — body statuses item, Bulk update workflows — request body — body workflows item

Validate create workflows — response body — errors The list of validation errors item element Reference property Key, rule Id, status Mapping Reference, status Reference, transition Id
FieldTypePresenceDescription and constraints
$objectRootA reference to the location of the error. This will be null if the error does not refer to a specific element.
propertyKeyJSONOptional
propertyKey (anyOf 1)stringAlternativeA property key.
propertyKey (anyOf 2)nullAlternative
ruleIdJSONOptional
ruleId (anyOf 1)stringAlternativeA rule ID.
ruleId (anyOf 2)nullAlternative
statusMappingReferenceJSONOptional
statusMappingReference (anyOf 1)ModelAlternativeExpand Validate create workflows — response body — errors The list of validation errors item element Reference property Key, rule Id, status Mapping Reference, status Reference, transition Id status Mapping Reference issue Type Id, project Id
statusMappingReference (anyOf 2)nullAlternative
statusReferenceJSONOptional
statusReference (anyOf 1)stringAlternativeA status reference.
statusReference (anyOf 2)nullAlternative
transitionIdJSONOptional
transitionId (anyOf 1)stringAlternativeA transition ID.
transitionId (anyOf 2)nullAlternative

Referenced models: Validate create workflows — response body — errors The list of validation errors item element Reference property Key, rule Id, status Mapping Reference, status Reference, transition Id status Mapping Reference issue Type Id, project Id

Bulk create workflows — request body — body statuses item
FieldTypePresenceDescription and constraints
$objectRootDetails of the status being updated.
Maximum: 1000
Additional keys: allowed
descriptionstringOptionalThe description of the status.
idstringOptionalThe ID of the status. When reusing an existing status, this field should be provided.
namestringRequired within parentThe name of the status.
statusCategorystringRequired within parentThe category of the status.
One of: TODO, IN_PROGRESS, DONE
statusReferencestringRequired within parentThe reference of the status. If adding a new status to a team-managed workflow, this must be a UUID (for company-managed a UUID is not needed).
Validate create workflows — response body — errors The list of validation errors item element Reference property Key, rule Id, status Mapping Reference, status Reference, transition Id status Mapping Reference issue Type Id, project Id
FieldTypePresenceDescription and constraints
$objectRootA project and issueType ID pair that identifies a status mapping.
issueTypeIdJSONOptional
issueTypeId (anyOf 1)stringAlternativeThe ID of the issue type.
issueTypeId (anyOf 2)nullAlternative
projectIdJSONOptional
projectId (anyOf 1)stringAlternativeThe ID of the project.
projectId (anyOf 2)nullAlternative
Update workflow scheme — request body — body version
FieldTypePresenceDescription and constraints
$objectRootThe current version details of this workflow scheme.
Additional keys: not allowed
idstringOptionalThe version UUID.
versionNumberintegerOptionalThe version number.
Format: int64
Bulk create workflows — request body — body workflows item statuses item
FieldTypePresenceDescription and constraints
$objectRootThe statuses associated with this workflow.
Additional keys: allowed
approvalConfigurationModelOptionalExpand Bulk create workflows — request body — body workflows item statuses item approval Configuration
layoutModelOptionalExpand Bulk create workflows — request body — body workflows item start Point Layout
propertiesobjectRequired within parentThe properties for this status layout.
Additional keys: see wildcard field
properties.*stringAdditional keysThe properties for this status layout.
statusReferencestringRequired within parentA unique ID which the status will use to refer to this layout configuration.

Referenced models: Bulk create workflows — request body — body workflows item statuses item approval Configuration, Bulk create workflows — request body — body workflows item start Point Layout

SDK function policy ID: atlassian.validateupdateworkflows. Catalog operation: validateupdateworkflows. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["manage:jira-configuration"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.