Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.44 KB

SubmitQuestion.md

File metadata and controls

50 lines (39 loc) · 1.44 KB

Submit user's question

Send an email with user's question

HTTP Request

POST musora-api/submit-question

Permissions

- Only authenticated user can access the endpoint

Request Parameters

path|query|body key required description
body question yes Question text

Request Example:

$.ajax({
    url: 'https://www.musora.com' +
        '/musora-api/submit-question',
    type: 'post',
    dataType: 'json',
    data:{
        "question":"Lorem ipsum"
    },
    success: function(response) {
        // handle success
    },
    error: function(response) {
        // handle error
    }
});

Response Example (200):

{
  "success": true,
  "title": "Thanks for your submission!",
  "message": "Your question has been submitted successfully and will be scheduled into one of our weekly Question and Answer sections! You will receive an email so you can check it out live, or here in the archives when you have time."
}