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
superadminSessioncookie
authjs.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.
id*stringFormat
uuidapplication/json- body
Eigenschaften
1 <= propertiesname?stringLänge
1 <= length <= 160slug?stringMuster
^[a-z0-9]+(?:-[a-z0-9]+)*$Länge
1 <= length <= 48allowNegativeStock?booleanOrganization updated
application/json- response
organization*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 }}