{ "name": "RefreshInsightSharing", "fully_qualified_name": "PosthogApi.RefreshInsightSharing@0.1.0", "description": "Refresh the sharing settings of an insight.\n\nUse this tool to refresh the sharing settings for a specific insight within a project. This is useful when access permissions or sharing parameters need to be updated to reflect the latest configurations.", "toolkit": { "name": "ArcadePosthogApi", "description": null, "version": "0.1.0" }, "input": { "parameters": [ { "name": "insight_identifier", "required": true, "description": "The unique integer identifier for the insight to refresh sharing settings.", "value_schema": { "val_type": "integer", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "inferrable": true, "http_endpoint_parameter_name": "insight_id" }, { "name": "project_id", "required": true, "description": "The Project ID to access. Retrieve it by calling /api/projects/.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." }, "inferrable": true, "http_endpoint_parameter_name": "project_id" }, { "name": "insight_sharing_request_body", "required": false, "description": "A JSON object containing details like creation timestamp, enabled status, access token, settings, and password requirements for refreshing insight sharing.", "value_schema": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": { "created_at": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "enabled": { "val_type": "boolean", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "access_token": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "settings": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "password_required": { "val_type": "boolean", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "share_passwords": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null } }, "inner_properties": null, "description": "" }, "inferrable": true, "http_endpoint_parameter_name": "requestBody" } ] }, "output": { "description": "Response from the API endpoint 'insights_sharing_refresh_create'.", "available_modes": [ "value", "error", "null" ], "value_schema": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null } }, "requirements": { "authorization": null, "secrets": [ { "key": "POSTHOG_SERVER_URL" }, { "key": "POSTHOG_PERSONAL_API_KEY" } ], "metadata": null }, "deprecation_message": null, "metadata": { "object_type": "api_wrapper_tool", "version": "1.1.0", "description": "Tools that enable LLMs to interact directly with the Datadog API." }, "http_endpoint": { "metadata": { "object_type": "http_endpoint", "version": "1.2.0", "description": "" }, "url": "{posthog_server_url}/api/projects/{project_id}/insights/{insight_id}/sharing/refresh/", "http_method": "POST", "headers": {}, "parameters": [ { "name": "insight_id", "tool_parameter_name": "insight_identifier", "description": "", "value_schema": { "val_type": "integer", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "accepted_as": "path", "required": true, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "project_id", "tool_parameter_name": "project_id", "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." }, "accepted_as": "path", "required": true, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "requestBody", "tool_parameter_name": "insight_sharing_request_body", "description": "", "value_schema": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": { "created_at": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "enabled": { "val_type": "boolean", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "access_token": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "settings": { "val_type": "json", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "password_required": { "val_type": "boolean", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null }, "share_passwords": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": null } }, "inner_properties": null, "description": "" }, "accepted_as": "body", "required": false, "deprecated": false, "default": null, "documentation_urls": [] } ], "documentation_urls": [], "secrets": [ { "arcade_key": "POSTHOG_SERVER_URL", "parameter_name": "posthog_server_url", "accepted_as": "path", "formatted_value": null, "description": "", "is_auth_token": false }, { "arcade_key": "POSTHOG_PERSONAL_API_KEY", "parameter_name": "Authorization", "accepted_as": "header", "formatted_value": "Bearer {authorization}", "description": "", "is_auth_token": false } ], "request_body_spec": "{\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"readOnly\": true\n },\n \"enabled\": {\n \"type\": \"boolean\"\n },\n \"access_token\": {\n \"type\": \"string\",\n \"readOnly\": true,\n \"nullable\": true\n },\n \"settings\": {\n \"nullable\": true\n },\n \"password_required\": {\n \"type\": \"boolean\"\n },\n \"share_passwords\": {\n \"type\": \"string\",\n \"readOnly\": true\n }\n },\n \"required\": [\n \"access_token\",\n \"created_at\",\n \"share_passwords\"\n ]\n }\n },\n \"application/x-www-form-urlencoded\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"readOnly\": true\n },\n \"enabled\": {\n \"type\": \"boolean\"\n },\n \"access_token\": {\n \"type\": \"string\",\n \"readOnly\": true,\n \"nullable\": true\n },\n \"settings\": {\n \"nullable\": true\n },\n \"password_required\": {\n \"type\": \"boolean\"\n },\n \"share_passwords\": {\n \"type\": \"string\",\n \"readOnly\": true\n }\n },\n \"required\": [\n \"access_token\",\n \"created_at\",\n \"share_passwords\"\n ]\n }\n },\n \"multipart/form-data\": {\n \"schema\": {\n \"type\": \"object\",\n \"properties\": {\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"readOnly\": true\n },\n \"enabled\": {\n \"type\": \"boolean\"\n },\n \"access_token\": {\n \"type\": \"string\",\n \"readOnly\": true,\n \"nullable\": true\n },\n \"settings\": {\n \"nullable\": true\n },\n \"password_required\": {\n \"type\": \"boolean\"\n },\n \"share_passwords\": {\n \"type\": \"string\",\n \"readOnly\": true\n }\n },\n \"required\": [\n \"access_token\",\n \"created_at\",\n \"share_passwords\"\n ]\n }\n }\n }\n}", "use_request_body_schema_mode": true, "validate_request_body_schema": true } }