Sign in

Update user (JSON:API)

documented

Update an existing user by UUID.

PATCH /jsonapi/user/user/{uuid}Usersno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$drupal_site}}/jsonapi/user/user/{{$uuid}}" \
  -X PATCH \
  -H "Accept: application/vnd.api+json" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -d '{"data": {"type": "user--user", "id": "{{$uuid}}", "attributes": {"name": "{{$name}}", "mail": "{{$mail}}"}}}'
Update user (JSON:API) · drupal · OpenIntegrations