v1.7.0

Change a member's role

v1.7.0 adds one endpoint to the console API and fixes how the console reads an account's confirmation. Chat requests and the existing console routes behave as they did in v1.6.0.

Changing a member's role

PATCH /console/v1/orgs/{org}/members/{user} changes a member's role, sending a role of admin or member. Only the owner can do this. Admins and members get 403. The owner's role is fixed, and nobody can be made the owner this way, which also answers 403. Any other role answers 400. A change to the role the member already has answers 200 and changes nothing. A caller who is not a member of the organization, or a target who is not in it, gets 404. Each real change is recorded in the organization's audit log as member.role_change.

Confirmed accounts

Confirmed accounts were sometimes read as unconfirmed, so a person with an open invitation did not see it in GET /console/v1/invitations. The console now reads the confirmation correctly. If an account's confirmation cannot be determined, it is still treated as unconfirmed and the invitation stays hidden.