Skip to content

[Docs Issue] JSON structure when adding custom properties via the REST API #9062

@KamalikaSene

Description

@KamalikaSene

Description

The following JSON structure gives an error regarding the keys when attempting to create the PizzaShack API via Postman.
"additionalProperties : {"environment": "preprod", "secured": "true"}

The correct JSON structure which successfully creates the PizzaShack API with the custom properties is as follows:

  "additionalProperties": [
    {
      "name": "environment",
      "value": "prepod",
      "display": true
    },
    {
      "name": "secured",
      "value": "true",
      "display": true
    }
  ]

Steps to Reproduce

  1. Run the pack.
  2. Follow the documentation to add a custom property via the REST API.
  3. Add the "additionalProperties : {"environment": "preprod", "secured": "true"} parameter in the PizzaShack API payload on Postman.
  4. Attempt to create the API on Postman.

Version

APIM Post Beta Pack (Testing Hackathon)

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions