# Search position skill requirements

Operation ID: `searchPositionSkillRequirements`

Group: People Management › Position Skill Requirements

[Open in the interactive reference](https://docs.api.lensing.ai/lensing/v1/endpoints/searchPositionSkillRequirements)

`POST /people/position-skill-requirements/search`

Read-only: A read that takes its filters in the body. Changes nothing, and ignores Idempotency-Key.

Searches position skill requirements in every status. A requirement must match every filter you send. To find the requirement another system knows, filter on externalIdentifier; several records can share one value, so check how many come back.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Api-Version` | header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version `v1`. |

## Request body

Required, `application/json`: searchPositionSkillRequirementsInput.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `filters` | object | no | The filters to apply. A requirement must match every filter you send. Omit to return all requirements. |
| `filters.ids` | array<string> | no | Limits results to the requirements with these identifiers. |
| `filters.externalIdentifier` | object | no | Limits results to requirements that carry this external identifier. Several records can share one value. |
| `filters.externalIdentifier.fieldName` | string | yes | The configured key, for example 'apposeId'. A key that is not configured fails with UNKNOWN_EXTERNAL_IDENTIFIER. |
| `filters.externalIdentifier.value` | string | yes | The identifier in the other system. The match is exact. |
| `filters.positionId` | string | no | Limits results to this position's requirements. |
| `filters.skillId` | string | no | Limits results to requirements for this skill. |
| `filters.skillLevelId` | string | no | Limits results to requirements at this skill level. |
| `filters.minimumSeniorityId` | string | no | Limits results to requirements from this seniority. |
| `filters.status` | string | no | Limits results to requirements with this status. One of: `"Active"`, `"Inactive"`, `"Deprecated"`. |
| `page` | object | no | Pagination controls. Omit for the first page. |
| `page.cursor` | string | no | The cursor from the previous response's pagination.nextCursor. Omit on the first request. Do not construct it. |
| `page.size` | number | no | The number of requirements per page, between 1 and 200. Defaults to 50. A value above 200 is treated as 200. |

```json
{}
```

## Response

`200` Success

Under `data` (searchPositionSkillRequirementsOutput):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `items` | array<object> | yes | The requirements on this page. An empty array when nothing matches. |
| `items[].id` | string | yes | The unique identifier for the requirement. |
| `items[].positionId` | string | yes | The position that needs the skill. See id on GET people/positions. |
| `items[].skillId` | string | yes | The skill the position needs. See id on GET people/skills. |
| `items[].skillLevelId` | string | yes | The skill level the position needs. |
| `items[].minimumSeniorityId` | string | no | The lowest position seniority the requirement applies from. See id on GET people/position-seniorities. Absent when it applies to every seniority. |
| `items[].sboContextIds` | array<string> | yes | The SBO context lines the requirement is limited to. An empty array when it applies in every context. |
| `items[].status` | string | yes | The status of the requirement. One of: `"Active"`, `"Inactive"`, `"Deprecated"`. |
| `items[].externalIdentifiers` | array<object> | no | Identifiers owned by other systems. At most one entry per fieldName. Absent when there are none. |
| `items[].externalIdentifiers[].fieldName` | string | yes | The configured key of the identifier, for example 'apposeId'. |
| `items[].externalIdentifiers[].value` | string | yes | The identifier as the other system holds it. |
| `items[].externalIdentifiers[].externalUrl` | string | no | An absolute http(s) link to the record in the other system. |
| `items[].lastModifiedDate` | date-time | yes | The date and time the requirement last changed, in UTC. Format YYYY-MM-DDTHH:mm:ss.sssZ. Changes to external identifiers alone do not move it. |
| `pagination` | object | yes | Cursor and flag for fetching the next page. |
| `pagination.nextCursor` | string | no | Pass back as page.cursor. Absent on the last page. |
| `pagination.hasMore` | boolean | yes | Whether a further page exists. |

```json
{
  "data": {
    "items": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "positionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "skillId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "skillLevelId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "minimumSeniorityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "sboContextIds": [
          "<sboContextIds>"
        ],
        "status": "Active",
        "externalIdentifiers": [
          {
            "fieldName": "<fieldName>",
            "value": "<value>",
            "externalUrl": "<externalUrl>"
          }
        ],
        "lastModifiedDate": "2026-01-15T09:30:00.000Z"
      }
    ],
    "pagination": {
      "nextCursor": "<nextCursor>",
      "hasMore": true
    }
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}
```

## Errors

| Code | Status |
| --- | --- |
| `TOO_MANY_ITEMS` | 400 |
| `UNKNOWN_EXTERNAL_IDENTIFIER` | 400 |
| `INVALID_CURSOR` | 400 |

## Statuses

- `400` — Invalid request or business failure. Codes: TOO_MANY_ITEMS, UNKNOWN_EXTERNAL_IDENTIFIER, INVALID_CURSOR
- `401` — The request carries no valid access token.
- `403` — Not authorized
- `404` — Not found
- `429` — Too many requests from this client address. The response has no body and no `Retry-After` header.
- `500` — Internal server error
