Import teams
curl --request POST \
--url https://api.letsdothis.com/v0/teams/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"teams": [
{
"externalTeamId": "<string>",
"teamName": "<string>",
"memberParticipantIds": [
"<string>"
],
"isPrivate": true,
"captainParticipantId": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
teams: [
{
externalTeamId: '<string>',
teamName: '<string>',
memberParticipantIds: ['<string>'],
isPrivate: true,
captainParticipantId: '<string>'
}
]
})
};
fetch('https://api.letsdothis.com/v0/teams/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/teams/import"
payload = { "teams": [
{
"externalTeamId": "<string>",
"teamName": "<string>",
"memberParticipantIds": ["<string>"],
"isPrivate": True,
"captainParticipantId": "<string>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"jobId": "6628293a4b5c6d7e8f901a2b",
"status": "queued"
}{
"statusCode": 400,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 409,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 413,
"error": "<string>",
"message": "<string>"
}{
"error": "validation_failed",
"message": "<string>",
"totalRows": 123,
"rowsWithErrors": 123,
"errorCount": 123,
"summary": [
{
"code": "<string>",
"count": 123,
"message": "<string>",
"examples": [
{
"rowIndex": 123,
"externalTeamId": "<string>",
"value": "<string>"
}
],
"fieldId": "<string>"
}
],
"errors": [
{
"rowIndex": 123,
"errors": [
{
"code": "<string>",
"message": "<string>",
"fieldId": "<string>"
}
],
"externalTeamId": "<string>"
}
],
"truncated": true
}{
"statusCode": 429,
"error": "<string>",
"message": "<string>"
}Teams
Import teams
Creates teams and puts participants you’ve already imported in them, in the background as a job you poll. See how imports work.
How to use it
- Import the bookings first, then send each team with its members’ participant ids.
- Members are added as an organizer adds them in the dashboard: a participant already in another team is moved, team size limits don’t apply, and no emails are sent.
- Each
externalTeamIdis imported once per event occurrence. Sending it again with the same details reuses the team and adds any missing members. The same id with a different program, name, privacy or non-participating captain fails that team.
POST
/
v0
/
teams
/
import
Import teams
curl --request POST \
--url https://api.letsdothis.com/v0/teams/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"teams": [
{
"externalTeamId": "<string>",
"teamName": "<string>",
"memberParticipantIds": [
"<string>"
],
"isPrivate": true,
"captainParticipantId": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
teams: [
{
externalTeamId: '<string>',
teamName: '<string>',
memberParticipantIds: ['<string>'],
isPrivate: true,
captainParticipantId: '<string>'
}
]
})
};
fetch('https://api.letsdothis.com/v0/teams/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/teams/import"
payload = { "teams": [
{
"externalTeamId": "<string>",
"teamName": "<string>",
"memberParticipantIds": ["<string>"],
"isPrivate": True,
"captainParticipantId": "<string>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"jobId": "6628293a4b5c6d7e8f901a2b",
"status": "queued"
}{
"statusCode": 400,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 409,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 413,
"error": "<string>",
"message": "<string>"
}{
"error": "validation_failed",
"message": "<string>",
"totalRows": 123,
"rowsWithErrors": 123,
"errorCount": 123,
"summary": [
{
"code": "<string>",
"count": 123,
"message": "<string>",
"examples": [
{
"rowIndex": 123,
"externalTeamId": "<string>",
"value": "<string>"
}
],
"fieldId": "<string>"
}
],
"errors": [
{
"rowIndex": 123,
"errors": [
{
"code": "<string>",
"message": "<string>",
"fieldId": "<string>"
}
],
"externalTeamId": "<string>"
}
],
"truncated": true
}{
"statusCode": 429,
"error": "<string>",
"message": "<string>"
}This endpoint is restricted and not generally available: organizations that have not been enabled receive a
403. Contact your Let’s Do This representative if you’d like access.Authorizations
Body
application/json
Was this page helpful?

