PHR service creation

curl --location --request PUT ‘https://dev.abdm.gov.in/devservice/v1/bridges/addUpdateServices
–header ‘accept: /
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE3MDA3NDI1MTYsImlhdCI6MTcwMDcyMDkxNiwianRpIjoiNzY2ODdmZjctODc3MS00MDM1LThjYzUtMmE4ZTlkZjIyODU3IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJhOWVjZjRlNC04OTEyLTQ3ZTctYmNmNC0xYmMzNTAzNzM3MjAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxMTg5Iiwic2Vzc2lvbl9zdGF0ZSI6ImFkNDRiMWQ1LWI5YzAtNGU0OS1iYzNlLWQwNjMyMTYzM2U0NiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwicGhyIiwiaGlwIiwiaHBfaWQiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAxMTg5Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy43MC4xODUiLCJjbGllbnRJZCI6IlNCWF8wMDExODkiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1zYnhfMDAxMTg5IiwiY2xpZW50QWRkcmVzcyI6IjEwLjIzMy43MC4xODUifQ.jM96TDD_DfBs8cmMgp8BAgBH6hKS1KJhWjZP_U8qx-blDn0em4tE3BTNomx8u5LvWU19hNp8j3dIs65Q1LmUYAQ39DVI8poc–o4VY6WjbAGE8N8WignKhnZRZkhZNzq8VtpebUooX_G5uTAQNymy7J2JAvkKG9PCjLmzRdvqPkfLm0Bv8fDoWjeyZccywjqhReOKLYe2DBMviSV4QD5D5wWazrOmxkO7xDphFpMZRULKj_hpG0ZvTWdnW1iBOt0uhQ12kISu6uXri0-MELVifmYM-sMN7QMdnYQ5qTRgAghSy4P-Kv7SKw-V66KxByZzz7Gj3X1LEtBO6AwhWgKaA’
–data ‘[
{
“id”: “NPHR”,
“name”: “NPHR”,
“type”: “PHR”,
“active”: true,
“alias”: [
“NPHR”
]
}
]’
this is the curl that i am using but i received
{
“timestamp”: “2023-11-23T09:19:39.275+0000”,
“path”: “/v1/bridges/addUpdateServices”,
“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”: “214f21a3-2550”
}
kindly help me over this as i could not proceed further

@IntegrationSupport

@velu Please use this curl-

curl --location --request PUT ‘https://dev.ndhm.gov.in/devservice/v1/bridges/addUpdateServices’ \

–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2OTg4MzU2ODMsImlhdCI6MTY5ODgxNDA4MywianRpIjoiNmZjMTcwNzgtYzQ4Ni00NDlkLTg4OGUtOWI0MTJLCJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsIkhpZF9DaGlsZCIsImhlYWx0aElkIiwicGhyIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfSwiTkhBVEVTVF8wMDEiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SWQiOiJOSEFURVNUXzAwMSIsImNsaWVudEhvc3QiOiIxMC4yMzMuNjcuMTg3IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtbmhhdGVzdF8wMDEiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjE4NyJ9.WzySsBBS4A_4b_LV81V6refGTZfd4Ls2SABdX2OhiUZFVd5TwiLDYdxjZianWGd8N5LqnZwRRFSAMLsyYLBA7oI-Y92MUagkfsnFv-OSUxIKjsq_Zxtt1NY7ElIxpNBFFEt2D86NSD4Z_hgOtiOVjY4l-td-9TVldgPgig26bMBOThajJzQIfuDAHEZnSo9I-06wmzS5KrCbJJPNd1bYha3vX5iB5Tbk3Nm15hPXVrTgjJTDtopszNhhfEmt8sgZwam3b0y6ie06iM9VJScGT_DjbUUmOByLJNyEUGmKZ8NxwvIiiwmKyeVK-gcRUKFi4-6_GtxguOtBGlNynqGJ6Q’
–data ‘[
{
“id”: “S_Test”,
“name”: “S Test”,
“type”: “PHR”,
“active”: true,
“alias”: [
“S Test”
]
}
]’

curl --location --request PUT ‘https://dev.ndhm.gov.in/devservice/v1/bridges/addUpdateServices
–header ‘accept: /
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE3MDA3NDI1MTYsImlhdCI6MTcwMDcyMDkxNiwianRpIjoiNzY2ODdmZjctODc3MS00MDM1LThjYzUtMmE4ZTlkZjIyODU3IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJhOWVjZjRlNC04OTEyLTQ3ZTctYmNmNC0xYmMzNTAzNzM3MjAiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxMTg5Iiwic2Vzc2lvbl9zdGF0ZSI6ImFkNDRiMWQ1LWI5YzAtNGU0OS1iYzNlLWQwNjMyMTYzM2U0NiIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwicGhyIiwiaGlwIiwiaHBfaWQiXX0sInJlc291cmNlX2FjY2VzcyI6eyJTQlhfMDAxMTg5Ijp7InJvbGVzIjpbInVtYV9wcm90ZWN0aW9uIl19LCJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBlbWFpbCBwcm9maWxlIiwiY2xpZW50SG9zdCI6IjEwLjIzMy43MC4xODUiLCJjbGllbnRJZCI6IlNCWF8wMDExODkiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsInByZWZlcnJlZF91c2VybmFtZSI6InNlcnZpY2UtYWNjb3VudC1zYnhfMDAxMTg5IiwiY2xpZW50QWRkcmVzcyI6IjEwLjIzMy43MC4xODUifQ.jM96TDD_DfBs8cmMgp8BAgBH6hKS1KJhWjZP_U8qx-blDn0em4tE3BTNomx8u5LvWU19hNp8j3dIs65Q1LmUYAQ39DVI8poc–o4VY6WjbAGE8N8WignKhnZRZkhZNzq8VtpebUooX_G5uTAQNymy7J2JAvkKG9PCjLmzRdvqPkfLm0Bv8fDoWjeyZccywjqhReOKLYe2DBMviSV4QD5D5wWazrOmxkO7xDphFpMZRULKj_hpG0ZvTWdnW1iBOt0uhQ12kISu6uXri0-MELVifmYM-sMN7QMdnYQ5qTRgAghSy4P-Kv7SKw-V66KxByZzz7Gj3X1LEtBO6AwhWgKaA’
–data ‘[
{
“id”: “S_Test”,
“name”: “S Test”,
“type”: “PHR”,
“active”: true,
“alias”: [
“S Test”
]
}
]’

using this also gives me
{
“timestamp”: “2023-11-23T10:32:42.447+0000”,
“path”: “/v1/bridges/addUpdateServices”,
“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”: “4a13775e-2588”
} @IntegrationSupport