Skip to main content
Alpha: Document API is currently alpha and subject to breaking changes.

Summary

Select content controls matching a specific tag value.
  • Operation ID: contentControls.selectByTag
  • API member path: editor.doc.contentControls.selectByTag(...)
  • Mutates document: no
  • Idempotency: idempotent
  • Supports tracked mode: no
  • Supports dry run: no
  • Deterministic target resolution: yes

Expected result

Returns a ContentControlsListResult with matching items.

Input fields

FieldTypeRequiredDescription
limitintegerno
offsetintegerno
tagstringyes

Example request

{
  "limit": 50,
  "offset": 0,
  "tag": "example"
}

Output fields

FieldTypeRequiredDescription
itemsobject[]yes
totalintegeryes

Example response

{
  "items": [
    {}
  ],
  "total": 1
}

Pre-apply throws

  • TARGET_NOT_FOUND
  • INVALID_INPUT
  • CAPABILITY_UNAVAILABLE

Non-applied failure codes

  • None

Raw schemas

{
  "additionalProperties": false,
  "properties": {
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "tag": {
      "type": "string"
    }
  },
  "required": [
    "tag"
  ],
  "type": "object"
}
{
  "additionalProperties": false,
  "properties": {
    "items": {
      "items": {
        "type": "object"
      },
      "type": "array"
    },
    "total": {
      "type": "integer"
    }
  },
  "required": [
    "items",
    "total"
  ],
  "type": "object"
}