LogoFreestyle
API ReferenceDeprecated

Update a permission for an identity

Update a permission for an identity on a repository. **DEPRECATED:** Git identities have been promoted to global Freestyle identities used for provisioning resources scoped to customers. Please use the `/identity/v1/*` API instead.

PATCH
/git/v1/identity/{identity}/permissions/{repo}

Path Parameters

identity*string

The git identity ID

Formatuuid
repo*string

The git repository ID

Formatuuid

Request Body

application/json

permission*string
Value in"read" | "write"

Response Body

curl -X PATCH "https://api.freestyle.sh/git/v1/identity/497f6eca-6276-4993-bfeb-53cbbbba6f08/permissions/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "permission": "read"  }'

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.