Skip to content

Backend API Spec: API-032 ​

API Name: 【テンプレート再検証ステータス更新】API API Method: PUT API Endpoint: /api/petitions/template-verifications/


Processes (業務フロー) ​

IDMain Event IDMain Event NameEvent NoEvent NameDetail
1ME-001テンプレート再検証ステータス更新1認証チェック【P001】セッションからユーザー情報を取得する。
2ME-001テンプレート再検証ステータス更新2対象レコード取得【P002】verification_id を元に t_petition_template_verification のレコードを取得する。
存在しない場合は404を返却する。
3ME-001テンプレート再検証ステータス更新3検証結果更新【P003】座標一致(coord_match)・内容一致(content_match)の検証結果を更新する。
検証担当(verifier_user_id/verifier_name)・最終検証日(last_verified_at)を記録する。
4ME-001テンプレート再検証ステータス更新4総合状態判定【P004】座標一致・内容一致の双方が ok の場合、STATUS を verified に更新する。
いずれかが verifying / ng の場合は対応する状態に更新する。
5ME-001テンプレート再検証ステータス更新5レスポンス生成【P005】更新後のレコードを返却する。

HTTP Status Codes ​

IDStatus CodeDescription
1200更新成功
2400リクエストパラメータエラー(不正な状態値等)
3401認証エラー(未ログインまたはセッション切れ)
4403権限エラー
5404該当検証レコードが存在しない
6500サーバーエラー

API Request Parameters ​

IDLogical NamePhysical NameData TypeRequiredValidationNotes
1検証IDverification_idint○1以上の整数URLパスパラメータ。t_petition_template_verification.id
2座標一致coord_matchstring×unverified / verifying / ok / ngt_petition_template_verification.coord_match
3内容一致content_matchstring×unverified / verifying / ok / ngt_petition_template_verification.content_match
4担当者IDverifier_idint×t_system_user.id検証担当者
5担当者名verifier_namestring×最大32文字表示用担当者名(真船/濱道等)
6備考notestring×最大256文字不一致箇所・対応事項

API Response Items ​

IDLogical NamePhysical NameData TypeTable NameColumn NameNotesParent ID
1検証IDverification_idintt_petition_template_verificationid--
2書式名format_namestringt_petition_template_verificationformat_name--
3座標一致coord_matchstringt_petition_template_verificationcoord_match--
4内容一致content_matchstringt_petition_template_verificationcontent_match--
5状態statusstringt_petition_template_verificationstatus双方okでverified-
6担当者名verifier_namestringt_petition_template_verificationverifier_name--
7最終検証日last_verified_atstringt_petition_template_verificationlast_verified_atYYYY/MM/DD-

補足事項 ​

  • #342(FB0624):申立書作成画面の「テンプレート再検証ステータス一覧(グループ作業)」の状態更新先。
  • #326(出力検証)の座標一致・内容一致チェック結果を本APIで t_petition_template_verification へ記録する。
  • 一覧取得はAPI-028のレスポンスに含めるか、または別途一覧取得APIを設ける(書式×裁判所単位)。