Skip to content

Atlassian: Validate create workflows

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

← Workflows operations · Get started

Operation atlassian.validatecreateworkflows

Provider route: POST /{cloudId}/rest/api/3/workflows/create/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"]["validateCreateWorkflows"]>[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.validateCreateWorkflows(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_create_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 create workflows — request body — body

Referenced models: Validate create 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 create workflows — request body — body
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
payloadModelRequired within parentExpand Bulk create workflows — request body — body
validationOptionsModelOptionalExpand Validate create workflows — request body — body validation Options

Referenced models: Validate create workflows — request body — body validation Options, Bulk create 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 create workflows — request body — body
FieldTypePresenceDescription and constraints
$objectRootThe create workflows payload.
Additional keys: not allowed
scopeModelOptionalExpand Bulk create workflows — request body — body scope
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 create.
Maximum: 20
workflows[]ModelEach itemExpand Bulk create workflows — request body — body workflows item

Referenced models: Bulk create workflows — request body — body workflows item, Bulk create workflows — request body — body scope, Bulk create workflows — request body — body statuses 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 workflows item
FieldTypePresenceDescription and constraints
$objectRootThe details of the workflows to create.
Maximum: 20
Additional keys: not allowed
descriptionstringOptionalThe description of the workflow to create.
loopedTransitionContainerLayoutModelOptionalExpand Bulk create workflows — request body — body workflows item start Point Layout
namestringRequired within parentThe name of the workflow to create.
startPointLayoutModelOptionalExpand Bulk create workflows — request body — body workflows item start Point Layout
statusesarrayRequired within parentThe statuses associated with this workflow.
statuses[]ModelEach itemExpand Bulk create workflows — request body — body workflows item statuses item
transitionsarrayRequired within parentThe transitions of this workflow.
transitions[]ModelEach itemExpand Bulk create workflows — request body — body workflows item transitions item

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

Bulk create workflows — request body — body scope
FieldTypePresenceDescription and constraints
$objectRootThe scope of the workflow.
Additional keys: not allowed
projectModelOptionalExpand Bulk create statuses — request body — body scope project
typestringOptionalThe scope of the workflow. `GLOBAL` for company-managed projects and `PROJECT` for team-managed projects.
One of: PROJECT, GLOBAL

Referenced models: Bulk create statuses — request body — body scope project

Bulk create statuses — request body — body scope project
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)objectAlternativeProject ID details.
Additional keys: not allowed
$ (anyOf 1).idstringRequired within parentThe ID of the project.
$ (anyOf 2)nullAlternative

SDK function policy ID: atlassian.validatecreateworkflows. Catalog operation: validatecreateworkflows. 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.