Skip to content

Edit Vector API ​

API Information ​

  • Request Path: /analysis/task/edit/vector
  • Request Method: POST
  • Content-Type: application/json

Request Headers ​

ParameterTypeRequiredDescription
AuthorizationStringYesUser authentication token
Content-TypeStringYesMust be set to application/json

Request Parameters ​

ParameterTypeRequiredDescriptionConstraints
layerStringYesLayer Name
geometryIdLongYesgeometry id
geometryStringYesgeometry

Request Body Example ​

json
{
  "layer": "v2_aiidfzdiazedhzhfghd",
  "geometryId": 84,
  "geometry": "POLYGON ((35.53679993 27.54514303, 35.53706207 27.54498726, 35.5371 27.5456, 35.5368 27.5456, 35.53664534 27.54527483, 35.53679993 27.54514303))"
}

Response Body Structure ​

CommonResponse Object ​

FieldTypeDescription
codeIntegerResponse status code
messageStringResponse message
dataBboxItemVector Data

BboxItem Object ​

FieldTypeDescription
layerNameStringLayer Name
bboxStringNew 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 CodeDescription
200Success
400Request parameter error
401Unauthorized
404Vector not found
500Server internal error

Usage Instructions ​

  1. This API is used to edit vector data generated by analysis tasks
  2. User authentication is required
  3. Task ID and vector ID must be provided
  4. Returns boolean indicating edit success

Notes ​

  • Task ID and vector ID are required
  • Geometry must be in valid WKT format
  • Attributes can be updated as needed
  • User authentication token must be included in request headers