POST /hoshins/:hoshin_id/areas
Create an area for the given Hoshin

Ejemplos

curl -X POST "https://www.hoshinplan.com/hoshins/12423/areas?app_key=<APP_KEY>&timestamp=<TIMESTAMP>&signature=<SIGNATURE>" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
  "name": "My new area",
  "description": "This is my area created through the API",
  "color": "#DAF3F8"
}'

Parámetros

Nombre del parámetro Descripción
name
opcional

Validations:

  • Must be a String

description
opcional

Validations:

  • Must be a String

position
opcional

Used to sort the areas in the hoshin view

Validations:

  • Must be a number.

color
opcional

The color of the postits for this area in the kanban view

Validations:

  • Must be a String

Respuesta

Código HTTP: 201

Descripción:

The newly created area

Nombre del parámetro Descripción
id
opcional

Validations:

  • Must be a number.

name
opcional

Validations:

  • Must be a String

description
opcional

Validations:

  • Must be a String

created_at
opcional

Validations:

  • Must be Date.

updated_at
opcional

Validations:

  • Must be Date.

hoshin_id
opcional

The id of the area this area belongs to

Validations:

  • Must be a number.

company_id
opcional

The id of the company this area belongs to

Validations:

  • Must be a number.

position
opcional

Used to sort the areas in the hoshin view

Validations:

  • Must be a number.

creator_id
opcional

The id of the user that created this area

Validations:

  • Must be a number.

color
opcional

The color of the postits for this area in the kanban view

Validations:

  • Must be a String


PUT /areas/:id
Edit an area

Formatos soportados

json, xml

Ejemplos

curl -X PUT "https://www.hoshinplan.com/areas/32423?app_key=<APP_KEY>&timestamp=<TIMESTAMP>&signature=<SIGNATURE>" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
  "description": "The new description"
}'

Parámetros

Nombre del parámetro Descripción
name
opcional

Validations:

  • Must be a String

description
opcional

Validations:

  • Must be a String

position
opcional

Used to sort the areas in the hoshin view

Validations:

  • Must be a number.

color
opcional

The color of the postits for this area in the kanban view

Validations:

  • Must be a String

Respuesta

Código HTTP: 200

Descripción:

The updated area

Nombre del parámetro Descripción
id
opcional

Validations:

  • Must be a number.

name
opcional

Validations:

  • Must be a String

description
opcional

Validations:

  • Must be a String

created_at
opcional

Validations:

  • Must be Date.

updated_at
opcional

Validations:

  • Must be Date.

hoshin_id
opcional

The id of the area this area belongs to

Validations:

  • Must be a number.

company_id
opcional

The id of the company this area belongs to

Validations:

  • Must be a number.

position
opcional

Used to sort the areas in the hoshin view

Validations:

  • Must be a number.

creator_id
opcional

The id of the user that created this area

Validations:

  • Must be a number.

color
opcional

The color of the postits for this area in the kanban view

Validations:

  • Must be a String


DELETE /areas/:id
Delete an area

Ejemplos

curl -X DELETE "https://www.hoshinplan.com/areas/45544?app_key=<APP_KEY>&timestamp=<TIMESTAMP>&signature=<SIGNATURE>" \
-H "Accept: application/json"

Respuesta

Código HTTP: 204

Descripción:

No Content

Nombre del parámetro Descripción

GET /areas/:id
Get an area

Ejemplos

curl "https://www.hoshinplan.com/areas/31234?app_key=<APP_KEY>&timestamp=<TIMESTAMP>&signature=<SIGNATURE>" \
-H "Content-Type: application/json" \
-H "Accept: application/json"


Response:
{
    "id": 31234,
    "name": "My area",
    "description": "",
    "created_at": "2021-01-28T18:28:23.492Z",
    "updated_at": "2021-01-29T09:21:33.533Z",
    "hoshin_id": 1234,
    "position": 1,
    "company_id": 2345234,
    "color": "#DAF3F8",
    "deleted_at": null
}

Respuesta

Código HTTP: 200

Descripción:

OK

Nombre del parámetro Descripción
id
opcional

Validations:

  • Must be a number.

name
opcional

Validations:

  • Must be a String

description
opcional

Validations:

  • Must be a String

created_at
opcional

Validations:

  • Must be Date.

updated_at
opcional

Validations:

  • Must be Date.

hoshin_id
opcional

The id of the area this area belongs to

Validations:

  • Must be a number.

company_id
opcional

The id of the company this area belongs to

Validations:

  • Must be a number.

position
opcional

Used to sort the areas in the hoshin view

Validations:

  • Must be a number.

creator_id
opcional

The id of the user that created this area

Validations:

  • Must be a number.

color
opcional

The color of the postits for this area in the kanban view

Validations:

  • Must be a String