Primary Key Input¶
The generated DELETE Lambda accepts the primary key from query parameters, path parameters, or JSON body.
Accepted aliases:
sales\_invoice\_item\_idprimary\_key\_valueid
Source repository: jef-systems/jef-caferimo-backend
Source SHA: 6227e325eddd82e301ad08930cc4444941098ced
Source run id: 28332753385
Lambda function: jef-caferimo-delete-020
Lambda ARN: arn:aws:lambda:ap-southeast-1:246715082475:function:jef-caferimo-delete-020
HTTP method: DELETE
Operation: delete-one
API path: /caferimo-sales-invoice-items-delete-one
Endpoint URL: https://vdhlfh29jh.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-sales-invoice-items-delete-one
API Gateway REST API ID: vdhlfh29jh
API Gateway resource ID: cinjq0
API Gateway source ARN: arn:aws:execute-api:ap-southeast-1:246715082475:vdhlfh29jh/\*/DELETE/caferimo-sales-invoice-items-delete-one
Stage: prod
DynamoDB table: jef-caferimo-sales-invoice-items
Primary key: sales\_invoice\_item\_id
The generated DELETE Lambda accepts the primary key from query parameters, path parameters, or JSON body.
Accepted aliases:
sales\_invoice\_item\_id
primary\_key\_value
id
DELETE /caferimo-sales-invoice-items-delete-one?primary_key_value=00000000-0000-4000-8000-000000000000
{
"primary_key_value": "00000000-0000-4000-8000-000000000000"
}
curl -X DELETE "https://vdhlfh29jh.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-sales-invoice-items-delete-one" -H "Content-Type: application/json" -d '{"primary_key_value": "00000000-0000-4000-8000-000000000000"}'
curl.exe -X DELETE "https://vdhlfh29jh.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-sales-invoice-items-delete-one" -H "Content-Type: application/json" -d "{\"primary_key_value\": \"00000000-0000-4000-8000-000000000000\"}"
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. |