Skip to main content
PUT
/
workspaces
Update workspace
curl --request PUT \
  --url https://app2.freyavoice.ai/api/v2/workspaces \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "logoPath": "<string>",
  "workspaceSettings": {
    "language": "en",
    "webhooks": {}
  },
  "integrationVersion": "<string>",
  "assistantIds": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "message": "<string>",
    "result": {
      "workspace": {
        "id": "<string>",
        "name": "<string>",
        "ownerId": "<string>",
        "createdAt": "<string>",
        "updatedAt": "<string>",
        "workspaceSettings": {
          "workspaceId": "<string>",
          "language": "<string>",
          "webhooks": {}
        },
        "workspaceIntegrations": {
          "workspaceId": "<string>",
          "version": "<string>",
          "assistantIds": []
        },
        "logoPath": "<string>",
        "workspaceMembers": [],
        "workspaceInvitations": []
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspaceId
string<uuid>
required

Workspace ID

name
string

Workspace name

logoPath
string

Path to workspace logo

workspaceSettings
object

Workspace settings

integrationVersion
string

Integration version

assistantIds
string[]

List of assistant IDs

Response

Workspace updated

success
enum<boolean>
required
Available options:
true,
false
data
object
required