Teams
The token received in the mail
Invitation has been accepted
Error accepting the invitation
POST /teams/accept-member-invite HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"accept_invitation_token": "text"
}
{
"id": 1,
"team_owner_id": 1,
"name": "text"
}
An ID
The emails list
Invitations have been sent
Error sending the invitations
You are not the owner or the administrator of this team
Transaction limit reached or upgrade required to proceed
POST /teams/{id}/invite HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"emails": []
}
{
"code": 1
}
An ID
The new team name
The team data retention policy
Whether to store the subject reference in the team
Team has been updated
Error updating team
You are not the owner or the administrator of this team
PATCH /teams/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"name": "text",
"retentionPolicy": {},
"storeSubjectRef": true
}
{
"id": 1,
"team_owner_id": 1,
"name": "text"
}
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)
A paged array of invitations
Application error
GET /teams/{id}/invitations HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 1,
"email": "text",
"status": "pending"
}
]
An ID
An ID
The invitation has been resent
Application error
You are not the owner or the administrator of this team
Invitation not found
POST /teams/{id}/invitations/{invitation_id}/resend HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"code": 1
}
An ID
An ID
The invitation has been canceled.
Application error
You are not the owner or the administrator of this team
Invitation not found
POST /teams/{id}/invitations/{invitation_id}/cancel HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"code": 1
}
An ID
How many items to offset by for pagination
0
How many items to return at one time (max 64)
64
A paged array of team members
Application error
GET /teams/{id}/members HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 1,
"name": "text",
"email": "text",
"image": "text",
"role": "member"
}
]
An ID
An ID
Team member deleted
No content
Error deleting team member
You are not the owner or the administrator of this team
Team member was not found
DELETE /teams/{id}/members/{user_id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
An ID
An ID
The new team member role
Team member updated
Error updating team member
You are not the owner or the administrator of this team
Team member was not found
PATCH /teams/{id}/members/{user_id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"role": "member"
}
{
"id": 1,
"name": "text",
"email": "text",
"image": "text",
"role": "member"
}
Last updated
Was this helpful?