Cancel Executing Job

February 23, 2026

Table of contents

  1. Request Headers
  2. Path Parameters
  3. Responses
  4. Examples
  5. Try It

Remove a job from the executing tracker and cancel it. If the job is still in created status, it will be marked as failed with the reason “Cancelled by user”.

https://api.useapi.net/v1/dreamina/scheduler/jobid

Request Headers

Authorization: Bearer {API token}

Path Parameters

  • jobid is required. The job ID to remove from the scheduler.

Responses

Examples

  • curl -X DELETE \
         -H "Authorization: Bearer YOUR_API_TOKEN" \
         "https://api.useapi.net/v1/dreamina/scheduler/j0223140530123456789v-u12345-US:[email protected]:dreamina"
    
  • const token = 'YOUR_API_TOKEN';
    const jobid = 'j0223140530123456789v-u12345-US:[email protected]:dreamina';
    
    const response = await fetch(
      `https://api.useapi.net/v1/dreamina/scheduler/${jobid}`,
      {
        method: 'DELETE',
        headers: {
          'Authorization': `Bearer ${token}`
        }
      }
    );
    
    const result = await response.json();
    console.log('Cancel result:', result);
    
  • import requests
    
    token = 'YOUR_API_TOKEN'
    jobid = 'j0223140530123456789v-u12345-US:[email protected]:dreamina'
    
    headers = {'Authorization': f'Bearer {token}'}
    
    response = requests.delete(
        f'https://api.useapi.net/v1/dreamina/scheduler/{jobid}',
        headers=headers
    )
    
    print('Cancel result:', response.json())
    

Try It