PolicyTemplates

Create a policy template

post/policy-templates

Request

  • Base URL: http://localhost:8080/api
  • URL: http://localhost:8080/api/policy-templates
  • Auth: none declared

Request body

idstring
versionstring
datestring date-time
titleLocalizedText
descriptionLocalizedText
authorstring
parametersobject

Example request

{
  "author": "",
  "content": {
    "permission": [
      {
        "action": "use",
        "constraint": [
          {
            "leftOperand": "bla",
            "operator": "eq",
            "rightOperand": "$bla"
          }
        ]
      }
    ]
  },
  "date": "2026-01-09T13:25:40.004265Z",
  "description": "Mi example super policy",
  "id": "policy-1",
  "parameters": {
    "$bla": {
      "dataType": "string",
      "restrictions": {},
      "ui": {
        "hidden": false
      }
    }
  },
  "title": "Mi example policy",
  "version": "1.0"
}

Response

Created

idstring
versionstring
datestring date-time
titleLocalizedText
descriptionLocalizedText
authorstring
parametersobject

Example response

{
  "author": "",
  "content": {
    "permission": [
      {
        "action": "use",
        "constraint": [
          {
            "leftOperand": "bla",
            "operator": "eq",
            "rightOperand": "$bla"
          }
        ]
      }
    ]
  },
  "date": "2026-01-09T13:25:40.004265Z",
  "description": "Mi example super policy",
  "id": "policy-1",
  "parameters": {
    "$bla": {
      "dataType": "string",
      "restrictions": {},
      "ui": {
        "hidden": false
      }
    }
  },
  "title": "Mi example policy",
  "version": "1.0"
}

Changes

No recorded changes to this operation across all 24 revisions of this API.