Appearance
Delete Vector API
API Information
- Request Path:
/analysis/task/deleted/vector - Request Method:
POST - Content-Type:
application/json
Request Headers
| Parameter | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | User authentication token |
| Content-Type | String | Yes | Must be set to application/json |
Request Parameters
| Parameter | Type | Required | Description | Constraints |
|---|---|---|---|---|
| layer | String | Yes | Layer Name | |
| geometryIds | List<Long> | Yes | geometry id list |
Request Body Example
json
{
"layer": "v2_aiidfzdiazedhzhfghd",
"geometryIds": [
84
]
}Response Body Structure
CommonResponse Object
| Field | Type | Description |
|---|---|---|
| code | Integer | Response status code |
| message | String | Response message |
| data | BboxItem | Vector Data |
BboxItem Object
| Field | Type | Description |
|---|---|---|
| layerName | String | Layer Name |
| bbox | String | New BBox |
Response Examples
Success Response
json
{
"code": 200,
"message": "OK",
"data": {
"layerName": "v2_aiidfzdiazedhzhfghd",
"bbox": "35.53393,27.541082,35.539154,27.547148"
}
}Failure Response
json
{
"code": 404,
"message": "Vector not found",
"data": null
}Error Code Description
| Error Code | Description |
|---|---|
| 200 | Success |
| 400 | Request parameter error |
| 401 | Unauthorized |
| 404 | Vector not found |
| 500 | Server internal error |
Usage Instructions
- This API is used to delete vector data from analysis tasks
- User authentication is required
- Task ID and vector ID must be provided
- Returns boolean indicating deletion success
Notes
- Task ID and vector ID are required
- Deletion is permanent and cannot be undone
- User authentication token must be included in request headers