> ## Documentation Index > Fetch the complete documentation index at: https://support.keypro.fi/llms.txt > Use this file to discover all available pages before exploring further. # Delete Survey Points > Operation is used to delete Survey Points. Available from product version 2024.3. Operation actually deletes Survey Points and they cannot be restored. The Survey Point's Survey Results and the network objects created from them are deleted only on request (`deleteSurveyResult`, `deleteNetworkObjects`), in one transaction with the Survey Point. ## OpenAPI ````json DELETE /survey-points/{id}/ { "openapi": "3.0.4", "info": { "title": "KeyLight REST API", "termsOfService": "https://www.keypro.fi/en/terms-of-service", "contact": { "name": "Keypro Oy", "url": "https://keypro.fi/", "email": "keypro@keypro.fi" }, "license": { "name": "Copyright (C) Keypro Oy. All rights reserved.", "url": "https://www.keypro.fi/" }, "version": "2.0.0" }, "servers": [ { "url": "/api/v2" } ], "tags": [ { "name": "Plan", "description": "Plan related operations." }, { "name": "FreeArea", "description": "FreeArea related operations." }, { "name": "FreeLine", "description": "FreeLine related operations." }, { "name": "FreeText", "description": "FreeText related operations." }, { "name": "FreeTextComponent", "description": "FreeText component related operations." }, { "name": "Address", "description": "Building address related operations." }, { "name": "Apartment", "description": "Building apartments related operations." }, { "name": "Extra Attribute", "description": "Extra attributes related operations." }, { "name": "Extra Value", "description": "Extra attribute values related operations." }, { "name": "EAV Enum", "description": "EAV Enum value related operations." }, { "name": "EAV Enum Group", "description": "EAV Enum group related operations." }, { "name": "External Document", "description": "External documents related operations." }, { "name": "Attached Document", "description": "Attached Documents related operations." }, { "name": "Collections", "description": "Collection related operations." }, { "name": "Source system apartment", "description": "External source system derived apartment related operations." }, { "name": "Source system address", "description": "External source system derived address related operations." }, { "name": "Address alias", "description": "Address aliases related operations" }, { "name": "TxtConstant", "description": "TxtConstants related operations." }, { "name": "Point", "description": "Point objects related operations." }, { "name": "Survey Constant", "description": "Survey Constants related operations." }, { "name": "Survey Point", "description": "Survey Points related operations." }, { "name": "Survey Line String", "description": "Survey Line Strings related operations." }, { "name": "Template Catalog", "description": "Template Catalog related operations." }, { "name": "Route Following", "description": "Route following related operations." }, { "name": "Contact Person", "description": "Contact person related operations." }, { "name": "Contact Person Connection", "description": "Contact person connection related operations." }, { "name": "Electric Premises", "description": "Electric Premises related operations." }, { "name": "Electric Fuse", "description": "Fuse related operations." }, { "name": "Electric Splice", "description": "Electric Splice related operations." }, { "name": "Electric Manhole", "description": "Electric Manhole related operations." }, { "name": "Electric Point Object", "description": "Other electric point objects related operations." }, { "name": "Electric Pole", "description": "Electric Pole related operations." }, { "name": "Streetlight", "description": "Streetlight related operations." }, { "name": "Traffic Signal", "description": "Traffic signal related operations." }, { "name": "Electric Cable", "description": "Electric Cable related operations." }, { "name": "Electric Cable Connection", "description": "Operations related to connecting Electric Cables and Electric endpoints(Streetlights, Splices, Premises)." }, { "name": "Electric Conduit", "description": "Electric Conduit related operations." }, { "name": "Electric Conduit Link", "description": "Operations related to putting Electric Cables and Ducts into Conduits." }, { "name": "Electric Conduit Connection", "description": "Operations related to connecting Conduits and endpoints(Streetlights, Splices, Premises)." }, { "name": "Electric Duct", "description": "Electric Duct related operations." }, { "name": "Electric Duct Link", "description": "Operations related to putting Electric Cables into Ducts." }, { "name": "Electric Routefollower", "description": "Electric Routefollower related operations." }, { "name": "Task", "description": "Task related operations." }, { "name": "Subregion", "description": "Subregion related operations." }, { "name": "SAttribute", "description": "SAttribute related operations." }, { "name": "Fault", "description": "Fault related operations." }, { "name": "Maintenance history", "description": "Maintenance history related operations." }, { "name": "Deflection", "description": "Deflection related operations." }, { "name": "Fault Component", "description": "Fault Component related operations." }, { "name": "Task Comment", "description": "Task comment related operations." }, { "name": "FaultComponentFault", "description": "FaultComponentFault related operations." } ], "paths": { "/survey-points/{id}/": { "delete": { "tags": [ "Survey Point" ], "summary": "Delete Survey Points", "description": "Operation is used to delete Survey Points. Available from product version 2024.3.\n\nOperation actually deletes Survey Points and they cannot be restored.\n\nThe Survey Point's Survey Results and the network objects created from them are deleted only on request\n(`deleteSurveyResult`, `deleteNetworkObjects`), in one transaction with the Survey Point.\n", "operationId": "deleteSurveyPoint", "parameters": [ { "name": "id", "in": "path", "description": "Id of Survey Point to delete", "required": true, "schema": { "type": "integer" } }, { "name": "deleteSurveyResult", "in": "query", "description": "`true` also deletes the Survey Results of the Survey Point (needs the Survey Result delete permission).\nNetwork objects created from them are kept unless `deleteNetworkObjects` is also `true`.\nOnly `true` and `false` are accepted (case-insensitive). The default is `false`; the instance can change it\nwith the `KEYCONVERT_REST_DELETE_SURVEY_RESULT_DEFAULT` setting.\n", "schema": { "type": "boolean", "default": false } }, { "name": "deleteNetworkObjects", "in": "query", "description": "`true` also deletes the network objects created from those Survey Results (needs the delete permission of\neach network object's model). Requires `deleteSurveyResult=true`. If any network object cannot be deleted,\nnothing is deleted and the response is 400 with the failed items.\nOnly `true` and `false` are accepted (case-insensitive). The default is `false`; the instance can change it\nwith the `KEYCONVERT_REST_DELETE_NETWORK_OBJECTS_DEFAULT` setting, which applies only when the Survey Results\nare deleted too.\n", "schema": { "type": "boolean", "default": false } } ], "responses": { "204": { "description": "Object deleted", "content": { "application/json": {} } }, "400": { "description": "Nothing was deleted. Either a query parameter is invalid (not `true`/`false`, or `deleteNetworkObjects=true`\nwithout `deleteSurveyResult=true`; errors by parameter name), or a network object could not be deleted\n(`detail` and `failedItems`).\n", "content": { "application/json": { "schema": { "type": "object", "properties": { "detail": { "type": "string", "description": "Why nothing was deleted" }, "failedItems": { "type": "array", "items": { "type": "object", "properties": { "detail": { "type": "string", "description": "Error message of a failed delete" }, "objectId": { "type": "integer", "description": "Id of the network object" }, "objectTableName": { "type": "string", "description": "Table of the network object, as stored on the Survey Result" }, "reason": { "enum": [ "model_not_found", "not_found", "delete_failed" ], "type": "string", "description": "`model_not_found`: the product has no model for the table.\n`not_found`: no object with that id.\n`delete_failed`: the delete raised an error, for example because other objects protect it.\n" } } }, "description": "Network objects that could not be deleted" } }, "additionalProperties": { "type": "array", "items": { "type": "string" }, "description": "Validation error messages for this query parameter" } } } } }, "401": { "$ref": "#/components/responses/Http401" }, "403": { "description": "Nothing was deleted. The user lacks the delete permission of the Survey Result or of a network object's\nmodel, or the network object lies outside the user's access area.\n", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorDetailsResponse" } } } } }, "security": [ { "Token": [] } ] } } }, "components": { "responses": { "Http401": { "description": "Authentication credentials are missing or invalid", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorDetailsResponse" }, "example": { "details": "Authentication credentials were not provided" } } } } }, "schemas": { "ErrorDetailsResponse": { "required": [ "details" ], "type": "object", "properties": { "details": { "type": "string", "description": "Detailed description of error" } }, "description": "Standard error response payload" } }, "securitySchemes": { "Token": { "type": "apiKey", "description": "Token issued for API consumer.", "name": "Authorization", "in": "header" } } } } ````