While working on the deployment of the Hub API, to test its operation one must declare the Hub on the Portal.
The below syntax results in a 500 internal server error:
curl --include --header "Authorization:Bearer <value>" --header "Content-Type:application/json;charset=UTF-8" \
--data '{
"Name":"APIHUB_SETTINGS",
"Uuid": "UID",
"Value": {
"name": "apihubtest",
"host": "localhost:3123",
"forgotpasswordPath": "/#/new-password",
"signuppath": "/#/account-setup"
}}' \
--request PUT "https://portal-host:443/portail/Settings('APIHUB_SETTING
Release : 5.0
Component : API PORTAL
Please try below syntax instead:
curl --include --header "Authorization:Bearer <value>" --header "Content-Type:application/json;charset=UTF-8" \ --data '{ "Name": "APIHUB_SETTINGS", "Uuid": "UID", "Value": "[{ \"name\": \"apihubtest\", \"host\": \"http://localhost:3123/\", \"signuppath\": \"account-setup\", \"forgetpasswordPath\": \"newpassword\"}]" }' \ --request PUT "https://portal-host:443/portail/Settings('APIHUB_SETTINGS')"