Delete application
DELETE
/api/managing-entity/{managingEntityIdentifier}/application/{id}
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/application/9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43';const options = { method: 'DELETE', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/application/9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43 \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Permanently removes an OAuth2 application and its registered client. All associated credentials are revoked immediately and cannot be recovered.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” managingEntityIdentifier
required
string
Identifier of the managing entity that owns the application.
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69 id
required
string
Identifier of the application to delete.
Example
9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Responses
Section titled “ Responses ”OK
Media type application/json
Response object for when a system document is removed.
object
id
Identifier of removed document
string format: uuid
success
Whether the removal was successful or not.
boolean
message
Message with additional information; mostly if the removal request was a failure.
string
Example
nullBad Request
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Unauthorized
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Forbidden
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Internal Server Error
object
Example generated
{}