Method for managing the Answers on Questions.
Receive an answer
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 |
GET /answers/316?api_key=889c3f3e4b6ac67269261324Response
{ "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" }
Create an Answer on specific Question
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 |
POST /questions/39_216/answers?api_key=889c3f3e4b6ac67269261324Request
{ "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" }
Update an answer
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 |
PUT /answers/316?api_key=889c3f3e4b6ac67269261324Request
{ "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" }
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.
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 |
DELETE /answers/316?api_key=889c3f3e4b6ac67269261324Response
{}