Overview#
In the past, I wrote articles about registering data using Drupal’s JSON:API with Python.
The following uses Basic authentication.
And the following uses an API Key.
In addition to these methods, I was able to register data using regular login authentication, so this is a memo of that process.
Code#
The code is as follows. It logs in, obtains a CSRF token, and then registers content.
With this, content can be registered as follows.
Summary#
There may be some inaccuracies, but I hope you find this helpful.