DELETE /store-jefgas-purchase-orders-delete-one

Summary

  • Source repository: jef-systems/jef-store-backend

  • Source SHA: 440c1040ee18c40a7ba9fb7ca5fb282aed08cac5

  • Source run id: 28376324242

  • Lambda function: jef-store-delete-013

  • Lambda ARN: arn:aws:lambda:ap-southeast-1:246715082475:function:jef-store-delete-013

  • HTTP method: DELETE

  • Operation: delete-one

  • API path: /store-jefgas-purchase-orders-delete-one

  • Endpoint URL: https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-jefgas-purchase-orders-delete-one

  • API Gateway REST API ID: dqo3268ty9

  • API Gateway resource ID: kfqzs3

  • API Gateway source ARN: arn:aws:execute-api:ap-southeast-1:246715082475:dqo3268ty9/\*/DELETE/store-jefgas-purchase-orders-delete-one

  • Stage: prod

  • DynamoDB table: jef-store-jefgas-purchase-orders

  • Primary key: purchase\_order\_number

Primary Key Input

The generated DELETE Lambda accepts the primary key from query parameters, path parameters, or JSON body.

Accepted aliases:

  • purchase\_order\_number

  • primary\_key\_value

  • id

Query Example

DELETE /store-jefgas-purchase-orders-delete-one?primary_key_value=00000000-0000-4000-8000-000000000000

JSON Body Example

{
  "primary_key_value": "00000000-0000-4000-8000-000000000000"
}

CMD curl

curl -X DELETE "https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-jefgas-purchase-orders-delete-one" -H "Content-Type: application/json" -d '{"primary_key_value": "00000000-0000-4000-8000-000000000000"}'

PowerShell curl

curl.exe -X DELETE "https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-jefgas-purchase-orders-delete-one" -H "Content-Type: application/json" -d "{\"primary_key_value\": \"00000000-0000-4000-8000-000000000000\"}"

Expected Responses

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.