PUT
/
oauth2-provider
/
apps
/
{app}
curl --request PUT \
  --url https://cloud.local.wirtual.dev/api/v2/oauth2-provider/apps/{app} \
  --header 'Content-Type: application/json' \
  --header 'Wirtual-Session-Token: <api-key>' \
  --data '{
  "callback_url": "<string>",
  "icon": "<string>",
  "name": "<string>"
}'
{
  "callback_url": "<string>",
  "endpoints": {
    "authorization": "<string>",
    "device_authorization": "<string>",
    "token": "<string>"
  },
  "icon": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>"
}

Authorizations

Wirtual-Session-Token
string
header
required

Path Parameters

app
string
required

App ID

Body

application/json
Update an OAuth2 application.
callback_url
string
required
name
string
required
icon
string

Response

200 - application/json
OK
callback_url
string
endpoints
object

Endpoints are included in the app response for easier discovery. The OAuth2 spec does not have a defined place to find these (for comparison, OIDC has a '/.well-known/openid-configuration' endpoint).

icon
string
id
string
name
string