Skip to main content
PUT
/
organisations
/
{orgId}
/
workspaces
/
{workspaceId}
/
outcomes
/
{outcomeId}
Update a goal
curl --request PUT \
  --url https://api.meetsquad.ai/organisations/{orgId}/workspaces/{workspaceId}/outcomes/{outcomeId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Increase User Engagement",
  "description": "We aim to increase daily active users by 25% in Q3",
  "priority": 1,
  "trend": 0,
  "analyticEvents": [
    "event1",
    "event2"
  ],
  "ownerId": "7b9e5d2c-f314-48a9-be56-9843a2f6c019",
  "opportunityIds": [
    "<string>"
  ],
  "metricIds": [
    "<string>"
  ]
}
'
{
  "data": {
    "id": "7b9e5d2c-f314-48a9-be56-9843a2f6c019",
    "title": "Increase User Engagement",
    "description": "We aim to increase daily active users by 25% in Q3",
    "priority": 1,
    "hideContent": false,
    "createdAt": "2023-01-01T00:00:00.000Z",
    "updatedAt": "2023-01-01T00:00:00.000Z",
    "opportunities": [],
    "solutions": [],
    "insights": [],
    "metrics": [],
    "trend": 0,
    "analyticEvents": [
      "event1",
      "event2"
    ],
    "ownerId": "7b9e5d2c-f314-48a9-be56-9843a2f6c019"
  }
}

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

Body

application/json

Request schema for updating an outcome

title
string

Title of the outcome

Example:

"Increase User Engagement"

description
string

Detailed description of the outcome

Example:

"We aim to increase daily active users by 25% in Q3"

priority
number

Priority level of the outcome

Example:

1

trend
number

Trend indicator for the outcome

Example:

0

analyticEvents
string[]

List of analytic events associated with the outcome

Example:
["event1", "event2"]
ownerId
string

ID of the owner of the outcome

Example:

"7b9e5d2c-f314-48a9-be56-9843a2f6c019"

opportunityIds
string[]
metricIds
string[]

Response

Success

Response containing a single outcome

data
object
required

Outcome with relationships