# Reply Fir

# API Description

This API is used to reply fir.Closed case not allowed to reply

# Environment

# Test

https://oversea.saicmaxus.com/australia/test/fir/reply (opens new window)

# Prod

https://oversea.saicmaxus.com/australia/fir/reply (opens new window)

# Method

POST

# Request

# Authorization

Set 'maxus_jwt' in header,see in Get Maxus JWT Token

# Payload

Parameter Type Required Description 中文描述
caseId String(20) Yes The ID returned by creating the FIR. 创建案例时返回的案例ID
replyContent String(4000) Yes Reply content. 回复内容
replyName String(30) Yes The name of the person who replied to Fir. 回复人
attachmentList List No A list of QualityReportAttachmentDto objects. 附件列表
attachmentList.fileType String(255) No Upload file type. 文件类型
attachmentList.fileUrl String(2500) No Encrypted file upload url. 文件地址
attachmentList.fileName String(255) No Upload file name. 文件名称
attachmentList.fileSize String(255) No Upload file size. 文件大小

# Example

curl --location 'https://oversea.saicmaxus.com/australia/test/fir/reply' \
--header 'content-type: application/json' \
--header 'maxus_jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhc2NDb2RlIjoiNDE5ODEzMCIsImFzY0lkIjo0MTk4MTMwLCJhc2NOYW1lIjoiQVRFQ08iLCJzYXBBY2NvdW50IjoiNDE5ODEzMCIsInNlcnZpY2VDb2RlIjoiQXRlY28iLCJpYXQiOjE3MTE2ODU2MjAsImV4cCI6MTcxMTc3MjAyMH0.uJe7E0RqO12ImkhQci6-CBU1z5OWjNpQ3CMjdrc1Yyg' \
--data '{
    "attachmentList": [
        {
            "fileUrl": "cb2bf31fca3f4dbeb6f8863c20d41eb4263a5ea46afae55aae70a8e3da74dd9b2d2410893ffcc1f40ff4465301b4fc882c50ace5b5d6925c737157ebe7c562850a8cf3c3113373eed96b24b55e0759143e1b557fe240b47ab027844749abb931c1b71724a9459a55383c4bc1b64cfff2",
            "fileName": "demo.png",
            "fileSize": 494,
            "fileType": "png"
        }
    ],
    "caseId": "4198130-20240306-03",
    "replyContent": "api-asc-reply-0329",
    "replyName": "顾岳毅4",
    "who": "ASC"
}'

# Response

# Payload

Parameter Type Description
status int 1: Success, 0: Failure
errMsg String Error message
data String fir id

# Response Code (errCode)

Status Code Description
200 Success
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
500 Unknown Error
503 Dependency System Unavailable

# Example

# OK

{
  "status": 1,
  "errCode": "200",
  "errMsg": "SUCCESS",
  "data": true
}

# NOT FOUND

{
  "status": 0,
  "errMsg": "NOT FOUND",
  "errCode": "404",
  "data": null
}

# INTERNAL ERROR

{
  "status": 0,
  "errMsg": "DEPENDENCY SYSTEM UNAVAILABLE",
  "errCode": "503",
  "data": null
}
{
  "status": 0,
  "errMsg": "UNKNOWN ERROR",
  "errCode": "500",
  "data": null
}

# GATEWAY ERROR

http status code: 500

# Unit Test

TODO