While trying to register HIP and HIU service using this curl:
curl --location --request PUT 'https://dev.abdm.gov.in/devservice/v1/bridges/services' --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Bearer your-access-token-from-gateway-session' --data-raw '{"id":"unique-hip-id","name":"Your-facility-name","type":"HIP","active":true,"alias":["EG"]}'
Receiving the following error:
{
"timestamp": "2022-01-10T07:46:07.280+0000",
"path": "/v1/bridges/services",
"status": 500,
"error": "Internal Server Error",
"message": "JSON decoding error: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token\n at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 10] (through reference chain: java.util.Properties[\"error\"])",
"requestId": "13687096-81"
}
my client id: SBX_001259