Skip to Content
API ReferenceGoals

Update Goal Admin

PUT
/api/v1/goals/{goal_id}

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

goal_id*Goal Id

Request Body

application/json
  1. body
parent_goal_id?integer|null
title*Title
description?string|null
owner_type*SKGoalOwnerType
Value in"company""department""team""employee"
owner_id?integer|null
is_shared?Is Shared
Defaultfalse
date_start*Date Start
Formatdate
date_end*Date End
Formatdate
status*SKGoalStatus
Value in"active""completed""cancelled""failed"
weight?|
Default"1.0"
assign_to_id?integer|null
visible_to_ids?array<integer>|null

Response Body

Successful Response

application/json
  1. response
id*Id
datetime_created_at*Datetime Created At
datetime_updated_at*Datetime Updated At
parent_goal_id*integer|null
title*Title
description*string|null
owner_type*SKGoalOwnerType
Value in"company""department""team""employee"
owner_id*Owner Id
is_shared*Is Shared
date_start*Date Start
Formatdate
date_end*Date End
Formatdate
status*SKGoalStatus
Value in"active""completed""cancelled""failed"
progress*string|null
confidence_level*SKGoalConfidenceLevel
Value in"on_track""at_risk""off_track"
weight*Weight
is_archived*Is Archived
created_by*integer|null
assign_to_ids*array<integer>|null
visible_to_ids*array<integer>|null
datetime_key_results_update_at*Datetime Key Results Update At
Example Request
curl -X PUT 'https://api.skailer.com/api/v1/goals/0' \  -H 'Content-Type: application/json' \  -d '{  "title": "string",  "owner_type": "company",  "date_start": "2019-08-24",  "date_end": "2019-08-24",  "status": "active"}'
Example Response
{  "id": 0,  "datetime_created_at": "string",  "datetime_updated_at": "string",  "parent_goal_id": 0,  "title": "string",  "description": "string",  "owner_type": "company",  "owner_id": 0,  "is_shared": true,  "date_start": "2019-08-24",  "date_end": "2019-08-24",  "status": "active",  "progress": "string",  "confidence_level": "on_track",  "weight": "string",  "is_archived": true,  "created_by": 0,  "assign_to_ids": [    0  ],  "visible_to_ids": [    0  ],  "datetime_key_results_update_at": "string"}