콘텐츠로 이동

edit_other_expense (기타 비용 정보 수정)

기타 비용 항목의 제목과 설명을 수정합니다.

기본 정보

항목
URL https://asia-northeast3-construction24-test.cloudfunctions.net/edit_other_expense
Method POST
인증 Firebase ID Token 필요
권한 해당 회사의 멤버

요청

Body

필드 타입 필수 설명 검증
token string O Firebase ID Token -
company_id string O 회사 ID -
site_id string O 현장 ID -
expense_id string O 기타 비용 ID -
title string O 제목 -
description string O 설명 -

요청 예시

{
  "token": "eyJhbGci...",
  "company_id": "abc123",
  "site_id": "site456",
  "expense_id": "expense789",
  "title": "현장 사무실 임대료 (수정)",
  "description": "월별 사무실 임대 비용 - 계약 갱신"
}

응답

성공 (200)

{
  "message": "기타 비용 정보 수정 완료"
}

실패

코드 message 원인
500 "해당 회사의 멤버가 아닙니다." 요청자가 해당 회사의 멤버가 아닌 경우
500 "존재하지 않는 기타 비용입니다." 해당 기타 비용이 존재하지 않는 경우

참고

  • 수정 시 updated_at, updated_by 필드가 자동으로 기록됩니다.
  • 관련 API: [[add_other_expense]], [[delete_other_expense]]