Delete an answer

delete

/services/rest/connect/v1.4/answers/{id}

Request

Path Parameters
Back to Top

Response

Default Response

Body ()
Root Schema : No content
Type: null
Title: No content
No content returned on delete
Back to Top

Examples

Use DELETE with the following syntax to delete an answer:

https://your_site_interface/services/rest/connect/version/answers/answer_id

Request URI example

https://mysite.example.com/services/rest/connect/v1.4/answers/56

Response example

The status 200 OK is returned. Then running this ROQL tabular query on answer records:

https://mysite.example.com/services/rest/connect/v1.4/queryResults?
query=select id from answers where id>50

returns the following:

{
  "items": [
    {
      "tableName": "answers",
      "count": 6,
      "columnNames": [
        "id"
      ],
      "rows": [
        [
          "51"
        ],
        [
          "52"
        ],
        [
          "53"
        ],
        [
          "54"
        ],
        [
          "55"
        ],
        [
          "57"
        ]
      ]
    }
  ],
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults?
       query=select%20id%20from%20answers%20where%20id%3E50"
    },
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/queryResults"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/queryResults",
      "mediaType": "application/schema+json"
    }
  ]
}

Note:

Answer 56 no longer exists.
Back to Top