curl --request PUT \
--url https://spectrum.photon.codes/projects/{projectId}/slack/installations/{teamId} \
--header 'Content-Type: application/json' \
--data '
{
"teamName": "<string>",
"appId": "<string>",
"botToken": "<string>",
"botUserId": "<string>",
"grantedScopes": [
"<string>"
],
"botRefreshToken": "<string>",
"botTokenExpiresInSec": 123
}
'{
"succeed": true,
"data": {
"installationId": "<string>",
"appConfigId": "<string>",
"projectId": "<string>",
"teamId": "<string>",
"teamName": "<string>",
"appId": "<string>",
"botToken": "<string>",
"botRefreshToken": "<string>",
"botTokenExpiresAt": "<string>",
"botUserId": "<string>",
"grantedScopes": [
"<string>"
],
"installedAt": "<string>",
"updatedAt": "<string>"
}
}Creates or updates an installation row for a workspace. Called by the OAuth proxy after oauth.v2.access succeeds. Returns 409 if the project has no active Slack app config (caller must PUT /projects/:projectId/slack first).
curl --request PUT \
--url https://spectrum.photon.codes/projects/{projectId}/slack/installations/{teamId} \
--header 'Content-Type: application/json' \
--data '
{
"teamName": "<string>",
"appId": "<string>",
"botToken": "<string>",
"botUserId": "<string>",
"grantedScopes": [
"<string>"
],
"botRefreshToken": "<string>",
"botTokenExpiresInSec": 123
}
'{
"succeed": true,
"data": {
"installationId": "<string>",
"appConfigId": "<string>",
"projectId": "<string>",
"teamId": "<string>",
"teamName": "<string>",
"appId": "<string>",
"botToken": "<string>",
"botRefreshToken": "<string>",
"botTokenExpiresAt": "<string>",
"botUserId": "<string>",
"grantedScopes": [
"<string>"
],
"installedAt": "<string>",
"updatedAt": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.photon.codes/docs/llms.txt
Use this file to discover all available pages before exploring further.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$111111x <= 9007199254740991Was this page helpful?