Skip to Content
API ReferenceGoals

Goals Admin Search

POST
/api/v1/goals/search

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
page_number?Page Number
Range0 < value
Default1
parent_goal_id?array<integer>|null
text?string|null
owner_type?array<>|null
owner_id?array<integer>|null
is_shared?boolean|null
date_period_start?|null
date_period_end?|null
status?array<>|null
confidence_level?array<>|null
only_top_level?Only Top Level
Defaultfalse

Response Body

Successful Response

application/json
  1. response
items*array<>
metadata*
Example Request
curl -X POST 'https://api.skailer.com/api/v1/goals/search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "items": [    {      "id": 0,      "datetime_created_at": "string",      "datetime_updated_at": "string",      "parent_goal": {        "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"      },      "title": "string",      "description": "string",      "owner_type": "company",      "owner_employee_id": 0,      "owner_department_id": 0,      "owner_team_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,      "goal_key_results": [        {          "id": 0,          "datetime_created_at": "string",          "datetime_updated_at": "string",          "goal_id": 0,          "title": "string",          "description": "string",          "metric_type": "number",          "start_value": {            "value_float": "string",            "value_bool": true,            "value_text": "string"          },          "target_value": {            "value_float": "string",            "value_bool": true,            "value_text": "string"          },          "current_value": {            "value_float": "string",            "value_bool": true,            "value_text": "string"          },          "progress": "string",          "confidence_level": "on_track",          "weight": "string",          "goal_key_result_check_ins": [            {              "id": 0,              "datetime_created_at": "string",              "datetime_updated_at": "string",              "goal_id": 0,              "goal_key_result_id": 0,              "employee_id": 0,              "value": "string"            }          ]        }      ],      "goal_key_results_count": 0,      "acl": {        "can_edit": false,        "can_delete": false      },      "has_children": true,      "created_by": {        "id": 0,        "first_name": "string",        "last_name": "string",        "email": "string",        "is_archived": false      },      "assign_to": {        "id": 0,        "first_name": "string",        "last_name": "string",        "email": "string",        "is_archived": false      },      "visible_to": [        {          "id": 0,          "first_name": "string",          "last_name": "string",          "email": "string",          "is_archived": false        }      ],      "datetime_key_results_update_at": "string"    }  ],  "metadata": {    "page_number": 1,    "total_pages": 0,    "items": 0,    "items_per_page": 0,    "total_items": 0  }}