Thanks for your reply Sanjeev. Below is the raw request and response for reference.
Also attached is the
uaa.yml file which I have used. May be I made some mistake in configuration.
######################### Request ##################################
curl -X PUT \
-H 'Accept: */*' \
-H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsImprdSI6Imh0dHBzOi8vbG9jYWxob3N0OjgwODAvdWFhL3Rva2VuX2tleXMiLCJraWQiOiJsZWdhY3ktdG9rZW4ta2V5IiwidHlwIjoiSldUIn0.eyJqdGkiOiI1N2Y1M2FlMzQ0MDg0NWE2YjRjZGU0NzAyYzNlOTE3NCIsInN1YiI6ImFjc19hZG1pbiIsImF1dGhvcml0aWVzIjpbImFjcy5wb2xpY2llcy5yZWFkIiwiYWNzLnBvbGljaWVzLndyaXRlIiwiYWNzLmF0dHJpYnV0ZXMucmVhZCIsInByZWRpeC1hY3Muem9uZXMuZGVtby51c2VyIiwiYWNzLmF0dHJpYnV0ZXMud3JpdGUiLCJhY3Muem9uZXMuYWRtaW4iLCJwcmVkaXgtYWNzLnpvbmVzLmRlbW8uYWRtaW4iXSwic2NvcGUiOlsiYWNzLnBvbGljaWVzLnJlYWQiLCJhY3MucG9saWNpZXMud3JpdGUiLCJhY3MuYXR0cmlidXRlcy5yZWFkIiwicHJlZGl4LWFjcy56b25lcy5kZW1vLnVzZXIiLCJhY3MuYXR0cmlidXRlcy53cml0ZSIsImFjcy56b25lcy5hZG1pbiIsInByZWRpeC1hY3Muem9uZXMuZGVtby5hZG1pbiJdLCJjbGllbnRfaWQiOiJhY3NfYWRtaW4iLCJjaWQiOiJhY3NfYWRtaW4iLCJhenAiOiJhY3NfYWRtaW4iLCJncmFudF90eXBlIjoiY2xpZW50X2NyZWRlbnRpYWxzIiwicmV2X3NpZyI6ImViNjI2OTc5IiwiaWF0IjoxNTU3MTQzOTQ1LCJleHAiOjE1NTcxODcxNDUsImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MC91YWEvb2F1dGgvdG9rZW4iLCJ6aWQiOiJ1YWEiLCJhdWQiOlsiYWNzX2FkbWluIiwiYWNzLmF0dHJpYnV0ZXMiLCJhY3Muem9uZXMiLCJwcmVkaXgtYWNzLnpvbmVzLmRlbW8iLCJhY3MucG9saWNpZXMiXX0.-btR_hOGHUqL2lDiR9ROIAEkZ9IArY53DUXAXA4yHWg' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Host: localhost:8181' \
-H 'Postman-Token: ac221c75-c3f6-40d8-82a3-a0274b68e616,8535d3c2-5120-41cf-b9dc-debbf40feadc' \
-H 'User-Agent: PostmanRuntime/7.11.0' \
-H 'accept-encoding: gzip, deflate' \
-H 'cache-control: no-cache' \
-H 'content-length: 75' \
-d '{
"name" : "demo",
"description" : "demo",
"subdomain" : "demo"
}'
############################# Response ###################################################
{"timestamp":1557143961744,"status":500,"error":"Internal Server Error","exception":"org.springframework.web.client.HttpClientErrorException","message":"org.springframework.web.client.HttpClientErrorException: 401 ","path":"/v1/zone/demo"}
Regards,
Arun