Method for managing the Answers on Questions.


GET /answers/:id
Receive an Answer

Receive an answer

Supported Formats

json

Params

Param name Description
id
required

Answer ID provided by Lipscore


Value:

Must be Integer

api_key
required

API key (a 24 character unique code)


Value:

Must be String

Examples

GET /answers/316?api_key=889c3f3e4b6ac67269261324

Response
{ "id": "316", "question_id": "39216", "text": "Yes, it is", "created_at": "2020-09-30T21:23:30Z", "updated_at": "2020-09-30T21:23:30Z", "member_site": "Demo site" }

POST /questions/:question_id/answers
Create an Answer on specific Question

translation missing: en.api_doc.answers.create.description

Supported Formats

json

Params

Param name Description
question_id
required

Question ID


Value:

Must be String

text
required

Answer text


Value:

Must be String

api_key
required

API key (a 24 character unique code)


Value:

Must be String

Examples

POST /questions/39216/answers?api_key=889c3f3e4b6ac67269261324

Request
{ "text": "Yes, it is" }
Response
{ "id": "316", "question_id": "39216", "text": "Yes, it is", "created_at": "2020-09-30T21:23:30Z", "updated_at": "2020-09-30T21:23:30Z", "member_site": "Demo site" }

PUT /answers/:id
Update an Answer

Update an answer

Supported Formats

json

Params

Param name Description
id
required

Answer ID provided by Lipscore


Value:

Must be Integer

text
required

New Answer text


Value:

Must be String

api_key
required

API key (a 24 character unique code)


Value:

Must be String

Examples

PUT /answers/316?api_key=889c3f3e4b6ac67269261324

Request
{ "text": "UPD. Yes, it is" }
Response
{ "id": "316", "question_id": "39216", "text": "UPD. Yes, it is", "created_at": "2020-09-30T21:23:30Z", "updated_at": "2020-09-30T22:00:14Z", "member_site": "Demo site" }

DELETE /answers/:id
Destroy an Answer

Send an HTTP DELETE request to destroy Answer. Use Answer ID, provided by Lipscore during Answer creation, to identify an Answer you want to destroy. On a successful destroying we will return a 200 status code and an empty response body.

Supported Formats

json

Params

Param name Description
id
required

Answer ID provided by Lipscore


Value:

Must be Integer

api_key
required

API key (a 24 character unique code)


Value:

Must be String

Examples

DELETE /answers/316?api_key=889c3f3e4b6ac67269261324

Response
{ }