Manage workflow definitions using REST APIs
A workflow is an end-to-end sequence of Identity Governance actions that approve or reject an access request. A workflow definition is the JSON representation of a workflow. Identity Governance stores and saves workflow definitions in JSON format. You can manage the default workflow definitions for each access request type.
Before you begin, generate an access token as described in Generate an access token. You need this token for every REST call in the following steps.
For an example of a .json file, learn more in Workflow use cases.
|
Steps to manage workflow definitions using REST APIs
Workflow definitions have two states: draft and published. You create
and validate a definition in its draft state, then publish it to make it
the active definition for the access request type.
-
Retrieve the current default workflow definitions for access request types using
/auto/orchestration/definition(GET).The response body contains each workflow definition in JSON format.
Save a copy of the response body as a local .jsonfile so you can restore the access request type’s default workflow definition if your updated file has an error. -
Modify the default workflow definition to suit your needs. For ready-made workflow definitions, learn more in Workflow use cases.
-
Create a new default workflow definition for an access request type in a
draftstate using/auto/orchestration/definition?_action=create(POST). Workflow definition requests have a request body limit.Each access request type can contain only one workflow definition in the
draftstate and one in thepublishedstate. -
Validate the workflow definition before publishing using
/auto/orchestration/definition?_action=validate(POST). -
Publish the workflow definition from its
draftstate using/auto/orchestration/definition?_action=publish(POST).You can’t delete workflow definitions in the publishedstate.
Workflow definition request body limit
When you submit or update a workflow definition using /auto/orchestration/definition (POST), Identity Governance rejects requests
that exceed the request body limit and returns HTTP status code 413 with a request entity too large error message.
The default request body limit is 1 MiB (1,048,576 bytes). Customers can’t change this limit themselves. To request a higher limit for your environment, contact Ping Identity Support.
Learn about workflow APIs in Workflow endpoints.