Skip to main content

Bulk Update Media Objects

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEghl.bulk_update_media_objects
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.2
  • Descriptor hash: 7c6030e0a73a05f654f2e768e230603470f80c608c6333bce3fa1eba89777c66

Bulk update GHL Media Storage file/folder metadata. Provide filesToBeUpdated using GHL canon: each item needs an id and the fields to change, typically name. GHL category: Media Storage. This writes to GoHighLevel and may change account data.

Request Body

{
"jsonrpc": "2.0",
"id": "ghl-bulk-update-media-objects-example",
"method": "tools/call",
"params": {
"name": "ghl.bulk_update_media_objects",
"arguments": {
"filesToBeUpdated": [],
"altId": "altId_123",
"altType": "location",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"filesToBeUpdated"
],
"properties": {
"altId": {
"type": "string",
"description": "Location ID. Defaults to the current GHL location."
},
"altType": {
"enum": [
"location"
],
"type": "string",
"default": "location",
"description": "GHL media context type. GHL Media Storage bulk updates support location context."
},
"tenantId": {
"type": "string",
"description": "Tenant ID from list_tenants."
},
"locationId": {
"type": "string",
"description": "GHL location ID. In BYOK runtime this must match the request header location."
},
"strictTenant": {
"type": "boolean",
"default": true,
"description": "Require tenantId to match locationId routing (default: true)."
},
"filesToBeUpdated": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Media file or folder ID."
},
"_id": {
"type": "string",
"description": "Compatibility alias for id."
},
"name": {
"type": "string",
"description": "New file or folder name."
},
"status": {
"type": "string",
"description": "Optional status if supported by GHL for the object type."
},
"parentId": {
"type": "string",
"description": "Optional destination parent folder ID if supported by GHL for the object type."
}
},
"additionalProperties": true
},
"minItems": 1,
"description": "Array of GHL media objects to update."
}
}
}

Output Schema

{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the GHL MCP operation completed successfully."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Tool-specific GHL or local navigation result when ok is true."
},
"meta": {
"type": "object",
"description": "Safe execution, routing, and timing metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Safe error details when ok is false; credential values are never returned."
}
},
"description": "Normalized GHL MCP response envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ghl-bulk-update-media-objects-example",
"method": "tools/call",
"params": {
"name": "ghl.bulk_update_media_objects",
"arguments": {
"filesToBeUpdated": [],
"altId": "altId_123",
"altType": "location",
"tenantId": "tenantId_123",
"locationId": "locationId_123",
"strictTenant": false
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool ghl.bulk_update_media_objects executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}