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": []
}
}
}
}Updates workspace name, logo, settings, or integration configuration.
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": []
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.