oauth_authorizations

Edit connected app

Edit the caller's own grant without a new consent: team_scope_mode, consented_team_sids (a full replacement, non-empty under selected, each a live membership: 403 not_a_member) and permissions (a full replacement inside the client's ceiling). An empty team set or a token over the ceiling is 422 validation_failed (empty_team_scope, scope_exceeds_ceiling). Live tokens keep their frozen claims until their short TTL: revoke for an immediate cut. At least one field. 404 when not the caller's grant.

Contract:

  • MCP tool update_oauth_authorization, registry package mcp.id/oauth_authorizations, mount id.access.
  • Operation update, response envelope update.
  • Flags: none.
patch/api/oauth-authorizations/{sid}

Request

  • Base URL
    https://beta.getsales.io/id/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Path parameters

sidstring required

OAuth authorization (grant) sid (id_oa_...).

Request body

team_scope_mode'selected' | 'all_my_teams'

selected = the listed workspaces; all_my_teams = every workspace of the user.

consented_team_sidsstring[]

FULL replacement; required and non-empty when the effective mode is selected; ignored under all_my_teams.

permissionsstring[]

FULL replacement; inside the client's permission ceiling.

Response

update success envelope.

successtrue required
operation'update' required
updated_fieldsstring[] required
previous_valuesobject required
kept_fieldsstring[]

The fields this write did not change because the person's own value stands on them (stamped person); read the item for what landed.

Changes

No recorded changes to this operation across all 1 revision of this API.