curl --request POST \
--url https://api.example.com/api/v1/invitations/autojoin \
--header 'Content-Type: application/json' \
--data '
{
"domains": [
"<string>"
],
"scope": "<string>",
"scopeType": "<string>",
"widgetId": "<string>",
"scopeName": "<string>"
}
'{
"autojoinDomains": [
{
"id": "<string>",
"domain": "<string>"
}
],
"invitation": {
"id": "invitation-12345",
"accountId": "account-12345",
"attributes": {},
"clickThroughs": 5,
"configurationAttributes": {},
"createdAt": "2023-10-01T12:00:00Z",
"deactivated": false,
"deliveryCount": 3,
"deliveryTypes": [
"email",
"sms"
],
"foreignCreatorId": "creator-12345",
"invitationType": "single_use",
"modifiedAt": "2023-10-01T12:00:00Z",
"status": "queued",
"target": [
{
"type": "email",
"value": "[email protected]"
}
],
"views": 10,
"widgetConfigurationId": "widget-12345",
"projectId": "project-67890",
"groups": [
{
"type": "workspace",
"id": "workspace-12345",
"name": "Development Team"
}
],
"accepts": [
{
"id": "accept-12345",
"status": "accepted"
}
],
"scope": "6b366c56-c0a9-4689-b763-20c890481bc8",
"scopeType": "project",
"expired": false,
"expires": "2023-11-01T12:00:00Z"
}
}This endpoint syncs autojoin domains for a target scope. It will add new domains, remove domains not in the provided list, and deactivate the autojoin invitation if all domains are removed (empty array). When domains are added back after removal, the invitation will be automatically reactivated.
curl --request POST \
--url https://api.example.com/api/v1/invitations/autojoin \
--header 'Content-Type: application/json' \
--data '
{
"domains": [
"<string>"
],
"scope": "<string>",
"scopeType": "<string>",
"widgetId": "<string>",
"scopeName": "<string>"
}
'{
"autojoinDomains": [
{
"id": "<string>",
"domain": "<string>"
}
],
"invitation": {
"id": "invitation-12345",
"accountId": "account-12345",
"attributes": {},
"clickThroughs": 5,
"configurationAttributes": {},
"createdAt": "2023-10-01T12:00:00Z",
"deactivated": false,
"deliveryCount": 3,
"deliveryTypes": [
"email",
"sms"
],
"foreignCreatorId": "creator-12345",
"invitationType": "single_use",
"modifiedAt": "2023-10-01T12:00:00Z",
"status": "queued",
"target": [
{
"type": "email",
"value": "[email protected]"
}
],
"views": 10,
"widgetConfigurationId": "widget-12345",
"projectId": "project-67890",
"groups": [
{
"type": "workspace",
"id": "workspace-12345",
"name": "Development Team"
}
],
"accepts": [
{
"id": "accept-12345",
"status": "accepted"
}
],
"scope": "6b366c56-c0a9-4689-b763-20c890481bc8",
"scopeType": "project",
"expired": false,
"expires": "2023-11-01T12:00:00Z"
}
}Autojoin configuration for a target scope. Provide the complete list of domains to sync.