Modifying the Instance Metadata of a Specified Flow
Function
This API is used to modify the instance metadata of a specified flow.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
PUT /v1/{project_id}/ffs/graphs/{workflow_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition Project ID. For details, see Obtaining a Project ID. Constraints N/A. Range The value contains 32 characters. Only letters and digits are allowed. Default Value N/A. |
| workflow_id | Yes | String | Definition Flow ID. Constraints N/A. Range 1 to 512 characters Default Value N/A. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | No | String | Flow instance ID. |
| name | No | String | Name. |
| description | No | String | Description. |
| nodes | No | Array of GraphNode objects | nodes |
| edges | No | Array of GraphEdge objects | edges |
| constants | No | String | constants |
| label | No | String | label |
| enterprise_project_id | No | String | enterprise_project_id |
| merge_params | No | Boolean | merge_params |
| mode | No | String | mode |
| enable_stream_response | No | Boolean | Whether to return stream data. |
| express_config | No | ExpressConfig object | Definition Express flow configuration items of FunctionGraph. Constraints Express flow configuration. This parameter is required when mode is set to EXPRESS. Range N/A. Default Value N/A. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | No | String | ID |
| name | No | String | Name. |
| category | No | String | Category. |
| description | No | String | Description. |
| parent_node | No | String | parent_node |
| shape | No | Shape object | shape |
| position_x | No | Integer | position_x |
| position_y | No | Integer | position_y |
| execution_id | No | String | Execution ID. |
| incoming_edges | No | Array of strings | incoming_edges |
| outgoing_edges | No | Array of strings | outgoing_edges |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| id | No | String | id |
| from | No | String | from |
| to | No | String | to |
| label | No | String | label |
| shape | No | Shape object | shape |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition Flow ID. Range N/A. |
| workflow_urn | String | Definition Flow URN. The format is as follows: urn:fss:<region_id>:<project_id>:workflow:<package>:<workflow_name>:<version> Notes: Currently, only default is supported for package. Currently, only latest is supported for version. Range N/A. |
| name | String | Definition Flow name. Range N/A. |
| description | String | Definition Flow description. Range N/A. |
| created_time | String | Definition Flow creation time. Range Format: yyyy-MM-ddTHH:mm:ssZ (UTC time) |
| updated_time | String | Definition Flow modification time. Range Format: yyyy-MM-ddTHH:mm:ssZ (UTC time) |
| created_by | String | Definition Flow creator Range N/A. |
| enable_stream_response | Boolean | Definition Whether the flow supports streaming response. Range N/A. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
| request_id | String | Request ID. |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_msg | String | Error description. |
| request_id | String | Request ID. |
Example Requests
None
Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request |
| 500 | Internal Server Error |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot