Disconnect a connection
DELETE/connection/:connectionId/disconnect
Disconnects an ACTIVE or INITIATED connection.
For an ACTIVE connection, the consent is revoked with the data holder and the connection status is changed to DISCONNECTED.
For an INITIATED connection:
- if a data holder has been selected, the connection status is changed to DECLINED
- if no data holder has been selected, the connection status is changed to CANCELLED
Connections in any other status cannot be disconnected and return a 422 response.
Request
Responses
- 204
- 400
- 401
- 404
- 422
- 500
No content The request has been accepted for processing.
Bad Request The minimum header and parameter requirement for this request has not been met.
Unauthorised The minimum authorisation for the request has been met.
Not Found The requested entity could not be found.
Unprocessable Entity The request failed validation.
Service Unavailable The request failed validation.