Set the Profile Image of a Member

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://apidocs.lwolf.com/doc/wolfconnect-api/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "WolfConnect API MCP server": {
    "url": "https://apidocs.lwolf.com/doc/wolfconnect-api/mcp"
  }
}

Close
POST /wolfconnect/members/v1/{memberId}/profile-image

Sets the profile image for a member. The request must be a multi-part request containing the original image and the coordinates to use to crop the image. PUT is also supported for this resource.

The coordinates should be specified in an aspect ratio of 3:4. For instance, if you have an image that is 800 X 800, and you want the center of the image selected for the profile image, you would pass in the following for the coordinates:

  • Left: 100
  • Top: 0
  • Width: 600
  • Bottom: 800

This will set the profile image to start 100 pixels from the left and go 600 pixels wide. 600 X 800 is in the 3:4 ratio.

You can specify 0 for all the coordinates and the API will create the biggest possible image from the original image. It would save the same image as above if all parameters were set to 0. It will center the rectangle horizontally if the original image is too wide and it will use the top of the original image if it is too long.

Path parameters

  • memberId string Required

    The Lone Wolf Id of the member.

multipart/form-data

Body Required

  • left integer Required

    The left image coordinate of the cropping rectangle.

  • top integer Required

    The top image coordinate of the cropping rectangle.

  • width integer Required

    The width of the cropping rectangle.

  • height integer Required

    The height of the cropping rectangle.

  • profileImage string(binary) Required

    The original image file to use for the profile image. This is the image that will be cropped using the coordinates above.

Responses

  • 200

    The profile image was set. No response content.

  • 400 application/json

    Error Code 1002: A parameter was missing.

    Hide response attributes Show response attributes object
    • Code integer

      The Lone Wolf Error Code. See the Error Codes section of the introduction.

    • Message string

      The message that corresponds to the Code value.

    • Details string

      The exact problem that occurred to give this error response.

  • 404 application/json

    Error Code 1001: The memberId parameter is invalid. Error Code 404: The member could not be found.

    Hide response attributes Show response attributes object
    • Code integer

      The Lone Wolf Error Code. See the Error Codes section of the introduction.

    • Message string

      The message that corresponds to the Code value.

    • Details string

      The exact problem that occurred to give this error response.

POST /wolfconnect/members/v1/{memberId}/profile-image
curl \
 --request POST 'https://api.globalwolfweb.com/wolfconnect/members/v1/{memberId}/profile-image' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: multipart/form-data" \
 --form "left=42" \
 --form "top=42" \
 --form "width=42" \
 --form "height=42" \
 --form "profileImage=@file"
Response examples (400)
{
  "Code": 42,
  "Message": "string",
  "Details": "string"
}
Response examples (404)
{
  "Code": 42,
  "Message": "string",
  "Details": "string"
}