For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
  • API Reference
      • GETList Members
      • POSTCreate Invite
      • DELRemove Member
      • PATCHUpdate Member Role
      • DELRevoke Invite
      • PATCHUpdate Invite Role
      • POSTAccept Invite
  • Python SDK
    • Install
    • Usage
    • Errors
  • CLI
    • Overview
LogoLogo
API Referenceworkspace-members

Update Invite Role

PATCH
/api/v1/workspaces/:ws_id/invites/:invite_id
PATCH
/api/v1/workspaces/:ws_id/invites/:invite_id
$curl -X PATCH https://api.onepin.ai/api/v1/workspaces/ws_id/invites/invite_id \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "role": "editor"
>}'
1{
2 "data": {
3 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
4 "email": "jane.doe@example.com",
5 "role": "editor",
6 "status": "pending",
7 "expires_at": "2024-01-15T09:30:00Z",
8 "invited_by": "1c9d4f8e-2b7a-4f3a-9d1e-5a7b8c9d0e1f",
9 "created_at": "2024-01-01T12:00:00Z"
10 },
11 "meta": {
12 "request_id": "7f9c2ba4-3d5e-4a1b-8f2e-9c3d4e5f6a7b",
13 "timestamp": "2024-01-15T09:30:00Z"
14 }
15}
Update role on a pending invite. Admin only.
Was this page helpful?
Previous

Accept Invite

Next
Built with

Authentication

AuthorizationBearer
Clerk JWT token

Path parameters

ws_idstringRequiredformat: "uuid"
invite_idstringRequiredformat: "uuid"

Request

This endpoint expects an object.
roleenumRequired
Allowed values:

Response

Successful Response
dataobject
metaobject

Errors

422
Unprocessable Entity Error