Skip to content

Workspace API

Delete a View

Delete shared workspace Views with DELETE /workspace/views/{id} and POST /delete/batch.

Endpoints
DELETE https://api.parcelengineering.com/api/v1/workspace/views/{id}
POST https://api.parcelengineering.com/api/v1/workspace/views/delete/batch

Deletes a shared View. Favorites for every member cascade with the View. Static membership rows are removed.

Delete costs 0 credits. Requires workspace:write.

Path parameters (single)

ParameterDescription
idUUID of the View to delete.

Batch body

POST /workspace/views/delete/batch
{ "ids": ["a1b2c3d4-0001-4e8d-bf6a-000000000001", "b2c3d4e5-0002-4e8d-bf6a-000000000002"] }

1–100 UUIDs. Per-item results in input order; one failure never aborts the rest. See Batch Writes.

Example

Delete a View
curl -X DELETE \
https://api.parcelengineering.com/api/v1/workspace/views/a1b2c3d4-0001-4e8d-bf6a-000000000001 \
-H "Authorization: Bearer pcl_your_api_key"

Response

Response
{
"data": { "deleted": true },
"metadata": { "credits": 0 }
}

Unknown or out-of-workspace ids return 404 view_not_found on the single route. Batch items report per-id errors.