Skip to main content

Registering users via REST

Registering a user via REST is an important process particularly when the requests come from a mobile device.

In working through the process you might have come across error message like:

403 Forbidden : "Only anonymous users can register a user."

422 Unprocessable Entity : "A Password cannot be specified. It will be generated on login."

So how did I get these and what to do?

Applying a patch via Terminal

As a process I apply patches locally first, then using git upload the update(s) to a development site on the server.  Once the testing has been completed, the final step to apply the patch to the production site.  

Using Terminal or your preferred shell program, navigate to the correct directory.  Then run this command using the name of the patch file (example.patch):

General ssh update script for Drupal

First transfer the drupal-8.8.x.tar.gz file to your directory

Via your ssh program (for us Terminal on OSX), enter the path to the directory where you transferred the drupal-8.8.x file

Drupal update 8.7.x to 8.8.0

While the Drupal site has a great outline of the steps to follow, I found we needed to tweak so the update would work for us.  I found the update process from 8.7.10 to 8.8.0 that worked on our sites was as follows

Subscribe to Drupal 8.8.x