Error 400: Input is invalid JSON when making certain requests from Swagger UI


  • When you execute a PUT method from the Swagger UI, such as (this is the request generated from the UI):
url -X 'PUT' \
'http://localhost:8080/o/headless-delivery/v1.0/documents/183873/permissions' \
-H 'accept: application/json' \
-H 'Content-Type: */*' \
-H 'x-csrf-token: a5GuDT5U' \
-d '[
"actionIds": [
"roleName": "Site Member"

You get the following 400 response status even though the JSON is correct:

"status": "BAD_REQUEST",
"title": "Input is invalid JSON"


  • Liferay DXP 7.4





Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0