Add a user to a team
Team admins (`team.members`). Adds the user whose verified email is `email`; a user outside the team's organization joins it as `member` first (organization membership before team membership). Mails "you were added" when mail is on. 409 `user-unknown` (invite them instead), `already-member`, `team-deleting`; 429 when the caller is over the per-sender mail limit.
openapi/harthelm.yaml at v1.5.0__Host-harthelm_session<token>Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header
Harthelm-CSRF: 1 and a matching Origin.
team*integerNumeric resource id.
int641 <= valueIdempotency-Key?stringClient-chosen key (at most 255 characters); a repeated key returns the first result for 24 h.
1 <= length <= 255application/json- body
email*Emailemaillength <= 254role*TeamRole"admin""member"The membership.
application/json- response
user*A user as member lists show them.
role?TeamRoleThe explicit role; absent for an organization owner without a membership of their own.
"admin""member"inherited_role?TeamRoleThe explicit role; absent for an organization owner without a membership of their own.
"admin""member"created_at*stringdate-timecurl -X POST 'https://console.example.com/api/v1/teams/1/members' \ -H 'Content-Type: application/json' \ -d '{ "email": "[email protected]", "role": "admin"}'{ "user": { "id": 1, "name": "string", "email": "string", "picture_url": "string" }, "role": "admin", "inherited_role": "admin", "created_at": "2019-08-24T14:15:22Z"}Add a user to an organization
Organization owners (`org.members`). Adds the user whose verified email is `email` and mails them "you were added" when mail is on. 409 `user-unknown` when nobody with that verified email has signed in yet (invite them instead), `already-member`. 429 when the caller is over the per-sender mail limit.
Cancel a pending ownership transfer
Workspace admins (`workspace.members` on the transfer's workspace; 404 without `workspace.view`). The owner stays. 409 `owner-transfer-closed` when it was accepted, declined or cancelled.