Table of Contents

Search

  1. Preface
  2. Informatica Intelligent Cloud Services REST API
  3. Platform REST API version 2 resources
  4. Platform REST API version 3 resources
  5. Data Integration REST API
  6. Mass Ingestion Files REST API
  7. Mass Ingestion Streaming REST API
  8. RunAJob utility
  9. ParamSetCli utility
  10. REST API codes
  11. REST API resource quick references

REST API Reference

REST API Reference

Cancel a code task

Cancel a
code task

Use this PUT request to cancel the
code task
job.

PUT request

To cancel a
code task
job, use the
code task
job ID. The
code task
job ID is included in the response when you start a
code task
. For more information, see Start.
Use the following URI to cancel a
code task
job:
PUT <server URL>/disnext/api/v1/CodeTask/Cancel
Use the following field in the PUT request:
Field
Type
Required / Optional
Description
jobId
String
Required
The
code task
job ID from the start resource.

PUT response

Returns the
code task
cancellation state for the requested job ID.
Returns the error object if errors occurred.

PUT request example

Use this sample as a reference to cancel a
code task
job.
PUT <server URL>/disnext/api/v1/CodeTask/Cancel Content-Type: application/json Accept: application/json IDS-SESSION-ID:{{IDS_SESSION_ID}} { "jobId" : {{CODE_TASK_JOB_ID}} }

PUT response example

A successful PUT response returns the
code task
job cancellation information, similar to the following example:
{ "state": "Code Task marked for cancellation.", "jobId": "6pqqt9KTgi3l9jyVnAajei" }

0 COMMENTS

We’d like to hear from you!