REST APIMembers
Change a member's organization role
Organization owners (`org.members`). 409 `last-owner` when it would leave the organization without an owner.
Generated from
openapi/harthelm.yaml at v1.5.0PATCH
cookie
__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.
org*stringFormat
uuiduser*integerA user's id.
Format
int64Range
1 <= valueapplication/json- body
role*OrgRoleValue in
"owner""member"The membership.
application/json- response
user*A user as member lists show them.
role*OrgRoleValue in
"owner""member"created_at*stringFormat
date-timecurl -X PATCH 'https://console.example.com/api/v1/orgs/497f6eca-6276-4993-bfeb-53cbbbba6f08/members/1' \ -H 'Content-Type: application/json' \ -d '{ "role": "owner"}'{ "user": { "id": 1, "name": "string", "email": "string", "picture_url": "string" }, "role": "owner", "created_at": "2019-08-24T14:15:22Z"}Grant a workspace role
Workspace admins (`workspace.members`). The user must be a member of the workspace's team (409 `not-team-member`), and the role must be above the one they inherit (409 `below-inherited-role`). Replaces an explicit role they have.
Change a member's team role
Team admins (`team.members`). 409 `last-admin` when it would leave the team without an admin.