0

I tried to post a question in stack overflow with the API /questions/add. I used my generated access token and key of my registered application. The response did not throw any error but it is not reflected in stackoverflow either. The response neither gave the link to the question nor the question id. add question API

1 Answer 1

3

From Role of "preview" in "/questions/add" by Birkan Cilingir

the preview parameter is used for development and testing purposes.

If you set it to true, your request will only simulate whether it is a valid request or not and will not change anything on the site.

In your screenshot the preview property is true. So that only emulates the posting of the question. It looks like that succeeded without errors. Set the preview to false to actually post on the site.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.