콘텐츠로 이동

delete_certificate (자격증 삭제)

자격증을 삭제합니다.

기본 정보

항목
URL https://asia-northeast3-construction24-test.cloudfunctions.net/delete_certificate
Method POST
인증 Firebase ID Token 필요

요청

헤더
Authorization Bearer {Firebase ID Token}

Body

필드 타입 필수 설명 검증
certificate_id string O 삭제할 자격증 ID -

요청 예시

{
  "certificate_id": "cert_abc123"
}

응답

성공 (200)

{
  "message": "자격증 삭제 완료"
}

실패

코드 message 원인
403 인증 오류 토큰 없음/만료
404 "자격증을 찾을 수 없습니다." 없는 certificate_id
500 서버 오류 내부 오류

Firestore

  • 경로: users/{UID}/certificates/{certificate_id}

참고