POST /api/organizations/{org_id}/git-claims
Claim a Git organization for an Faheem Code organization. Only admin and owner roles can claim Git organizations. A Git organization can only be claimed by one Faheem Code organization at a time. Args: org_id: Faheem Code organization UUID request: Claim request with provider and git_organization user_id: Authenticated user ID (injected by permission check) Returns: GitOrgClaimResponse with the created claim details Raises: HTTPException 409: If the Git organization is already claimed HTTPException 403: If user lacks permission
Parameters
| Name | In | Type | Required | Description |
|---|
org_id | path | `string | null` | yes |
X-Org-Id | header | `string | null` | no |
Request body
| Field | Type | Required | Description |
|---|
provider | string | yes | — |
git_organization | string | yes | — |
Responses
| Status | Description |
|---|
201 | Successful Response |
422 | Validation Error |
Response body
| Field | Type | Required | Description |
|---|
id | string | yes | — |
org_id | string | yes | — |
provider | string | yes | — |
git_organization | string | yes | — |
claimed_by | string | yes | — |
claimed_at | string | yes | — |
Operation ID: claim_git_organization_api_organizations__org_id__git_claims_post