v1

latestOpenAPI 3.0.12026-07-13149396412.1 KB
MappingRule

put/api/v1/config/mapping-rules/{slug}

Path parameters

slugstring required

Request body

create_if_missingboolean

If true, the MappingRule will be created if it does not already exist, identified by slug. If false, an error will be returned if the MappingRule does not already exist.

dry_runboolean

If true, the MappingRule isn't created or updated, and no response MappingRule will be returned. The response will return an error if the given MappingRule is invalid.

Example request

{
  "mapping_rule": {
    "filters": [
      {
        "name": "job",
        "value_glob": "myservice*"
      }
    ]
  }
}

Response

A successful response containing the updated MappingRule.

Example response

{
  "mapping_rule": {
    "filters": [
      {
        "name": "job",
        "value_glob": "myservice*"
      }
    ]
  }
}