---
title: "Send the inventory (plugin)"
method: PUT
path: "/wordpress/connection/inventory"
tags: ["WordPress"]
---

# Send the inventory (plugin)

`PUT /wordpress/connection/inventory`

## Request

- Base URL: `https://api.hypamoon.com/api/v1`
- URL: `https://api.hypamoon.com/api/v1/wordpress/connection/inventory`
- Auth: HTTP bearer

Called by the plugin right after connecting and on Refresh: per kind of data the count, period, statuses and field names (ACF field groups, form fields), never content. Form entries, orders, customers, users, reviews and subscriptions are always marked as personal data. Answers with the selection, with defaults for new keys (content on, personal data off).

## Request body

- object
  - `items` object[], required: One item per kind of data: counts, period and field names, never content.
    - `key` string, required
    - `type` 'content' | 'media' | 'menus' | 'terms' | 'acf_field_groups' | 'acf_options' | 'form_entries' | 'products' | 'orders' | 'customers' | 'users' | 'coupons' | 'shipping' | 'tax' | 'reviews' | 'subscriptions' | 'table' | 'options', required
    - `label` string, required
    - `count` integer, required
    - `oldest` string, nullable
    - `newest` string, nullable
    - `statuses` object, nullable
    - `personal_data` boolean, nullable
    - `fields` object[], nullable
      - `name` string, required
      - `label` string, nullable
      - `type` string, nullable
    - `form` object, nullable
      - `plugin` 'contact_form_7' | 'wpforms' | 'gravity_forms', required
      - `id` union, required
        - string
        - integer
      - `title` string, nullable
    - `post_type` string, nullable
    - `public` boolean, nullable
    - `primary_key` string, nullable
    - `movable` boolean, nullable
    - `note` string, nullable

## Response `200`

inventory_at and the selection.

## Other responses

- `400`: Bad Request: invalid_json.
- `401`: Unauthorized: unauthorized.
- `403`: Forbidden: forbidden.
- `409`: Conflict: conflict.
- `422`: Unprocessable Content: validation_failed.
- `429`: Too Many Requests: rate_limited.
- `500`: Internal Server Error: internal_error.

---

[API](https://skmtc.dev/hypamoon/apis/hypamoon-api.md) · [All operations](https://skmtc.dev/hypamoon/apis/hypamoon-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hypamoon/apis/hypamoon-api/revisions/9f0b90004c06?raw)
