LogoFreestyle
API Reference/Git

Grant a permission to a Git identity

Grant a permission to a Git identity on a repository

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

Request Body

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

Path Parameters

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

Response Body

200

Permission granted successfully

responseRequiredobject

401

Unauthorized

messageRequiredstring

403

Forbidden

messageRequiredstring

404

Repository not found

messageRequiredstring

500

Internal server error

messageRequiredstring
curl -X POST "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"
  }'

Permission granted successfully

{}