# Searches for memberships using predefined parameters

Searches for memberships using predefined parameters

Endpoint: POST /memberships/{tenantId}/search
Version: v1-2025-04-18
Security: knox-authorizer

## Security:

  - `knox-authorizer` (unknown)
    http bearer JWT

## Path parameters:

  - `tenantId` (string, required)
    The id of the tenant being accessed.

## Query parameters:

  - `exclusiveStartKey` (string)
    The start key for the search, for paging support

  - `fieldsToReturn` (string)
    The fields that you want to retrieve; if omitted, the entire object is returned

## Request body:

  - `application/json` (unknown)
    The membership that you would like to be saved.

## Request fields (application/json):

  - `city` (string)

  - `email_address` (string)

  - `expiration_date` (array)

  - `id` (array)
    IDs to search

  - `is_new` (string)

  - `job_title` (string)

  - `join_date` (array)

  - `name` (string)

  - `number` (array)

  - `origin` (array)

  - `owner_type` (string)

  - `package_id` (array)

  - `renewal_date` (array)

  - `state` (string)

  - `status` (array)

  - `status_reason_id` (array)

  - `termination_date` (array)

  - `type_id` (array)

## Response 200:

  - `200` (unknown)
    The membership search was saved successfully.

## Response 200 fields (application/json):

  - `Items` (array)

  - `Items.city` (string)

  - `Items.email_address` (string)

  - `Items.expiration_date` (string)

  - `Items.id` (string)

  - `Items.is_new` (string)

  - `Items.job_title` (string)

  - `Items.join_date` (string)

  - `Items.number` (number)

  - `Items.origin` (string)

  - `Items.owner_type` (string)

  - `Items.package_id` (string)

  - `Items.renewal_date` (string)

  - `Items.state` (string)

  - `Items.status` (string)

  - `Items.status_reason_id` (string)

  - `Items.termination_date` (string)

  - `Items.type_id` (string)

  - `LastEvaluatedKey` (string)

## Response 200 headers (application/json):

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 400:

  - `400` (unknown)
    The membership you supplied was invalid.

## Response 400 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 401:

  - `401` (unknown)
    Unauthorized.

## Response 401 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 403:

  - `403` (unknown)
    Forbidden.

## Response 403 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 404:

  - `404` (unknown)
    The resource could not be found

## Response 404 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 409:

  - `409` (unknown)
    The membership could not be saved because it refers to/depends on a non-existent object.

## Response 409 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 429:

  - `429` (unknown)
    Limit exceeded... unable to add membership based on tenant limits.

## Response 429 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

## Response 500:

  - `500` (unknown)
    General server error.

## Response 500 headers:

  - `Access-Control-Allow-Headers` (string)

  - `Access-Control-Allow-Methods` (string)

  - `Access-Control-Allow-Origin` (string)

