유저 프로필 이미지 수정하기
해당 id의 유저 프로필 이미지를 수정하는 API입니다.
METHOD
PATCH
URL
/users/:id/image
id: 유저 고유 id
REQUEST BODY
name
type
require
description
image
multipart/form-data
필수
유저 프로필 이미지
현재 저장가능한 이미지로
.jpg
,.jpeg
,.gif
,.png
,.img
,.tiff
,.heif
확장자만 지원합니다.
REQUEST BODY EXAMPLE

RESPONSE
success
HTTP Status code: 201 OK
Response Body는 따로 없습니다. 대신, Http Location 헤더에 생성된 자원의 경로를 붙여서 반환합니다. ex) https://edsc-s3.s3.ap-northeast-2.amazonaws.com/profile-image/1
fail
HTTP Status code: 400 Bad Request or 500 Internal Server Error
{
"status": "BAD_REQUEST",
"message": "필수항목을 입력해주세요."
}
{
"status": "BAD_REQUEST",
"message": "존재하지 않는 유저입니다."
}
{
"status": "INTERNAL_SERVER_ERROR",
"message": "파일 변환에 실패했습니다."
}
{
"status": "BAD_REQUEST",
"message": "지원하지 않는 파일 형식입니다."
}
name
type
description
status
number
HTTP status
message
string
에러 메시지
Last updated
Was this helpful?