Perform an action on a test environment job

Use this operation to perform a specified action on a Test Environment job. It handles HTTP POST requests to the /test-environments/{id}/jobs/{jobId}/actions endpoint, accepting a JobActionRequest object in the request body. Upon successful execution, it returns a JobResponse object reflecting the updated job state.

User Access Permission

You must be assigned the Refresh Central Sandbox permission to run this operation.

SecuritybearerAuth
Request
path Parameters
id
required
string

Test Environment ID

jobId
required
string

Test Environment Job ID

header Parameters
Zuora-Entity-Ids
string

An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.

Zuora-Track-Id
string <= 64 characters

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

Accept-Encoding
string

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encoding
string

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Request Body schema: application/json
required

jobActionRequest

jobAction
required
string

The action to perform against the workflow job

Value: "CANCEL"
Responses
200

Successfully submitted Test Environment job action

400

Bad request

404

The resource you were trying to reach is not found

500

Internal Error

post/test-environments/{id}/jobs/{jobId}/actions
Request samples
application/json
{
  • "jobAction": "CANCEL"
}
Response samples
application/json
{
  • "createTime": "2019-08-24T14:15:22Z",
  • "createdById": "58f182ab203c447b8b9cd90382da030a",
  • "estimatedCompletionTime": "2019-08-24T14:15:22Z",
  • "id": "11111111-1111-1111-1111-111111111111",
  • "jobEndTime": "2019-08-24T14:15:22Z",
  • "jobStartTime": "2019-08-24T14:15:22Z",
  • "jobType": "REFRESH",
  • "progressPercentage": 0,
  • "scheduledRefreshTime": "2019-08-24T14:15:22Z",
  • "status": "QUEUED",
  • "testEnvironmentId": "11111111-1111-1111-1111-111111111111",
  • "updateTime": "2019-08-24T14:15:22Z",
  • "updatedById": "58f182ab203c447b8b9cd90382da030a"
}