Skip to main content
POST
/
organisations
/
{orgId}
/
workspaces
/
{workspaceId}
/
outcomes
/
{outcomeId}
/
relationships
/
{action}
Manage goal relationships
curl --request POST \
  --url https://api.meetsquad.ai/organisations/{orgId}/workspaces/{workspaceId}/outcomes/{outcomeId}/relationships/{action} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "opportunityIds": [
    "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d"
  ],
  "metricIds": [
    "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

outcomeId
string
required

Outcome ID

action
enum<string>
required

Action to perform on relationships

Available options:
add,
remove

Body

application/json

Request body for managing outcome relationships

opportunityIds
string[]

Array of opportunity IDs to associate with the outcome

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

Array of metric IDs to associate with the outcome

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

Response

Relationships successfully modified