POSThttps://api.astronomer.io/iam/v1beta1/organizations/organizationId/roles/customRoleId
Path Parameters
Body Parameters
View in API Reference
Request
$curl -X POST https://api.astronomer.io/iam/v1beta1/organizations/organizationId/roles/customRoleId \
> -H "Authorization: Bearer " \
> -H "Content-Type: application/json" \
> -d '{
> "description": "Subject can only view deployments.",
> "name": "Deployment_Viewer",
> "permissions": [
> "deployment.get"
> ],
> "restrictedWorkspaceIds": [
> "cldbvzoi20182g8odxt8ehi5i"
> ]
>}'
Response