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