---
title: "Upsert Organization"
method: PUT
path: "/v2/organization/{org_id}"
---

# Upsert Organization

`PUT /v2/organization/{org_id}`

Upsert an organization by ID. Creates if it does not exist.

## Path parameters

- `org_id` string, required

## Request body

- object
  - `name` string
  - `slug` string

## Response `200`

Successful response

- object
  - `id` string, required
  - `api_key` string, required
  - `created` boolean, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `404` — Not found
- `500` — Internal server error

## Changes

- **2025-09-22** `1b84cd7f5c05` — 1 breaking
  - added required request body

[Change history](https://skmtc.dev/openintegrations/apis/openint-api/changes/v2/organization/:org_id/put.md)

---

[API](https://skmtc.dev/openintegrations/apis/openint-api.md) · [All operations](https://skmtc.dev/openintegrations/apis/openint-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintegrations/openint-api/revisions/1b84cd7f5c05/schema)
