Actions26
Overview
This node allows updating the role of a member within a specific project in the GateKit system. It is useful for managing user permissions and access control by changing a member's role, such as promoting a member to an admin or demoting them to a viewer. Practical scenarios include adjusting team roles after organizational changes or correcting access levels.
Properties
| Name | Meaning |
|---|---|
User ID of the member to update (userId) |
The unique identifier of the member whose role you want to update. |
New role to assign (role) |
The new role to assign to the member. Options: admin, member, viewer. |
Slug (slug) |
The project identifier (slug) where the member belongs. |
UserId (userId) |
Duplicate property for the user ID parameter (same as "User ID of the member to update"). |
Output
The output will contain the JSON response from the API reflecting the updated member information, including their new role and associated metadata. This typically includes confirmation of the update and details about the member's current status in the project.
No binary data output is expected from this operation.
Dependencies
- Requires an API key credential for authenticating with the GateKit API.
- The node sends a PATCH HTTP request to the endpoint
/api/v1/projects/:slug/members/:userId. - The base URL and authentication headers are configured via the node credentials.
Troubleshooting
Common issues:
- Incorrect or missing
userIdorslugparameters will cause the API call to fail. - Assigning a role not listed in the allowed options (
admin,member,viewer) will result in validation errors. - Insufficient permissions of the API key may prevent updating member roles.
- Incorrect or missing
Error messages:
- "Member not found": Verify that the
userIdandslugcorrespond to an existing member in the project. - "Unauthorized" or "Forbidden": Check that the API key has sufficient rights to modify members.
- "Invalid role value": Ensure the role is one of the allowed options.
- "Member not found": Verify that the
Resolving these usually involves verifying input parameters, ensuring correct project slug and user ID, and confirming API key permissions.
Links and References
- GateKit API Documentation (hypothetical link)
- Role management best practices in GateKit projects (refer to official docs)