Overview
Jobs are background tasks that process project data. Common job types include packaging projects for field use, applying deltas, and processing QGIS project files.List Jobs
/api/v1/jobs/
List all jobs for a specific project.
Query Parameters
The unique identifier of the project
Number of results to return per page
The initial index from which to return the results
Response
Total number of jobs
URL to the next page of results
URL to the previous page of results
Array of job objects
Unique job identifier
Job type:
package, delta_apply, or process_projectfileJob status:
pending, queued, started, stopped, finished, or failedID of the project this job belongs to
Username of the user who created the job
When the job was created
When the job was last updated
When the job started processing
When the job finished
Get Job
/api/v1/jobs/{job_id}/
Retrieve details of a specific job, including detailed output and feedback.
Path Parameters
The unique identifier of the job
Response
Unique job identifier
Job type:
package, delta_apply, or process_projectfileJob status:
pending, queued, started, stopped, finished, or failedID of the project this job belongs to
Username of the user who created the job
When the job was created
When the job was last updated
When the job started processing
When the job finished
Job output messages and logs
Detailed feedback object with job results and errors
Create Job
/api/v1/jobs/
Create a new background job.
Request Body
Job type:
package, delta_apply, or process_projectfileThe unique identifier of the project
Force creating the job even if a similar job is already running. Set to
1 to force. Default: 0Job Types
Package Job
Packages the project for field use in QField. This creates an optimized version of the project data.- Type:
package - Allows parallel jobs: No (unless
force=1) - Requirements: Project must contain a QGIS project file (.qgs or .qgz)
Delta Apply Job
Applies pending deltas (changes) to the project data.- Type:
delta_apply - Allows parallel jobs: Yes
- Requirements: Project must contain a QGIS project file
Process Projectfile Job
Processes and validates the QGIS project file.- Type:
process_projectfile - Allows parallel jobs: Yes
- Requirements: Project must contain a QGIS project file
Response
Returns the created job object. If a similar job is already running andforce=0, returns the existing job instead of creating a new one.
Error Responses
Job Statuses
Jobs progress through the following statuses:- pending: Job is waiting to be queued
- queued: Job is in the queue waiting for a worker
- started: Job is currently being processed
- stopped: Job was stopped before completion
- finished: Job completed successfully
- failed: Job failed with an error
Job Types Reference
Package Job
Packaging jobs prepare the project for offline use in QField:- Validates all layers
- Optimizes data for mobile devices
- Generates layer metadata
- Creates attachment references
Delta Apply Job
Delta apply jobs synchronize field changes:- Applies pending deltas in order
- Detects and handles conflicts
- Updates feature attributes and geometries
- Maintains data integrity
Process Projectfile Job
Projectfile processing jobs:- Parse QGIS project XML
- Validate layer configurations
- Check data source availability
- Extract layer metadata