Goals
GET /goals/:id
Get a long term goal
Examples
curl "https://www.hoshinplan.com/goals/45544?app_key=<APP_KEY>×tamp=<TIMESTAMP>&signature=<SIGNATURE>" \
-H "Accept: application/json"
Response:
{
"id": 21344,
"name": "My goal",
"created_at": "2021-01-28T18:28:23.492Z",
"updated_at": "2021-01-29T09:21:33.533Z",
"hoshin_id": 1234,
"position": 1,
"company_id": 2345234,
"creator_id": 234234,
"deleted_at": null
}
Respuesta
Code: 200
Description:
OK
| Param name | Description |
|---|---|
|
id optional |
Validations:
|
|
name optional |
Validations:
|
|
created_at optional |
Validations:
|
|
updated_at optional |
Validations:
|
|
hoshin_id optional |
The id of the area this goal belongs to Validations:
|
|
company_id optional |
The id of the company this objective belongs to Validations:
|
|
position optional |
Used to sort the goals in the hoshin view Validations:
|
PUT /goals/:id
Update a long term goal
Supported Formats
json, xmlExamples
curl -X PUT "https://www.hoshinplan.com/goals/45544?app_key=<APP_KEY>×tamp=<TIMESTAMP>&signature=<SIGNATURE>" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "This is the new name"
}'
Params
| Param name | Description |
|---|---|
|
name optional |
Validations:
|
|
position optional |
Used to sort the goals in the hoshin view Validations:
|
Respuesta
Code: 200
Description:
The updated long term goal
| Param name | Description |
|---|---|
|
id optional |
Validations:
|
|
name optional |
Validations:
|
|
created_at optional |
Validations:
|
|
updated_at optional |
Validations:
|
|
hoshin_id optional |
The id of the area this goal belongs to Validations:
|
|
company_id optional |
The id of the company this objective belongs to Validations:
|
|
position optional |
Used to sort the goals in the hoshin view Validations:
|
POST /hoshins/:hoshin_id/goals
Create a long term goal for the given hoshin
Supported Formats
json, xmlExamples
curl -X POST "https://www.hoshinplan.com/hoshins/12312/goals?app_key=<APP_KEY>×tamp=<TIMESTAMP>&signature=<SIGNATURE>" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "My new goal"
}'
Params
| Param name | Description |
|---|---|
|
name required |
Validations:
|
|
position optional |
Used to sort the goals in the hoshin view Validations:
|
Respuesta
Code: 201
Description:
The newly created goal
| Param name | Description |
|---|---|
|
id optional |
Validations:
|
|
name optional |
Validations:
|
|
created_at optional |
Validations:
|
|
updated_at optional |
Validations:
|
|
hoshin_id optional |
The id of the area this goal belongs to Validations:
|
|
company_id optional |
The id of the company this objective belongs to Validations:
|
|
position optional |
Used to sort the goals in the hoshin view Validations:
|
DELETE /goals/:id
Delete a long term goal
Examples
curl -X DELETE "https://www.hoshinplan.com/goals/45544?app_key=<APP_KEY>×tamp=<TIMESTAMP>&signature=<SIGNATURE>" \ -H "Accept: application/json"
Respuesta
Code: 204
Description:
No Content
| Param name | Description |
|---|