Add or update a workspace member

Requires member:write token scope or owner/admin member role. This is the direct admin path; invite join is separate. Workspace ownership cannot be assigned or transferred through this endpoint, and the existing owner cannot be changed.

post/workspaces/{slug}/members

Request

  • Base URL: https://superskill.sh/api
  • URL: https://superskill.sh/api/workspaces/{slug}/members
  • Auth: HTTP bearer

Path parameters

slugstring required

Request body

userIdstring required
role'admin' | 'moderator' | 'publisher' | 'member' | 'viewer'
sourcestring
expiresAtstring date-time nullable

Optional membership expiry. When expired, member-session reads and private archive access fail closed.

Response

Workspace member

Changes

No recorded changes to this operation across all 1 revision of this API.