Move a goal between This Week and Next Week (drag-and-drop).
PATCH
/goals/{goalId}/move
const url = 'https://api.gospl.example/v1/goals/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/move';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"targetWeek":"this"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.gospl.example/v1/goals/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/move \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "targetWeek": "this" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” goalId
required
string format: uuid
Request Body required
Section titled “Request Body required ” Media type application/json
object
targetWeek
required
Only active columns accept new/moved goals; Previous is read-only.
string
Responses
Section titled “ Responses ”Moved.
Media type application/json
object
id
required
string format: uuid
title
required
string
description
string
type
required
string
status
required
string
weekStart
required
Anchors the goal to a week (G2).
string format: date
dateSet
required
string format: date-time
dateCompleted
string format: date-time
Example
{ "type": "professional", "status": "active"}Missing/invalid credentials.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}Authenticated but not permitted (incl. cross-tenant, out-of-chain).
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}Not found within the caller’s tenant.
Media type application/json
object
code
required
string
message
required
string
Example generated
{ "code": "example", "message": "example"}