Summary
Set the alternative text description for a table.
Operation ID: tables.setAltText
API member path: editor.doc.tables.setAltText(...)
Mutates document: yes
Idempotency: idempotent
Supports tracked mode: no
Supports dry run: yes
Deterministic target resolution: yes
Expected result
Returns a TableMutationResult receipt; reports NO_OP if alt text already matches.
Variant 1 (target.nodeType=“table”)
Field Type Required Description descriptionstring no targetTableAddress yes TableAddress target.kind"block"yes Constant: "block" target.nodeIdstring yes target.nodeType"table"yes Constant: "table" titlestring no
Variant 2 (required: nodeId)
Field Type Required Description descriptionstring no nodeIdstring yes titlestring no
Example request
{
"description" : "example" ,
"target" : {
"kind" : "block" ,
"nodeId" : "node-def456" ,
"nodeType" : "table"
},
"title" : "example"
}
Output fields
Variant 1 (success=true)
Field Type Required Description successtrueyes Constant: true tableTableAddress no TableAddress table.kind"block"no Constant: "block" table.nodeIdstring no table.nodeType"table"no Constant: "table" trackedChangeRefsEntityAddress[] no
Variant 2 (success=false)
Field Type Required Description failureobject yes failure.codeenum yes "NO_OP", "INVALID_TARGET", "TARGET_NOT_FOUND", "CAPABILITY_UNAVAILABLE"failure.detailsany no failure.messagestring yes successfalseyes Constant: false
When present, result.table is the follow-up address to reuse after this call. For non-destructive table-targeted mutations, pass result.table.nodeId to the next table operation instead of re-running find(). Destructive operations may omit table.
Example response
{
"success" : true ,
"table" : {
"kind" : "block" ,
"nodeId" : "node-def456" ,
"nodeType" : "table"
},
"trackedChangeRefs" : [
{
"entityId" : "entity-789" ,
"entityType" : "comment" ,
"kind" : "entity"
}
]
}
Pre-apply throws
TARGET_NOT_FOUND
INVALID_TARGET
CAPABILITY_UNAVAILABLE
Non-applied failure codes
Raw schemas
{
"oneOf" : [
{
"additionalProperties" : false ,
"properties" : {
"success" : {
"const" : true
},
"table" : {
"$ref" : "#/$defs/TableAddress"
},
"trackedChangeRefs" : {
"items" : {
"$ref" : "#/$defs/EntityAddress"
},
"type" : "array"
}
},
"required" : [
"success"
],
"type" : "object"
},
{
"additionalProperties" : false ,
"properties" : {
"failure" : {
"additionalProperties" : false ,
"properties" : {
"code" : {
"enum" : [
"NO_OP" ,
"INVALID_TARGET" ,
"TARGET_NOT_FOUND" ,
"CAPABILITY_UNAVAILABLE"
]
},
"details" : {},
"message" : {
"type" : "string"
}
},
"required" : [
"code" ,
"message"
],
"type" : "object"
},
"success" : {
"const" : false
}
},
"required" : [
"success" ,
"failure"
],
"type" : "object"
}
]
}
{
"additionalProperties" : false ,
"properties" : {
"success" : {
"const" : true
},
"table" : {
"$ref" : "#/$defs/TableAddress"
},
"trackedChangeRefs" : {
"items" : {
"$ref" : "#/$defs/EntityAddress"
},
"type" : "array"
}
},
"required" : [
"success"
],
"type" : "object"
}
{
"additionalProperties" : false ,
"properties" : {
"failure" : {
"additionalProperties" : false ,
"properties" : {
"code" : {
"enum" : [
"NO_OP" ,
"INVALID_TARGET" ,
"TARGET_NOT_FOUND" ,
"CAPABILITY_UNAVAILABLE"
]
},
"details" : {},
"message" : {
"type" : "string"
}
},
"required" : [
"code" ,
"message"
],
"type" : "object"
},
"success" : {
"const" : false
}
},
"required" : [
"success" ,
"failure"
],
"type" : "object"
}