Skip to main content
PUT
/
analytics
/
widgets
Batch update widget positions
curl --request PUT \
  --url https://app2.freyavoice.ai/api/v2/analytics/widgets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updates": [
    {
      "widgetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "rowIndex": 1,
      "sortOrder": 1
    }
  ]
}
'
{
  "success": true,
  "data": {
    "message": "<string>",
    "result": {
      "success": true
    }
  }
}

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
Minimum string length: 1
updates
object[]
required
Minimum array length: 1

Response

Batch update result

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