Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 951 Bytes

File metadata and controls

75 lines (52 loc) · 951 Bytes

Reply questions

Method : POST

URL : /admin/questions/:question_id/reply

Auth required : True

Data constraints

{
    reply: "Please contact us"
}

Success Response

Code : 204 No Content

Content example

NULL

Error Response

Condition : Log in successfully, but you need administrator privileges

Code : 401 Unauthorized

Content

{
    message: "Administrator authentication required"
}

Condition : 'x-access-token' is not included in the header

Code : 400 Bad Request

Content

{
    message: "Token is required"
}

Condition : 'x-access-token' is included, but can not be decoded

Code : 400 Bad Request

Content

{
    message: "Token is invalid"
}

Condition : Can not find user matching token. It may be an old token.

Code : 404 Not Found

Content

{
    message: 'User not found'
}