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.
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.
transfer*stringAn ownership transfer's id.
uuidThe cancelled transfer.
application/json- response
A workspace's ownership offered to a user: pending until that user accepts or declines it, or a workspace admin cancels it. While it is pending the old owner stays the owner.
id*stringuuidworkspace_id*IDNumeric resource id.
int641 <= valueworkspace_name*stringteam_id*IDNumeric resource id.
int641 <= valueteam_name*stringfrom?The owner when the transfer was offered; absent when the workspace had none.
to*The owner when the transfer was offered; absent when the workspace had none.
offered_by?The owner when the transfer was offered; absent when the workspace had none.
state*OwnerTransferState"pending""accepted""declined""cancelled"provider?stringThe Git provider of the workspace's origin repository; accepting needs a connection to it (Settings, Git connections). Absent for a workspace without a provider origin.
provider_name?stringreason?stringWhy a cancelled transfer ended: cancelled by a workspace admin, replaced by an offer to someone else,
owner_changed because an admin took the ownership, departed because the old or the new owner left the
team.
"cancelled""replaced""owner_changed""departed"created_at*stringdate-timeclosed_at?stringWhen it was accepted, declined or cancelled.
date-timeclosed_by?The owner when the transfer was offered; absent when the workspace had none.
curl -X POST 'https://console.example.com/api/v1/owner-transfers/497f6eca-6276-4993-bfeb-53cbbbba6f08/cancel'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workspace_id": 1, "workspace_name": "string", "team_id": 1, "team_name": "string", "from": { "id": 1, "name": "string", "email": "string", "picture_url": "string" }, "to": { "id": 1, "name": "string", "email": "string", "picture_url": "string" }, "offered_by": { "id": 1, "name": "string", "email": "string", "picture_url": "string" }, "state": "pending", "provider": "string", "provider_name": "string", "reason": "cancelled", "created_at": "2019-08-24T14:15:22Z", "closed_at": "2019-08-24T14:15:22Z", "closed_by": { "id": 1, "name": "string", "email": "string", "picture_url": "string" }}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.
Decline a workspace's ownership
Only the user the transfer offers the ownership to (404 for everyone else); the owner stays. 409 `owner-transfer-closed` when it was accepted, declined or cancelled.