Skip to main content
curl -X POST https://api.dronebundle.com/v1/projects/01964c6b-7a3e-7f00-8000-abc123def456/jobs/019d4350-a1b2-7c3d-8e4f-567890abcdef/unassign \
  -H "Authorization: Bearer v1_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "pilots": ["03144892-6021-705a-08f2-8e147cff3f28"]
  }'
{
  "message": "Selected pilots unassigned successfully",
  "pilots_removed": ["03144892-6021-705a-08f2-8e147cff3f28"],
  "assignments_removed": 5
}
Requires an API key with full_access scope. Removes pilot assignments from all occurrences of a job.

Path parameters

projectId
string
required
The unique identifier of the project.
jobId
string
required
The unique identifier of the job.

Body

pilots
string[]
required
Array of user IDs to unassign. Must contain at least one pilot ID.

Response

message
string
Confirmation message.
pilots_removed
string[]
IDs of pilots that were unassigned.
assignments_removed
number
Total number of assignment records removed.
curl -X POST https://api.dronebundle.com/v1/projects/01964c6b-7a3e-7f00-8000-abc123def456/jobs/019d4350-a1b2-7c3d-8e4f-567890abcdef/unassign \
  -H "Authorization: Bearer v1_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "pilots": ["03144892-6021-705a-08f2-8e147cff3f28"]
  }'
{
  "message": "Selected pilots unassigned successfully",
  "pilots_removed": ["03144892-6021-705a-08f2-8e147cff3f28"],
  "assignments_removed": 5
}

Errors

400 Bad Request - Invalid request.
{
  "message": "pilots array is required and must contain at least one pilot ID"
}
404 Not Found - Job not found or no assignments exist.
{
  "message": "No pilot assignments found for this job"
}