Update a goal
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Body
-
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/v1/client/{client_uuid}/goal/{uuid}
curl \
-X PUT https://api.plannrcrm.com/api/v1/client/client_uuid/goal/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 '{"name":"Reduced Mileage","description":"Reduce the amount of gas spent yearly.","target_amount":5000,"progress":68,"timeframe":"Within the year.","complete_goal_by":"2025-11-20T13:24:00+00:00","priority":4,"shared_owner_uuid":"14afdc61-eb11-44a6-8080-c34952b6e0bb"}'
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
{
"name": "Reduced Mileage",
"description": "Reduce the amount of gas spent yearly.",
"target_amount": 5000,
"progress": 68,
"timeframe": "Within the year.",
"complete_goal_by": "2025-11-20T13:24:00+00:00",
"priority": 4,
"shared_owner_uuid": "14afdc61-eb11-44a6-8080-c34952b6e0bb"
}
Response examples (200)
{
"name": "Reduced Mileage",
"uuid": "8b7713d2-04d2-4717-aebb-d858788d3df9",
"priority": "4",
"progress": "68",
"timeframe": "Within the year.",
"created_at": "2024-11-20T13:24:00+00:00",
"updated_at": "2024-11-20T13:24:00+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": "779ff6d1-bb5c-496e-88a7-a7a2affff2f2",
"email": "gareth@codepotato.co.uk",
"groups": "App\\Http\\Resources\\GroupResource",
"owners": "App\\Http\\Resources\\AccountResource",
"last_name": "Thompson",
"created_at": "2024-11-20T13:24:00+00:00",
"first_name": "Gareth",
"updated_at": "2024-11-20T13:24:00+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": "2024-11-20T13:24:00+00:00",
"has_joint_account": true,
"current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
"first_contact_date": "2024-11-20T13:24:00+00:00",
"external_references": "App\\Http\\Resources\\ExternalReferenceResource",
"assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
"previous_review_date": "2024-11-20T13:24:00+00:00",
"primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
"assigned_administrator": "App\\Http\\Resources\\AccountResource",
"anniversary_review_date": "2024-11-20T13:24:00+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": "2025-11-20T13:24:00+00:00",
"shared_owner_type": "individual"
}