Git Provider Connections

Update access token for a connection (when tokens expire or are rotated)

Changed on
post/git-connections/{connection_id}/update-token

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

connection_idinteger required

Connection ID

Request body

access_tokenstring password required

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

refresh_tokenstring password nullable

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

Response

Token updated successfully

connection_idinteger required
is_activeboolean required
messagestring required

Changes

    • breaking

      the request property refresh_token became not nullable

    • breaking

      the access_token request property format changed from no format to password

    • breaking

      the refresh_token request property type changed from string null to no type

    1 more change in this revision