Operation: Delete Subscription
The Delete Subscription operation is used to logically delete a subscription from the Ontario Health publication service. After deletion, the subscription resource will no longer be accessible by the client for further modifications or updates.
Specification
This specification is based on the FHIR R4B Delete operations.
Subscription Delete Request
The Delete Subscription will delete the specified FHIR Subscription resource from the repository.
Usage:
DELETE [base]/Subscription/[id]
, where [id] is the logical id of the existing Subscription resource.
Subscription Delete Response
The server returns a 200 OK HTTP status code.
Example Delete Message
HTTP Method:
DELETE
Headers:
Content-Type: application/fhir+json
Address:
[base]/Subscription/1455
Expected Behaviour
Case | Scenario Description | HTTP Status Code | Response Payload |
---|---|---|---|
1 | An existing Subscription is deleted from the repository | HTTP 200 | Deleted. |
2 | Subscription API validates the request but cannot return a valid response due to internal issues. | HTTP 500 | Internal Server Error. Returns an OperationOutcome resource indicating an issue. |