workflowEngine

Replace a task mock

Replaces an existing task mock with the provided details.

put/workflow_engine/mocks/tasks/{mockId}

Request

  • Base URL: https://example.itential.io
  • URL: https://example.itential.io/workflow_engine/mocks/tasks/{mockId}
  • Auth: none declared

Path parameters

mockIdstring required

The unique identifier of the task mock to replace

Request body

namestring required

The name of the mock task

descriptionstring

A description of the mock task

serviceType'Application' | 'Adapter' required

Whether or not the mock is for an adapter or application service

serviceNamestring required

The adapter or application service name that contains the method to mock

methodstring required

The name of the method that is being mocked

finishState'success' | 'failure' | 'error' required

The finish state of the mock

delayinteger

The number of seconds to delay the completion of the mock

Response

The updated task mock object

_idstring uuid required

The unique identifier for the mock task

namestring required

The name of the mock task

descriptionstring required

A description of the mock task

serviceType'Application' | 'Adapter' required

Whether or not the mock is for an adapter or application service

serviceNamestring required

The adapter or application service name that contains the method to mock

methodstring required

The name of the method that is being mocked

finishState'success' | 'failure' | 'error' required

The finish state of the mock

delayinteger required

The number of seconds to delay the completion of the mock

createdstring date-time required

The date and time when the mock was created

createdBystring required

The id of user who created the mock task

lastUpdatedstring date-time

The date and time when the mock was last updated

lastUpdatedBystring

The id of user who last updated the mock task

Changes

No recorded changes to this operation across all 1 revision of this API.