---
title: "Create a GCP inventory"
method: POST
path: "/api/v1/account/organizations/{id}/inventories/gcp"
tags: ["Inventories"]
---

# Create a GCP inventory

`POST /api/v1/account/organizations/{id}/inventories/gcp`

## Request

- Base URL: `https://pcp.example.com`
- URL: `https://pcp.example.com/api/v1/account/organizations/{id}/inventories/gcp`
- Auth: HTTP bearer

## Path parameters

- `id` string, uuid, required

## Request body

- InventoryGCPCreate: InventoryGCPCreate schema
  - `gcp_configuration` object
    - `gcp_project_id` object
      - `provider` object, nullable
        - `id` string, uuid
      - `value` string
    - `gcp_service_account_json` object
      - `provider` object, nullable
        - `id` string, uuid
      - `value` string
  - `name` string

## Response `200`

OK

- InventoryCreateResponse: InventoryCreateResponse schema
  - `created_at` string, date-time
  - `id` string, uuid
  - `name` string

## Other responses

- `400`: Bad Request _(validation or deserialization error)_
- `401`: Missing, invalid or expired credentials
- `403`: The caller may not do this
- `500`: Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1.md) - [All operations](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/revisions/2ac049494a01?raw)
