Set group photo

POST /group/photo
multipart/form-data

Body

  • group_id string Required

    The group ID

  • photo string(binary)

    Group photo to upload (JPEG format recommended). Leave empty to remove photo.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • code string
    • message string
    • results object
      Hide results attributes Show results attributes object
      • picture_id string

        The ID of the uploaded picture, or 'remove' if photo was removed

      • message string
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • code string

      HTTP Status Code

    • message string

      Detail error message

    • results object

      additional data

  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
    • code string

      SYSTEM_CODE_ERROR

    • message string

      Detail error message

    • results object

      additional data

POST /group/photo
curl \
 --request POST 'http://localhost:3000/group/photo' \
 --user "username:password" \
 --header "Content-Type: multipart/form-data" \
 --form "group_id=120363024512399999@g.us" \
 --form "photo=@file"
Response examples (200)
{
  "code": "SUCCESS",
  "message": "Success update group photo",
  "results": {
    "picture_id": "1647874123",
    "message": "Success update group photo"
  }
}
Response examples (400)
{
  "code": 400,
  "message": "field cannot be blank",
  "results": {}
}
Response examples (500)
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "you are not loggin",
  "results": {}
}