Skill Query API
The Skill Query API allows programmatic access to execute Skill Query queries. The endpoint is read-only.
Endpoint
/2.0/skillquery
Objects used by this API
Skill Query Request object
Defines the JSON object that must be provided in the HTTP request body when calling the Skill Query API. The object can have these properties:
| Name | Data type | Description |
| query | string | The Skill Query statement to execute |
Skill Query Result object
Defines the JSON object that the API will return in the HTTP response body. The object can have these properties:
| Name | Data type | Description |
| status | string | Returns "success" if the query was successful. |
| data | ResultSet object | A Skill Query Result Set. See below. |
ResultSet object
A ResultSet object is returned as the value of the "data" property of the API response.
| Name | Data type | Description |
| columns | array of Column objects | Contains metadata about each of the result table columns. |
| rows | array of Row objects | Contains each result table row. |
| totalRows | integer | The number of rows that the query produced. May be less than the number of rows that are returned in the ResultSet, due to pagination. |
| offset | integer | The pagination offset that applied to this query. |
| limit | integer | The pagination limit that applied to this query, or null if no limit. |
| accessRestrictions | boolean | If "true", indicates that some rows or values may have been suppressed due to security restrictions. |
Column object
The Column object is a property of the Skill Query "data" object
| Name | Data type | Description |
| path | array | Identifies the property that was requested from the Skill Query data model, relative to the query's root collection. For example, in the query "FIND person skills SHOW person.team, skillLevel", the path for the first column would be ["person", "team"]. This refers to the "team" property of the "person" property of the "person skills" collection. |
| title | string | The display name for the column. |
| type | enum | The main data type for values in this column. One of:
|
| processingFunction | enum | (optional) Indicates whether any special processing applied to the values in this column. One of:
|
| groupingValue | string |
(optional) If there are multiple columns with the same property path, contains the value that disambiguates this column from the others. For example, the query "FIND person skills SHOW person, skillLevel BY skill" would return multiple "skillLevel" columns, one for each skill. The groupingValue will contain the name of the skill. |
Row object
The Row object is a property of the Skill Query "data" object
| Name | Data type | Description |
| values | array of Value objects | The values for this result table row |
Value object
The "values" property of the Row object contains an array of Value objects. The properties of a Value object depend on the data returned. Therefore it is not guaranteed that all of the following properties will be available.
Methods
POST /skillquery
Executes a Skill Query query.
The HTTP request body must be a Skill Query Request object (see above).