Open Inventory / Docs
EndpunkteOrganizationsAdminOrganizationsId

Update any organization as a deployment superadmin

Die API läuft auf deiner Anwendungsinstanz. Schemas und Feldnamen stammen unverändert aus der OpenAPI-Spezifikation. Browsergebundene Aufrufe benötigen eine Sitzung auf der Instanz.

PATCH
/admin/organizations/{id}

Authentifizierung

superadminSession
cookieauthjs.session-token<token>

Auth.js browser session cookie for an account whose email is listed in the deployment's SUPERADMIN_EMAILS environment variable. HTTPS deployments use the secure-prefixed cookie variant.

Pfadparameter

id*string
Formatuuid

Anfrageinhalt

application/json
  1. body
Eigenschaften1 <= properties
name?string
Länge1 <= length <= 160
slug?string
Muster^[a-z0-9]+(?:-[a-z0-9]+)*$
Länge1 <= length <= 48
allowNegativeStock?boolean

Antwortinhalt

Organization updated

application/json
  1. response
organization*
Beispielanfrage
curl -X PATCH 'https://inventory.example.com/api/v1/admin/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Beispielantwort
{  "organization": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "slug": "string",    "isReadOnly": true,    "allowNegativeStock": true  }}