Tutorial: DELETE a note

This tutorial assumes you have set up your environment with Postman and the correct sample data set. For more information, see Tutorial: Set up your Postman environment.

Tutorial steps

  1. In Postman, start a new request by clicking the + to the right of the Launchpad tab.
    1. On the Authorization tab, select Basic Auth using user aapplegate and password gw.
  2. Open a second request tab and right-clicking the first tab and selecting Duplicate Tab.
  3. Change the operation to POST and enter the following URL, but do not click Send yet:
  4. Specify the request payload.
    1. In the first row of tabs (the one that starts with Params), click Body.
    2. In the row of radio buttons, select raw.
    3. At the end of the row of radio buttons, change the drop-down list value from Text to JSON.
    4. Paste the following into the text field underneath the radio buttons.
      {
        "data":
          {
            "attributes": {
              "body": "API tutorial note to be deleted"
            }
          }
      }
  5. Click Send. In the response payload, identify the note's id.
  6. Open a third request tab and right-clicking the second tab and selecting Duplicate Tab.
  7. Change the operation to DELETE, enter the following URL, but do not click Send yet:
  8. DELETEs cannot specifies request bodies. On the third tab, navigate to the Body tab and select the none radio button.
  9. Click Send. (The response to a successful DELETE is "204 - No content".)

Checking your work

Resend the request on the third tab. This request returns a "No resource was found" error because it is attempting to DELETE a note that has already been DELETEd.