Rotate credentials
GET
/api/managing-entity/{managingEntityIdentifier}/application/{id}/revoke
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/application/9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43/revoke';const options = { method: 'GET', 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 GET \ --url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/application/9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43/revoke \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Regenerates the application’s clientId and secret key, immediately invalidating the old pair. Update your integration to use the new credentials right away.
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 whose credentials to rotate.
Example
9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
id
required
Unique application identifier whose credentials were rotated.
string format: uuid
clientId
required
New OAuth2 client identifier. The old clientId is now invalid.
string
secretKey
required
New OAuth2 client secret. The old secret is now invalid. Keep this confidential and treat as a password.
string
Example
{ "id": "", "clientId": "", "secretKey": ""}Bad 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
{}