LogoFreestyle
API Reference/Git

Update a permission for a Git identity

Update a permission for a Git identity on a repository

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

Request Body

application/jsonRequired
permissionRequiredstring
Value in: "read" | "write"

Path Parameters

identityRequiredstring

The git identity ID

Format: "uuid"
repoRequiredstring

The git repository ID

Format: "uuid"

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.