Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
DataArts Fabric
IoT
IoT Device Access
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
Huawei Cloud Astro Canvas
Huawei Cloud Astro Zero
CodeArts Governance
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance (CCI)
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Cloud Transformation
Well-Architected Framework
Cloud Adoption Framework
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Updating a Flow Instance

Updated on 2025-03-21 GMT+08:00

Function

This API is used to update a flow instance.

URI

PUT Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/Flow/{flow_id}

Table 1 URI parameter

Parameter

Mandatory

Type

Description

Flow_id

Yes

String

Explanation

Flow instance ID, which can be queried by calling the API of Querying Flow Instances (id in the response message)

Constraints

None

Value

None

Default value

None

Request Parameters

Table 2 Request parameters

Parameter

Mandatory

Type

Description

label

Yes

String

Explanation

The flow label.

Constraints

None

Value

1–64 characters

Default value

None

processType

Yes

String

Explanation

Type of the Flow instance. The options are as follows:

Constraints

None

Value

  • Autolaunched Flow: a flow instance that is automatically started. After the API is called, the logic defined in the Flow model is immediately executed.
  • Event Trigger: A flow that is triggered by an event. The logic defined in the flow model is executed only when the event is triggered. If this type is selected, you must configure events and condition rules.

Default value

Autolaunched Flow

startElement

No

String

Explanation

Start element of the Flow instance.

Constraints

None

Value

None

Default value

None

interviewLabel

No

String

Explanation

Flow instance label.

Constraints

None

Value

None

Default value

None

localUrl

No

String

Explanation

Local URL of the flow.

Constraints

None

Value

None

Default value

None

event

No

String

Explanation

Flow event.

Constraints

This parameter is mandatory when processType is set to Event Trigger.

Value

None

Default value

None

variables

No

Array

Explanation

Variables bound to the flow instance.

Constraints

This parameter is valid only when processType is set to Event Trigger.

formulas

No

Array of object

Explanation

Formula defined in the flow.

Constraints

None

choices

No

Array of object

Explanation

Chosen flow choice.

Constraints

None

structs

No

Array of object

Explanation

Structure defined in the flow.

Constraints

None

constants

No

Array of object

Explanation

Constant.

Constraints

None

structVariables

No

Array of object

Explanation

Structure variables.

Constraints

None

objectVariables

No

Array of object

Explanation

Object variables.

Constraints

None

screens

No

Array of object

Explanation

Screens for displaying the input flow parameter.

Constraints

None

compilerVersion

No

String

Explanation

Final version.

Constraints

None

Value

None

Default value

None

catalogue

No

String

Explanation

Flow category.

Constraints

None

Value

None

Default value

None

private

No

String

Explanation

Whether the flow instance is private. Private flow instances cannot be called using REST APIs or custom APIs (public APIs).

Constraints

None

Value

  • true: private.
  • false: public.

Default value

None

Response Parameters

Table 3 describes the response parameters.

Table 3 Response parameters

Parameter

Type

Description

resCode

String

Explanation

Return code.

Value

If the request is successful, 0 is returned. For details about other error codes, see Error Codes.

resMsg

String

Explanation

Message returned.

Value

If the request is successful, Success is returned. In other cases, an error message is returned.

result

Object

Explanation

Error and warning information of the flow instance returned.

Example Request

Modify a flow instance.

PUT https://Huawei Cloud Astro Zero domain name/u-route/baas/metadata/v1.0/Flow/000y000000aM8XixTN0S
{
    "label": "updated label",
    "processType": "Autolaunched Flow"
}

Example Response

{
    "resCode": "XXX",
    "resMsg": "Failure",
    "result": {
        "errors": [
            "string"
        ],
        "warnings": [
            "string"
        ]
    }
}

Status Code

See Status Codes.

Error Code

See Error Codes.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback