.. AUTO-GENERATED FILE. DO NOT EDIT. DELETE /accounting-internal-scanned-documents-raw-ocr-values-delete-one ======================================================================= Summary ------- - **Source repository:** ``jef-systems/jef-accounting-backend`` - **Source SHA:** ``0971081ab3f6914370516757123728e9be2db514`` - **Source run id:** ``28366836024`` - **Lambda function:** ``jef-accounting-delete-003`` - **Lambda ARN:** ``arn:aws:lambda:ap-southeast-1:246715082475:function:jef-accounting-delete-003`` - **HTTP method:** ``DELETE`` - **Operation:** ``delete-one`` - **API path:** ``/accounting-internal-scanned-documents-raw-ocr-values-delete-one`` - **Endpoint URL:** ``https://ru8zaxs2qa.execute-api.ap-southeast-1.amazonaws.com/prod/accounting-internal-scanned-documents-raw-ocr-values-delete-one`` - **API Gateway REST API ID:** ``ru8zaxs2qa`` - **API Gateway resource ID:** ``9cnodx`` - **API Gateway source ARN:** ``arn:aws:execute-api:ap-southeast-1:246715082475:ru8zaxs2qa/\*/DELETE/accounting-internal-scanned-documents-raw-ocr-values-delete-one`` - **Stage:** ``prod`` - **DynamoDB table:** ``jef-accounting-internal-scanned-documents-raw-ocr-values`` - **Primary key:** ``internal\_raw\_ocr\_value\_id`` Primary Key Input ----------------- The generated DELETE Lambda accepts the primary key from query parameters, path parameters, or JSON body. Accepted aliases: - ``internal\_raw\_ocr\_value\_id`` - ``primary\_key\_value`` - ``id`` Query Example ------------- .. code-block:: text DELETE /accounting-internal-scanned-documents-raw-ocr-values-delete-one?primary_key_value=00000000-0000-4000-8000-000000000000 JSON Body Example ----------------- .. code-block:: json { "primary_key_value": "00000000-0000-4000-8000-000000000000" } CMD curl -------- .. code-block:: bat curl -X DELETE "https://ru8zaxs2qa.execute-api.ap-southeast-1.amazonaws.com/prod/accounting-internal-scanned-documents-raw-ocr-values-delete-one" -H "Content-Type: application/json" -d '{"primary_key_value": "00000000-0000-4000-8000-000000000000"}' PowerShell curl --------------- .. code-block:: powershell curl.exe -X DELETE "https://ru8zaxs2qa.execute-api.ap-southeast-1.amazonaws.com/prod/accounting-internal-scanned-documents-raw-ocr-values-delete-one" -H "Content-Type: application/json" -d "{\"primary_key_value\": \"00000000-0000-4000-8000-000000000000\"}" Expected Responses ------------------ .. list-table:: :header-rows: 1 :widths: 15 85 * - Status - Meaning * - 200 - Item deleted. * - 400 - Missing primary key, invalid payload, or cascade delete attempted. * - 404 - Item not found. * - 409 - Delete blocked because child records exist. * - 405 - Wrong HTTP method. * - 500 - Unexpected error.