GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows updating the user's avatar on GitLab by sending a PUT request to the /api/v4/user/avatar endpoint. It is useful for automating the process of changing a user's profile picture in GitLab, for example, in workflows that manage user profiles or synchronize user data across systems.

Use Case Examples

  1. Automatically update a user's avatar after uploading a new image to a storage service.
  2. Change the avatar of a user as part of a user profile update workflow.

Properties

Name Meaning
Skip Authentication Determines whether to skip the authentication step for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the request is sent, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to PUT for this operation.

Output

JSON

  • id - The unique identifier of the user whose avatar was updated.
  • avatar_url - The URL of the updated avatar image.
  • message - Any message returned by the API, such as success or error messages.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the authentication credentials are correctly configured and have the necessary permissions to update the user avatar.
  • Verify that the baseUrl is correctly set to the GitLab instance URL if using a self-hosted GitLab.
  • Check that the request body includes the required avatar data as per the API specification.
  • Common error messages may include authentication failures, permission denied, or invalid avatar data. Resolving these typically involves verifying credentials, permissions, and request payload format.

Discussion