{"meta":{"title":"REST-API-Endpunkte für Unternehmensorganisationen","intro":"Verwende die REST-API zum Erstellen von Organisationen in deinem Unternehmen.","product":"REST-API","breadcrumbs":[{"href":"/de/enterprise-server@3.19/rest","title":"REST-API"},{"href":"/de/enterprise-server@3.19/rest/enterprise-admin","title":"Enterprise-Verwaltung"},{"href":"/de/enterprise-server@3.19/rest/enterprise-admin/orgs","title":"Organisationen"}],"documentType":"article"},"body":"# REST-API-Endpunkte für Unternehmensorganisationen\n\nVerwende die REST-API zum Erstellen von Organisationen in deinem Unternehmen.\n\n## Informationen zur Organisationsverwaltung\n\nDiese Endpunkte sind nur für [authentifizierte](/de/enterprise-server@3.19/rest/authentication/authenticating-to-the-rest-api) Websiteadministrator\\*innen verfügbar. Normale Benutzer erhalten eine `404`-Antwort.\n\n> \\[!NOTE]\n> Diese Endpunkte unterstützen nur die Authentifizierung über ein personal access token (classic). Weitere Informationen finden Sie unter [Verwalten deiner persönlichen Zugriffstoken](/de/enterprise-server@3.19/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic).\n\n> \\[!NOTE]\n> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2022-11-28`. Curl examples below omit these standard headers for brevity.\n\n## Create an organization\n\n```\nPOST /admin/organizations\n```\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Body parameters\n\n* **`login`** (string) (required)\n  The organization's username.\n\n* **`admin`** (string) (required)\n  The login of the user who will manage this organization.\n\n* **`profile_name`** (string)\n  The organization's display name.\n\n### HTTP response status codes\n\n* **201** - Created\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  http(s)://HOSTNAME/api/v3/admin/organizations \\\n  -d '{\n  \"login\": \"github\",\n  \"profile_name\": \"GitHub, Inc.\",\n  \"admin\": \"monalisaoctocat\"\n}'\n```\n\n**Response schema (Status: 201):**\n\n* `login`: required, string\n* `id`: required, integer\n* `node_id`: required, string\n* `url`: required, string, format: uri\n* `repos_url`: required, string, format: uri\n* `events_url`: required, string, format: uri\n* `hooks_url`: required, string\n* `issues_url`: required, string\n* `members_url`: required, string\n* `public_members_url`: required, string\n* `avatar_url`: required, string\n* `description`: required, string or null\n\n## Update an organization name\n\n```\nPATCH /admin/organizations/{org}\n```\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n* **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n#### Body parameters\n\n* **`login`** (string) (required)\n  The organization's new name.\n\n### HTTP response status codes\n\n* **202** - Accepted\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PATCH \\\n  http(s)://HOSTNAME/api/v3/admin/organizations/ORG \\\n  -d '{\n  \"login\": \"the-new-octocats\"\n}'\n```\n\n**Response schema (Status: 202):**\n\n* `message`: string\n* `url`: string"}