Skip to main content
POST
/
organisations
/
{orgId}
/
workspaces
/
{workspaceId}
/
opportunities
/
{opportunityId}
/
relationships
/
{action}
Manage opportunity relationships
curl --request POST \
  --url https://api.meetsquad.ai/organisations/{orgId}/workspaces/{workspaceId}/opportunities/{opportunityId}/relationships/{action} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "solutionIds": [
    "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d"
  ],
  "outcomeIds": [
    "f6e5d4c3-b2a1-4b5a-9c8d-1e0f2a3b4c5d"
  ],
  "insightIds": [
    "c5d4e3f2-a1b2-4c5d-8e9f-0a1b2c3d4e5f"
  ]
}
'

Authorizations

Authorization
string
header
required

JWT authentication for organization-scoped endpoints.

Path Parameters

orgId
string
required

Organization ID

workspaceId
string
required

Workspace ID

opportunityId
string
required

Opportunity ID

action
enum<string>
required

Action to perform on relationships

Available options:
add,
remove

Body

application/json

Request body for managing opportunity relationships

solutionIds
string[]

Array of solution IDs to associate with the opportunity

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

Array of outcome IDs to associate with the opportunity

Example:
["f6e5d4c3-b2a1-4b5a-9c8d-1e0f2a3b4c5d"]
insightIds
string[]

Array of insight IDs to associate with the opportunity

Example:
["c5d4e3f2-a1b2-4c5d-8e9f-0a1b2c3d4e5f"]

Response

Relationships successfully modified