Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect line of code to add custom properties via the REST API #8475

Closed
KamalikaSene opened this issue Oct 15, 2024 · 0 comments · Fixed by #8500
Closed

Incorrect line of code to add custom properties via the REST API #8475

KamalikaSene opened this issue Oct 15, 2024 · 0 comments · Fixed by #8500
Assignees

Comments

@KamalikaSene
Copy link

Description:
Link to documentation The documentation states to add this line in the request body "additionalProperties : {"environment": "preprod", "secured": "true"} in order to add a new API in the Publisher Portal with custom properties.

However this line is incorrect and displays the following error:
"code": 400, "message": "Bad Request", "description": "Unrecognized property 'environment'", "moreInfo": "", "error": [] }

However, the following lines work as expected and create the API with the new custom properties.
"additionalProperties": [ { "name": "environment", "value": "prepod", "display": true }, { "name": "secured", "value": "true", "display": true } ]

Affected Product Version:
APIM 4.4.0 distributed pack

OS, DB, other environment details and versions:

Steps to reproduce:
Follow the steps in the document and send a Publisher REST API call through Postman.

Related Issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants