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 a Integer

api_key
required

API key (a 24 character unique code)


Value:

Must be a String

Examples

GET /answers/316?api_key=889c3f3e4b6ac67269261324

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

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

Create an Answer on specific Question

Supported Formats

json

Params

Param name Description
question_id
required

Question ID


Value:

Must be a String

text
required

Answer text


Value:

Must be a String

api_key
required

API key (a 24 character unique code)


Value:

Must be a String

Examples

POST /questions/39_216/answers?api_key=889c3f3e4b6ac67269261324

Request
{ "text": "Yes, it is" }
Response
{ "id": "316", "question_id": "39_216", "text": "Yes, it is", "created_at": "2022-09-30T21:23:30Z", "updated_at": "2022-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 a Integer

text
required

New Answer text


Value:

Must be a String

api_key
required

API key (a 24 character unique code)


Value:

Must be a String

Examples

PUT /answers/316?api_key=889c3f3e4b6ac67269261324

Request
{ "text": "UPD. Yes, it is" }
Response
{ "id": "316", "question_id": "39_216", "text": "UPD. Yes, it is", "created_at": "2022-09-30T21:23:30Z", "updated_at": "2022-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 a Integer

api_key
required

API key (a 24 character unique code)


Value:

Must be a String

Examples

DELETE /answers/316?api_key=889c3f3e4b6ac67269261324

Response
{ }