LogoFreestyle
API ReferenceDeprecated

Get the permission of an identity on a repository

Get the permission of an identity on a repository. This will return the access level of the identity on the 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.

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

Path Parameters

identity*string

The git identity ID

Formatuuid
repo*string

The git repository ID

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.freestyle.sh/git/v1/identity/497f6eca-6276-4993-bfeb-53cbbbba6f08/permissions/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{
  "identity": "10a80a7a-1a32-4a74-b592-aa2a4ef691c5",
  "repo": "2a069b2f-9d5f-47ed-b067-aeca843a01ba",
  "accessLevel": {}
}
{
  "message": "string"
}
{
  "message": "string"
}
{
  "message": "string"
}

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.