thilo
11 years agoMentor
REST API: Edit Q&A Answer
How can I edit a given Q&A answer using the REST API?
I tried to edit a Q&A Answer via REST API v1 by issuing the following POST request:
POST /restapi/vc/messages/id/197500/edit?restapi.session_key=XXXXX.&restapi.response_style=view&restapi.format_detail=full_list_element HTTP/1.1 Host: stage-community.XXX.ch Content-Type: application/x-www-form-urlencoded; charset=utf-8 message.author=id%2FXXXX&message.body=Hello&message.subject=&qanda.is_answer=true&credentials.identity_user=id%2FXXXX
Which results in a API error:
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <response status="error"> <error code="100"> <message> message: XXXX hat keinen Zugriff zum Bearbeiten dieser Nachricht </message> </error> </response>
Issueing the same POST request without the "qanda.is_answer=true" works.