Get GitHub organization policy

Changed on

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Tells you whether the app's workspace limits GitHub repositories to an approved list of organizations.

When restricted is true, you can create the app's repository only under one of the approved organizations. The approved list itself is managed in workspace settings.

Workspace owners and admins can connect under any organization, even when the policy restricts organizations for other users. However, the organization list they read is filtered by the restriction policy, so List GitHub organizations returns the same list for them as it does for other users.

get/api/apps/{app_id}/github/org-policy

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/github/org-policy
  • Auth: HTTP bearer

Path parameters

app_idstring required

ID of the app whose workspace decides which GitHub organizations you can use.

Response

Whether the workspace limits which GitHub organizations you can use.

restrictedboolean required

Whether the app's workspace limits GitHub repositories to an approved list of organizations.

Changes

    • info

      the security scope read_only was added to the endpoint's security scheme PersonalAccessTokenAuth

    • info

      the security scope full_access was removed from the endpoint's security scheme PersonalAccessTokenAuth

    • info

      the endpoint scheme security PersonalAccessTokenAuth was added to the API