---
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

---

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