REST API - Update of a Date and Time Field
Integrations REST API Training REST API

REST API - Update of a Date and Time Field

This page lists the fields on a Xurrent request that you can update via a Xurrent Rest API request (which is the same as Howard Tanner can update via the user interface).

When you need to update a datetime field, you need to specify according to the ISO 8601 format, with a minutes resolution, without timezone. Check this page to check the the datetime format.

Exercise:

Use /requests/:id to update the request:

curl -X PATCH -i -H "Authorization: Bearer <personal-token>" -H "X-Xurrent-Account: wdc" -d '{"desired_completion_at":"2026-12-31T17:00-6:00"}' "https://api.4me-demo.com/v1/requests/704540"




Login as Howard Tanner to the Widget Data Center account and check if the requests 70454 has been updated.

The last exercise is an easy one: reverse the update you have made in the previous exercise.

Exercise:

Use /requests/:id to update the request:

curl -X PATCH -i -H "Authorization: Bearer <personal-token>" -H "X-Xurrent-Account: wdc" -d '{"desired_completion_at":""}' "https://api.4me-demo.com/v1/requests/704540"

Next Topic