Skip to content

Add support for Application Consents API #276

Description

@crowdin-bot

The Crowdin API introduces Application Consent Decisions methods for managing consents granted or denied to applications. Note: these endpoints are available on crowdin.com only (not in Crowdin Enterprise).

  • List Application ConsentsGET /applications/consents (api.applications.consents.getMany). Query: identifier (string, optional), orderBy (id, createdAt), limit/offset.
  • Add Application ConsentPOST /applications/consents (api.applications.consents.post). Request: identifier (string, required), installedBy (integer, required), status (granted or denied, required), scopes (array of strings, optional). Returns 409 on duplicate.
  • Edit Application ConsentPATCH /applications/consents/{consentId} (api.applications.consents.patch). JSON Patch with op: replace and paths /status, /scopes.
  • Delete Application ConsentDELETE /applications/consents/{consentId} (api.applications.consents.delete).

The response model includes: id, installedBy (nullable object with id, username, fullName, avatarUrl), identifier, name (nullable), status, scopes, createdAt, updatedAt.

Client libraries should add these methods to their Applications API support.

References:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions