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 4me request that you can update via a 4me 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-4me-Account: wdc" -d '{"desired_completion_at":"2026-12-31T17:00-6:00"}' "https://api.4me-demo.com/v1/requests/70454"




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-4me-Account: wdc" -d '{"desired_completion_at":""}' "https://api.4me-demo.com/v1/requests/70454"

Next Topic