Update a goal
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Body
-
account_uuids array[string]
The UUIDs of the accounts who should own the goal. These must only be client accounts.
-
name string
The goal's name.
-
description string
The goal's description.
-
target_amount integer
The goal's target amount.
-
progress integer
The goal's progress as a percentage.
-
timeframe string
The goal's timeframe.
-
complete_goal_by string
The goal's deadline as a specific date.
-
priority integer
The goal's priority on a scale from 1 to 5.
PUT
/api/v2/goals/{uuid}
curl \
-X PUT https://api.plannrcrm.com/api/v2/goals/uuid \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
-d '{"account_uuids":["75e5b192-4067-4a91-a26c-2ddb19ded3a1","24d29f17-3393-41c3-84e5-e652bef5c1cf"],"name":"Reduced Mileage","description":"Reduce the amount of gas spent yearly.","target_amount":5000,"progress":68,"timeframe":"Within the year.","complete_goal_by":"2026-01-17T11:18:33+00:00","priority":4}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"account_uuids": [
"75e5b192-4067-4a91-a26c-2ddb19ded3a1",
"24d29f17-3393-41c3-84e5-e652bef5c1cf"
],
"name": "Reduced Mileage",
"description": "Reduce the amount of gas spent yearly.",
"target_amount": 5000,
"progress": 68,
"timeframe": "Within the year.",
"complete_goal_by": "2026-01-17T11:18:33+00:00",
"priority": 4
}
Response examples (200)
{
"name": "Reduced Mileage",
"uuid": "4019e2f2-ec81-4d8f-9ebc-b8b19a23fc5c",
"priority": "4",
"progress": "68",
"timeframe": "Within the year.",
"created_at": "2025-01-17T11:18:33+00:00",
"updated_at": "2025-01-17T11:18:33+00:00",
"description": "Reduce the amount of gas spent yearly.",
"shared_owner": {
"firm": "App\\Http\\Resources\\FirmResource",
"name": "Gareth Thompson",
"role": "client",
"tags": "App\\Http\\Resources\\TagResource",
"type": "client",
"uuid": "910d0e30-4b41-4e9c-b3bb-a11ed898bfb4",
"email": "gareth@codepotato.co.uk",
"groups": "App\\Http\\Resources\\GroupResource",
"owners": "App\\Http\\Resources\\AccountResource",
"last_name": "Thompson",
"created_at": "2025-01-17T11:18:33+00:00",
"first_name": "Gareth",
"updated_at": "2025-01-17T11:18:33+00:00",
"with_login": true,
"custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
"introduced_by": "App\\Http\\Resources\\AccountResource",
"primary_email": "App\\Http\\Resources\\ContactDetailResource",
"can_be_deleted": "false",
"assigned_adviser": "App\\Http\\Resources\\AccountResource",
"next_review_date": "2025-01-17T11:18:33+00:00",
"has_joint_account": true,
"current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
"first_contact_date": "2025-01-17T11:18:33+00:00",
"external_references": "App\\Http\\Resources\\ExternalReferenceResource",
"assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
"previous_review_date": "2025-01-17T11:18:33+00:00",
"primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
"assigned_administrator": "App\\Http\\Resources\\AccountResource",
"anniversary_review_date": "2025-01-17T11:18:33+00:00"
},
"target_amount": {
"amount": {
"example": "4000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"currency": {
"example": "GBP",
"description": "Currency of the money"
},
"formatted": {
"example": "£40.00",
"description": "Money amount formatted with currency"
}
},
"complete_goal_by": "2026-01-17T11:18:33+00:00",
"shared_owner_type": "individual"
}