Skip to main content
This endpoint renames a group or changes its description. Send at least one of name and description. The call is authorized by the workspace API key’s USER_MANAGEMENT_API scope. It does not run as the person who created the key, so it keeps working after that admin leaves the workspace.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Prerequisites

  • API Key with the USER_MANAGEMENT_API scope
  • The API key must be created by a workspace admin

Behavior

  • An empty body returns 400 with message At least one field must be provided.
  • name is trimmed and at most 100 characters. description is trimmed and at most 2000 characters.
  • Unknown fields, including isPublic, return 400. You cannot change whether the group is public.
  • Renaming to a name another group already uses, ignoring case? Returns 409 with code: "GROUP_NAME_TAKEN" and message A group with this name already exists.
  • Sending the group’s current name again is not a rename, including a different letter case. A description change still succeeds when another group already has the same name.
  • SCIM managed group? Returns 409 with code: "GROUP_SCIM_MANAGED" and message This group is managed by SCIM and cannot be changed through the API. Change it in your identity provider, or remove it from SCIM in the workspace settings first.
  • Unknown id, a deleted group, or another workspace? Returns 404 with code: "GROUP_NOT_FOUND" and message Group not found.
  • groupId is not a UUID? Returns 400.
  • Returns { "group": { ... } } with the same fields as List Groups.
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.