Optionaloptions: { env?: string; host?: string; token?: string }ProtectedenvProtectedhostProtectedtokenAccept an invite
Invite UUID
Archive a project
Delete a user from the project
User UUID
Delete a workspace
Workspace UUID
Get available templates
Get a specific invite by UUID
Invite UUID
Get list of project invites
Get template by ID
Template ID
Get template by activation code
Activation code
Get a specific project user
User UUID
Get list of project users
Get templates for a workspace
Get information about a specific project
Install a template.
POST /v1/project/template/install decodes body TemplateInstall = { id, data, activation_code } and resolves the target workspace from the
X-Workspace-Uuid request header (not the body) — see platform-api's
template_install.go. This method keeps the ergonomic object-arg
signature but maps it onto that contract: template_id becomes body
id, workspace_uuid is sent as the X-Workspace-Uuid header, and any
data/activation_code passed in are forwarded in the body as-is.
{ template_id, workspace_uuid, data?, activation_code? }
Invite one or more users to the project.
POST /v1/project/invite only accepts a single email per request
(see InviteToProject in platform-api's
internal/project/controllers/invite.go), so this method issues one
request per entry in emails, sequentially, with body
{ email, role_uuid: roles, subject?, comment? }.
Return shape (always a single AxiosResponse, so existing callers
that do (await project.invite(...)).data keep compiling/working
unchanged):
AxiosResponse from that single request
(.data is that invite's response body, as before).AxiosResponse, but with .data replaced by an array of each
individual request's .data, in the same order as emails.Array of email addresses to invite
Array of role UUIDs to grant every invitee
Optionalextra: { comment?: string; subject?: string }Optional subject/comment applied to every invite
Get list of all projects for the current user
Register through an invite
Invite UUID
Registration data
Revoke an invite
Invite UUID
Search for templates
Search query
Uninstall a template.
POST /v1/project/template/uninstall decodes body TemplateInstall = { id, data, activation_code } and resolves the target workspace from the
X-Workspace-Uuid request header (not the body) — see platform-api's
template_uninstall.go. See installTemplate for the mapping.
{ template_id, workspace_uuid, data?, activation_code? }
Update project settings
Settings data
Update a project user
User UUID
Update data
Update a workspace
Workspace UUID
Update data
Upgrade a template.
POST /v1/project/template/upgrade decodes body TemplateInstall = { id, data, activation_code } and resolves the target workspace from the
X-Workspace-Uuid request header (not the body) — see platform-api's
template_upgrade.go. See installTemplate for the mapping.
{ template_id, workspace_uuid, data?, activation_code? }
Base client for the platform API Classes that extend PlatformBaseClient have intentins of only working in platform context
PlatformBaseClient
Param: client
The axios instance to use for the client
Example