Table of Contents

Terminate Project

Back to JEA API docs


Use the Terminate Project command to manually terminate the exploration process of an existing project. A valid JWT token must be included in the header, otherwise, the transaction will be rejected with an HTTP 401 Unauthorized error code. The result of the operation will be reported in an Engine Response object.

Synopsis

Engine Response

Result of the operation is returned as an engine response object as seen in the example here:

{
  "description": "Termination flag set for project circle. The engine will wait for the last generation to complete before stopping.",
  "ok": true
}

If the project is not accessible, the response may be:

{
  "description": "Project \"circle\" does not exist or not accessible to user \"yi@jeplus.org\".",
  "ok": false
}

Example using curl://

To send the Terminate Project command using curl:

curl -b cookies  https://api.ensims.com/jea_web/api/terminate/circle

On successful operation, an engine response object is returned. If the existing JWT is invalid, an HTTP 401 Unauthorized code will be returned.

Example using Python Requests

Make sure Requests is correctly installed in your Python environment, and run the following the lines:

import requests

# Terminate 'circle' project 

# Make a request with the stored cookies from the log on transaction
r = requests.get('https://api.ensims.com/jea_web/api/terminate/circle', cookies=cookies)
  
r.json()