Back to top

PATCH - Introduction

To update events or venues created before, please use PATCH.

Basics

  • The data must be submitted in JSON format.
  • To update events or venues you need to include an API key accessible in your MyEvents account on the API page.

How to update an Event or Venue with the EILAPI?

To patch the data to the API the following URL has to be called using a HTTP library, such as cURL and urllib.

This is the schema which has to be used:
https://eventsinluxembourg.lu/node/[NID]?_format=json&api-key=[API key]

You need to include an X-CSRF-Token in the header avaible at https://eventsinluxembourg.lu/fr/session/token

More information:

https://www.drupal.org/docs/8/core/modules/rest/4-patch-for-updating-content-entities