Skip to main content
POST
/
organisations
/
{orgId}
/
workspaces
/
{workspaceId}
/
metrics
/
{metricId}
/
relationships
/
{action}
Manage metric relationships
curl --request POST \
  --url https://api.meetsquad.ai/organisations/{orgId}/workspaces/{workspaceId}/metrics/{metricId}/relationships/{action} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "outcomeIds": [
    "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d"
  ]
}
'

Authorizations

Authorization
string
header
required

JWT authentication for organization-scoped endpoints.

Path Parameters

orgId
string
required

Organization ID

workspaceId
string
required

Workspace ID

metricId
string
required

Metric ID

action
enum<string>
required

Action to perform on relationships

Available options:
add,
remove

Body

application/json

Request body for managing metric relationships

outcomeIds
string[]

Array of outcome IDs to associate with the metric

Example:
["a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d"]

Response

Relationships successfully modified