LogoFreestyle
API Reference/Git

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.

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

Path Parameters

identityRequiredstring
Format: "uuid"
repoRequiredstring
Format: "uuid"

Response Body

200

Permission info

identityRequiredstring
Format: "uuid"
repoRequiredstring
Format: "uuid"
accessLevelstring

401

Unauthorized

messageRequiredstring

403

Forbidden

messageRequiredstring

404

Not found

messageRequiredstring

500

Internal server error

messageRequiredstring
curl -X GET "https://api.freestyle.sh/git/v1/identity/497f6eca-6276-4993-bfeb-53cbbbba6f08/permissions/497f6eca-6276-4993-bfeb-53cbbbba6f08"

Permission info

{
  "identity": "10a80a7a-1a32-4a74-b592-aa2a4ef691c5",
  "repo": "2a069b2f-9d5f-47ed-b067-aeca843a01ba",
  "accessLevel": {}
}