user

update an OAuth2 Application, this includes regenerating the client secret

Changed on
patch/user/applications/oauth2/{id}

Request

  • Base URL
    https://demo.gitea.com/api/v1
  • Auth
    • HTTP basic
    • or API key in query parameter token
    • or API key in query parameter access_token
    • or API key in header Authorization
    • or API key in query parameter sudo
    • or API key in header Sudo
    • or API key in header X-GITEA-OTP
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

idinteger required

application to be updated

Request body

confidential_clientboolean

Whether the client is confidential

namestring

The name of the OAuth2 application

redirect_urisstring[]

The list of allowed redirect URIs

skip_secondary_authorizationboolean

Whether to skip secondary authorization

Response

OAuth2Application

client_idstring

The client ID of the OAuth2 application

client_secretstring

The client secret of the OAuth2 application

confidential_clientboolean

Whether the client is confidential

createdstring date-time

The timestamp when the application was created

idinteger

The unique identifier of the OAuth2 application

namestring

The name of the OAuth2 application

redirect_urisstring[]

The list of allowed redirect URIs

skip_secondary_authorizationboolean

Whether to skip secondary authorization

Changes