Skip to main content
PUT
/
projects
/
{projectId}
/
slack
/
installations
/
{teamId}
Upsert Slack installation
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.

Path Parameters

projectId
string<uuid>
required
Pattern: ^([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)$
teamId
string
required
Minimum string length: 1

Body

teamName
string
required
Minimum string length: 1
appId
string
required
Minimum string length: 1
botToken
string
required
Minimum string length: 1
botUserId
string
required
Minimum string length: 1
grantedScopes
string[]
required
botRefreshToken
string
Minimum string length: 1
botTokenExpiresInSec
integer
Required range: x <= 9007199254740991

Response

200 - application/json

Response for status 200

succeed
boolean
required
data
object
required