Tutorial: PATCH an activity

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.

In this tutorial, you will find an open activity from the sample data. You will then update the activity's subject and priority.

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. For the activity in the response payload that is assigned to Andy/Alice Applegate, note the following information:
    1. Activity ID
    2. Priority
    3. Subject
  3. Open a second request tab and right-clicking the first tab and selecting Duplicate Tab.
  4. Change the operation to PATCH and enter the following URL, but do not click Send yet:
  5. 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. Note that the subject has an additional "!" at the end.
  6. Click Send. The response payload appears below the request payload.

Checking your work

  1. View the modified activity in BillingCenter.
    1. Click the Priority column to sort the activities in ascending priority order.

The PATCHed activity (whose priority is now Low) should be at or near the top of the list. The patched activity will have a subject ending with an "!".