Create MSTeams Configuration

POST {{baseUrl}}/extensions/msteams/config

Add/Update MSTeam to the organization.

id - MS Teams integration ID
organizationid - SQ Organization ID
default
conversationname - Default MS Teams team name
default
conversationid - Default MS Teams team ID
is
active - This is always true
isdefaultactive - Indicates whether the default channel is active
iscustomchannelsactive - Indicates whether TEAM/SERVICE SPECIFIC CHANNEL is enabled
triggers {
all
active - Indicates whether all triggers are active or not
custom - Array of custom triggers [
incident_acknowledged,
incident_resolved,
incident_reassigned,
notes_added
]
}
tenantid - MS Teams Tenant ID
connected
teams - Array of connected teams {
id - mongo object id, does not have significance in terms of business logic, but needs to be included (can be copied from the get response)
teamid - MS Teams team ID
team
name - MS Teams team name
channelconfigurations - Array of MSTeams channel mappings with Squadcast services {
id - mongo object id, does not have significance in terms of business logic, but needs to be included (can be copied from the get response)
squadcast
teamid - Squadcast team ID
squadcast
teamname - Squadcast team name
is
allservices - Indicates whether alerts should be sent for all Squadcast services
services - Array of Squadcast service IDs to receive alerts for specific services (only applicable if is
allservices is false)
msteams
channelid - MS Teams channel ID
msteams
channel_name - MS Teams channel name
}
}

Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Request Body

{"custom_incident_alert_state"=>{"is_trigger_active"=>true, "is_retrigger_active"=>false, "is_acknowledge_active"=>true, "is_resolve_active"=>true, "is_reassign_active"=>true, "is_notes_added_active"=>false, "is_postmortem_active"=>false, "is_priority_updated_active"=>false}, "id"=>"65b1011e57fcf0fe67cdb49b", "organization_id"=>"604592dabc35ea0008bb0584", "default_conversation_name"=>"Staging-General", "default_conversation_id"=>"19:e7iVhIfOKqjvwsyfFM62sgtsvBCkUV_XG_wDCUZ_@thread.tacv2", "is_active"=>true, "is_default_active"=>false, "is_custom_channels_active"=>false, "triggers"=>{"all_active"=>false, "custom"=>["incident_acknowledged", "incident_resolved", "incident_reassigned"]}, "tenant_id"=>"14bc6b02-e808-4172-b72a-2629091f8", "connected_teams"=>[{"id"=>"65b144a757fcf0fe67cdd864", "team_id"=>"19:e7iVhIfOKqjvwsyfFM62sgtsvBCkUV_XG_wDCUZ_x@thread.tacv2", "team_name"=>"Staging", "channel_configurations"=>[{"id"=>"65b90e5891a835e0d7041427", "squadcast_team_id"=>"611262fcd5b4ea846b534a8a", "squadcast_team_name"=>"Default Team", "is_all_services"=>true, "services"=>[], "msteams_channel_id"=>"19:e7iVhIfOKqjvwsyfFM62sgtsvBCkUV_XG_wDCUZw1@thread.tacv2", "msteams_channel_name"=>"General"}, {"id"=>"65ba3b93c2d810e9a0f72a54", "squadcast_team_id"=>"6514223845c0e07d88922fcd", "squadcast_team_name"=>"PK Team", "is_all_services"=>true, "services"=>[], "msteams_channel_id"=>"19:60aa84f648054c9b9ef812c30a0ca@thread.tacv2", "msteams_channel_name"=>"Workflows"}]}, {"id"=>"65b144a757fcf0fe67cdd865", "team_id"=>"19:Q7H1UDqPOHDK6Res02UOhJhktihTmuMhD7PSJXd3L@thread.tacv2", "team_name"=>"Workflows Testing", "channel_configurations"=>[{"id"=>"65b24d4522b4625a14dd19b2", "squadcast_team_id"=>"611262fcd5b4ea846b534a8a", "squadcast_team_name"=>"Default Team", "is_all_services"=>true, "services"=>[], "msteams_channel_id"=>"19:Q7H1UDqPOHDK6Res02UOhJhktihTmuMhD7PSJXd3L@thread.tacv2", "msteams_channel_name"=>"General"}, {"squadcast_team_id"=>"611262fcd5b4ea846b534a8a", "squadcast_team_name"=>"Default Team", "is_all_services"=>true, "services"=>[], "msteams_channel_id"=>"19:41555acc496a4db5b50f0c08bf501@thread.tacv2", "msteams_channel_name"=>"Test"}]}]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationnull
Content-Typestring

RESPONSES

status: Created

{"custom_incident_alert_state":{"is_trigger_active":true,"is_retrigger_active":false,"is_acknowledge_active":true,"is_resolve_active":true,"is_reassign_active":true,"is_notes_added_active":false,"is_postmortem_active":false,"is_priority_updated_active":false},"id":"65b1011e57fcf0fe67cdb49b","organization_id":"604592dabc35ea0008bb0584","default_conversation_name":"Staging-General","default_conversation_id":"19:e7iVhIfOKqjvwsyfFM62sgtsvBCkUV_XG_wDCUZ_@thread.tacv2","is_active":true,"is_default_active":false,"is_custom_channels_active":false,"triggers":{"all_active":false,"custom":["incident_acknowledged","incident_resolved","incident_reassigned"]},"tenant_id":"14bc6b02-e808-4172-b72a-2629091f8","connected_teams":[{"id":"65b144a757fcf0fe67cdd864","team_id":"19:e7iVhIfOKqjvwsyfFM62sgtsvBCkUV_XG_wDCUZ_x@thread.tacv2","team_name":"Staging","channel_configurations":[{"id":"65b90e5891a835e0d7041427","squadcast_team_id":"611262fcd5b4ea846b534a8a","squadcast_team_name":"Default Team","is_all_services":true,"services":[],"msteams_channel_id":"19:e7iVhIfOKqjvwsyfFM62sgtsvBCkUV_XG_wDCUZw1@thread.tacv2","msteams_channel_name":"General"},{"id":"65ba3b93c2d810e9a0f72a54","squadcast_team_id":"6514223845c0e07d88922fcd","squadcast_team_name":"PK Team","is_all_services":true,"services":[],"msteams_channel_id":"19:60aa84f648054c9b9ef812c30a0ca@thread.tacv2","msteams_channel_name":"Workflows"}]},{"id":"65b144a757fcf0fe67cdd865","team_id":"19:Q7H1UDqPOHDK6Res02UOhJhktihTmuMhD7PSJXd3L@thread.tacv2","team_name":"Workflows Testing","channel_configurations":[{"id":"65b24d4522b4625a14dd19b2","squadcast_team_id":"611262fcd5b4ea846b534a8a","squadcast_team_name":"Default Team","is_all_services":true,"services":[],"msteams_channel_id":"19:Q7H1UDqPOHDK6Res02UOhJhktihTmuMhD7PSJXd3L@thread.tacv2","msteams_channel_name":"General"},{"id":"66217021bd4a74239135687e","squadcast_team_id":"611262fcd5b4ea846b534a8a","squadcast_team_name":"Default Team","is_all_services":true,"services":[],"msteams_channel_id":"19:41555acc496a4db5b50f0c08bf501@thread.tacv2","msteams_channel_name":"Test"}]}]}