Last updated 3 months ago
Was this helpful?
An ID
How many items to offset by for pagination
0
How many items to return at one time (max 64)
64
Filter invitations by status (pending, canceled, accepted)
GET /teams/{id}/invitations HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Accept: */*
A paged array of invitations
[ { "id": 1, "email": "text", "status": "pending" } ]
Default response
POST /teams/{id}/invitations/{invitation_id}/resend HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Accept: */*
The invitation has been resent
{ "code": 1 }
POST /teams/{id}/invitations/{invitation_id}/cancel HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Accept: */*
The invitation has been canceled.
GET /teams/{id}/members HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Accept: */*
A paged array of team members
[ { "id": 1, "name": "text", "email": "text", "image": "text", "role": "member" } ]
DELETE /teams/{id}/members/{user_id} HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Accept: */*
Team member deleted
No content
The token received in the mail
POST /teams/accept-member-invite HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 34 { "accept_invitation_token": "text" }
Invitation has been accepted
{ "id": 1, "team_owner_id": 1, "name": "text" }
The emails list
POST /teams/{id}/invite HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 13 { "emails": [] }
Invitations have been sent
The new team name
The team data retention policy
PATCH /teams/{id} HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 36 { "name": "text", "retentionPolicy": {} }
Team has been updated
The new team member role
member
administrator
PATCH /teams/{id}/members/{user_id} HTTP/1.1 Host: api-testnet.truvera.io Authorization: Bearer JWT Content-Type: application/json Accept: */* Content-Length: 17 { "role": "member" }
Team member updated
{ "id": 1, "name": "text", "email": "text", "image": "text", "role": "member" }