{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ipfabric/json-schema/ipfabric-post-labels-assignments-request-schema.json",
  "title": "PostLabelsAssignmentsRequest",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/ipfabric-openapi-generated.yml#/components/schemas/PostLabelsAssignmentsRequest",
  "type": "object",
  "properties": {
    "snapshotId": {
      "type": "string",
      "description": "UUID of the snapshot to assign the labels in."
    },
    "labels": {
      "type": "string",
      "description": "At least one label. Each label has a name and an optional value."
    },
    "targets": {
      "type": "string",
      "description": "At least one target. Device or L2 interface specifications."
    },
    "inherit": {
      "type": "string",
      "description": "When true, the labels assigned to devices are also inherited by the devices’ L2 interfaces."
    },
    "reflectToRules": {
      "type": "string",
      "description": "When true, the system keeps the assignment for future snapshots."
    }
  },
  "required": [
    "snapshotId",
    "labels",
    "targets"
  ]
}