Invite a person into this project
As createInvite (including delivery), with one grant on this project.
Authorization
bearer In: header
Path Parameters
Project id
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
How the invitee gets the link. Default email.
Value in
- "email"
- "link"
Trimmed and lowercased.
As in a project grant.
A member's platform role on a project. Ordered: Viewer < Developer < Admin.
Value in
- "viewer"
- "developer"
- "admin"
Refused in any form, [] and null included (422 invalid_request): only a tenant
admin's invite (createInvite) attaches teams (MH-8).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/invites" \ -H "Content-Type: application/json" \ -d '{ "email": "string", "platform_role": "viewer" }'{ "invite_url": "string", "member": { "accepted_at": "2019-08-24T14:15:22Z", "access": { "level": "tenant_admin", "projects": [ { "platform_role": "viewer", "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9", "via": "own" } ] }, "created_at": "2019-08-24T14:15:22Z", "display_name": "string", "email": "string", "has_access": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "invite": { "expires_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "status": "invited", "suspended_at": "2019-08-24T14:15:22Z", "suspended_by": "c2e368d8-db1b-4e27-8850-4fa018b3a2bc", "tenant_admin": true }, "outcome": "invited"}Narrow a member's grant on one database PUT
An override only narrows: its role is at most the grant's, its roles some of the grant's (any roles for an `admin` grant, which holds every role: the member keeps only those there, with the owner while still `admin`). Narrowing below `admin` takes the database owner away there, and the roles left must pass the same checks as a grant below `admin`. Every branch of the project then reconciles its member roles.
Rename the tenant PATCH
Sets the tenant's display name (what Studio and invite pages call it); readers fall back to the slug while it is empty. One `tenant_renamed` access event records the change.