Workflows (Individual)


Update workflow status

POST https://apis.wso2.com/api/am/publisher/v0.13/workflows/update-workflow-status

This operation can be used to approve or reject a workflow task.

OAuth 2.0 Scope

apim:api_workflowi

Request

POST https://localhost:9443/api/am/publisher/v0.13/workflows/update-workflow-status?workflowReferenceId=56e3a170-a7a7-45f8-b051-7e43a58a67e1 Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8 Content-Type: application/json { "status" : "APPROVED", "attributes" : { "apiCurrentState": "Created", "apiLCAction": "Publish", "apiName":"APIname", "apiVersion" : "1.0.0", "apiProvider" : "admin", "invoker": "admin" } }

Response

HTTP/1.1 200 OK

Sample CURL

curl -k -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" -H "Content-Type: application/json" -X POST -d @data.json "https://localhost:9443/api/am/publisher/v0.13/workflows/update-workflow-status?workflowReferenceId=56e3a170-a7a7-45f8-b051-7e43a58a67e1"

Parameters

Type Name Description Schema Default
Query

workflowReferenceId

required

Workflow reference id

String

Body

body

required

Workflow event that need to be updated

Workflow (Workflow)

Responses

HTTP Code Description Schema

200

OK. Workflow request information is returned.

Workflow

400

Bad Request. Invalid request or validation error.

Error

404

Not Found. Workflow for the given reference in not found.

Error