Skip to content

[LA-36992] Document role param on user-update API docs#55

Merged
pajw merged 1 commit into
mainfrom
LA-36992/document-role-on-user-update
Jun 11, 2026
Merged

[LA-36992] Document role param on user-update API docs#55
pajw merged 1 commit into
mainfrom
LA-36992/document-role-on-user-update

Conversation

@pajw

@pajw pajw commented Jun 11, 2026

Copy link
Copy Markdown

Jira

https://learnamp.atlassian.net/browse/LA-36992

What

Adds the role parameter to the Update a User "Data in Body" table, and corrects the role values listed on Create a User (was missing learning_designer).

Why

The update endpoints (PUT /v1/users/{userId} and PUT /v1/users/by_integration_external_id/{integrationExternalId}) both accept role (User.admin_settable_roles), and the worked example plus the 200 response in the same docs section already show it, but the parameter table omitted it. The docs were internally inconsistent and hid a supported field from integrators.

The by_integration_external_id section cross-references "the same body parameters as Update a User", so it inherits the new row automatically.

Acceptance Criteria

  • role documented in the Update a User parameter table
  • Allowed values listed accurately (viewer, curator, reporter, learning_designer, hr, admin; owner/super_admin excluded; hr package note)
  • Create a User role list corrected to include learning_designer

🤖 Generated with Claude Code


Note

Low Risk
Markdown-only API documentation changes with no runtime or security impact.

Overview
Updates Users API reference in _users.md so role is documented consistently for create and update.

Create a User — the role row now lists allowed values as viewer, curator, reporter, learning_designer, hr, admin (adds learning_designer and aligns ordering with the API).

Update a User — adds a role body parameter (enum, example admin) describing settable system roles, noting that owner and super_admin cannot be set via the API and that hr requires the HR-role package (otherwise 422). The by_integration_external_id update path already defers to this table, so it picks up the new row without further edits.

Reviewed by Cursor Bugbot for commit f2e89bb. Bugbot is set up for automated code reviews on this repo. Configure here.

The Update a User parameter table omitted role, though the worked
example and 200 response in the same section already show it. Both
update endpoints (by id and by integrationExternalId) accept role.

Also correct the Create a User role list, which was missing
learning_designer.

Co-Authored-By: Claude Fable 5 <[email protected]>
@pajw pajw marked this pull request as ready for review June 11, 2026 09:47
@pajw pajw merged commit 773a366 into main Jun 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants