Delete a subscription
Enables clients to remove a subscription for the authenticated user by guid.
DELETE /v1/subscriptions/{guid}Request format
Section titled “Request format”Clients MUST send a DELETE request to the canonical URI of a subscription resource.
Path parameters
Section titled “Path parameters”| Parameter | Type | Description |
|---|---|---|
guid | string | The globally unique identifier (UUIDv5) of the subscription resource. |
Headers
Section titled “Headers”Clients MUST include the following header:
Accept: application/vnd.api+json
DELETE /v1/subscriptions/ce510f4d-9046-5590-846e-58619ab8b353 HTTP/1.1Accept: application/vnd.api+jsonServer behavior
Section titled “Server behavior”- The server MUST remove the subscription for the authenticated user.
- The deletion MUST NOT affect other users subscribed to the same feed.
- The server MUST return a
204 No Contentif the subscription was deleted. - If no subscription exists for the user, the server MUST return
404 Not Found. - If the
guidis not a valid UUID, the server MUST return400 Bad Request.
Success response
Section titled “Success response”If the subscription is successfully deleted:
- HTTP Status:
204 No Content - The response MUST NOT include a body.
HTTP/1.1 204 No ContentError responses
Section titled “Error responses”| HTTP status | When it occurs |
|---|---|
400 Bad Request | If the provided guid is not a valid UUID. |
404 Not Found | If the subscription does not exist or is inaccessible. |
See error response format for more information.