PUT Workflow Definitions Definition ID

The PUT /WorkflowClosed A workflow is a series of steps necessary to complete a process. In the context of Keyfactor Command, it refers to the workflow builder, which allows you automate event-driven tasks when a certificate is requested or revoked./Definitions/{definitionid} method is used to update the name and description for the workflow definition with the specified GUID. This method returns HTTP 200 OK on a success with details about the updated workflow definition.

Tip:  The following permissions (see Security Overview) are required to use this feature:

WorkflowDefinitions: Modify

Note:  Only one workflow definition can be created for each combination of Workflow Type and Key (Template). In other words, you cannot have two enrollmentClosed Certificate enrollment refers to the process by which a user requests a digital certificate. The user must submit the request to a certificate authority (CA). or revocation workflow definitions for the same templateClosed A certificate template defines the policies and rules that a CA uses when a request for a certificate is received., though you can have one enrollment workflow definition and one revocation workflow definition for a given template.
Note:  If you edit an existing published workflow definition, a new version of the workflow definition will be created. If you edit an existing workflow definition which has never been published, the existing configuration will be overwritten with the changes you've made—a new version will not be created.
Warning:  Any previously populated fields that are not submitted with their full existing data using this method will be cleared of their existing data. When using this method, you should first do a GET to retrieve all the values for the record you want to update, enter corrected data into the field(s) you want to update, and then submit all the fields using PUT, including the fields that contain values but which you are not changing.

Table 642: PUT Workflow Definitions {definitionid} Input Parameters

Name

In

Description
definitionId Path Required. A string indicating the Keyfactor Command reference GUID of the workflow definition.
DisplayName Body Required. A string indicating the display name defined for the workflow definition.
Description Body A string indicating the description for the workflow definition.

Table 643: PUT Workflow Definitions {definitionid} Response Body

Name Description
Id A string indicating the Keyfactor Command reference GUID of the workflow definition.
DisplayName A string indicating the display name defined for the workflow definition.
Description A string indicating the description for the workflow definition.
Key

A string indicating the reference key for the workflow definition. The type of information contained in this field will vary depending on the WorkflowType. If the WorkflowType is Enrollment or Revocation, this field will contain the Keyfactor Command reference ID for the certificate template.

KeyDisplayName A string indicating the friendly name defined in Keyfactor Command for the certificate template.
IsPublished A Boolean indicating whether the workflow definition has been published (true) or not (false). A workflow definition must be published to activate it. For a newly created workflow, this will be false.
WorkflowType

A string indicating the type of workflow definition. The currently supported types are:

  • Enrollment
  • Revocation
Steps

An array of objects indicating the steps in the workflow definition. The contents of each step will vary depending on the type of workflow and the type of step. For a newly created workflow, there will be no data in this value. ClosedShow step details.

DraftVersion An integer indicating the version number of the workflow definition. If this version number does not match the PublishedVersion, changes have been made to the workflow definition that have not yet been published.
PublishedVersion An integer indicating the currently published version number of the workflow definition. For a newly created workflow, this value will be null.
Tip:  For code examples, see the Keyfactor API Endpoint Utility. To find the embedded web copy of this utility, click the help icon () at the top of the Keyfactor Command Management Portal page next to the Log Out button.