Connected applications
Finish the OAuth flow for a connected application
Activity name : PatchConnectedApplicationByBearerToken
This endpoint will either create a new connected application or refresh the refresh_token for an existing connected application.
patch/users/connectedApplications
Request
- Base URLhttps://api.loket.nl
- URLhttps://api.loket.nl/users/connectedApplications
- Authnone required
Headers
Authorizationstring required
Example:Bearer <TOKEN>
A valid Bearer token for authorizing the request.
Acceptstring required
Example:application/json;version=2018-01-01
The accept header is used to influence what type of output is returned and in most cases the version of the output
Request body
Example request
{
"state": "lshjgoi7329o4nsldjuf0s9udjfsd09fsdjfpsd98234ln",
"code": "lshjgoi7329o4nsldjuf0s9udjfsd09fsdjfpsd98234ln0498yjhkjk379u4yijrhkg394yurjeogk39y54oerkhgf24pwrojgfkl94ypuroejghkf9y4rpjhkd93y45evrjhdk943y5uprjeok"
}Response
OK
Example response
{
"version": {
"resourceVersion": "2018-12-31"
},
"messages": [
{
"type": "Warning",
"description": "<some warning>",
"id": "904d6856-6034-4624-bcbc-886188c115c5",
"code": 12
}
],
"content": {
"id": "b14acd0d-75d7-4fc8-8b22-4a3924585cab",
"description": "Connection for HpGL",
"key": 21,
"applicationProvider": {
"id": "b14acd0d-75d7-4fc8-8b22-4a3924585cab",
"description": "Precies online"
},
"createdOn": "2018-05-08T15:16:49+02:00",
"lastUsedOn": "2018-05-08T15:16:49+02:00"
}
}Changes
No recorded changes to this operation across all 6 revisions of this API.