{ "name": "UpdateWebExperiment", "fully_qualified_name": "PosthogApi.UpdateWebExperiment@0.1.0", "description": "Update web experiment details within a project.\n\nUse this tool to update specific details of a web experiment in a given project on Datadog. It tracks changes and logs views for the resource.", "toolkit": { "name": "ArcadePosthogApi", "description": null, "version": "0.1.0" }, "input": { "parameters": [ { "name": "web_experiment_id", "required": true, "description": "A unique integer identifying this web experiment to be updated.", "value_schema": { "val_type": "integer", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "inferrable": true, "http_endpoint_parameter_name": "id" }, { "name": "project_id", "required": true, "description": "The ID of the project to access. Retrieve this ID via the `/api/projects/` endpoint.", "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": "experiment_id", "required": true, "description": "The ID of the web experiment to update. Must be an integer.", "value_schema": { "val_type": "integer", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "inferrable": true, "http_endpoint_parameter_name": "id" }, { "name": "experiment_name", "required": true, "description": "Specify the name of the web experiment to update. This is used to identify the experiment for modification within the project.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "inferrable": true, "http_endpoint_parameter_name": "name" }, { "name": "feature_flag_key", "required": true, "description": "Unique identifier for the feature flag associated with the web experiment.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "inferrable": true, "http_endpoint_parameter_name": "feature_flag_key" }, { "name": "web_experiment_variants", "required": true, "description": "JSON string specifying variants for the web experiment. Include control, transforms, conditions, and rollout_percentage.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "Variants for the web experiment. Example:\n\n {\n \"control\": {\n \"transforms\": [\n {\n \"text\": \"Here comes Superman!\",\n \"html\": \"\",\n \"selector\": \"#page > #body > .header h1\"\n }\n ],\n \"conditions\": \"None\",\n \"rollout_percentage\": 50\n },\n }" }, "inferrable": true, "http_endpoint_parameter_name": "variants" }, { "name": "creation_timestamp", "required": false, "description": "Timestamp indicating when the web experiment was created. It should be in ISO 8601 format.", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "inferrable": true, "http_endpoint_parameter_name": "created_at" } ] }, "output": { "description": "Response from the API endpoint 'web_experiments_update'.", "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}/web_experiments/{id}/", "http_method": "PUT", "headers": {}, "parameters": [ { "name": "id", "tool_parameter_name": "experiment_id", "description": "A unique integer value identifying this web experiment.", "value_schema": { "val_type": "integer", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "A unique integer value identifying this web experiment." }, "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": "id", "tool_parameter_name": "experiment_id", "description": "", "value_schema": { "val_type": "integer", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "accepted_as": "body", "required": true, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "name", "tool_parameter_name": "experiment_name", "description": "", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "accepted_as": "body", "required": true, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "created_at", "tool_parameter_name": "creation_timestamp", "description": "", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "accepted_as": "body", "required": false, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "feature_flag_key", "tool_parameter_name": "feature_flag_key", "description": "", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "" }, "accepted_as": "body", "required": true, "deprecated": false, "default": null, "documentation_urls": [] }, { "name": "variants", "tool_parameter_name": "web_experiment_variants", "description": "Variants for the web experiment. Example:\n\n {\n \"control\": {\n \"transforms\": [\n {\n \"text\": \"Here comes Superman!\",\n \"html\": \"\",\n \"selector\": \"#page > #body > .header h1\"\n }\n ],\n \"conditions\": \"None\",\n \"rollout_percentage\": 50\n },\n }", "value_schema": { "val_type": "string", "inner_val_type": null, "enum": null, "properties": null, "inner_properties": null, "description": "Variants for the web experiment. Example:\n\n {\n \"control\": {\n \"transforms\": [\n {\n \"text\": \"Here comes Superman!\",\n \"html\": \"\",\n \"selector\": \"#page > #body > .header h1\"\n }\n ],\n \"conditions\": \"None\",\n \"rollout_percentage\": 50\n },\n }" }, "accepted_as": "body", "required": true, "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 \"description\": \"Serializer for the exposed /api/web_experiments endpoint, to be used in posthog-js and for headless APIs.\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\",\n \"readOnly\": true\n },\n \"name\": {\n \"type\": \"string\",\n \"maxLength\": 400\n },\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\"\n },\n \"feature_flag_key\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"variants\": {\n \"description\": \"Variants for the web experiment. Example:\\n\\n {\\n \\\"control\\\": {\\n \\\"transforms\\\": [\\n {\\n \\\"text\\\": \\\"Here comes Superman!\\\",\\n \\\"html\\\": \\\"\\\",\\n \\\"selector\\\": \\\"#page > #body > .header h1\\\"\\n }\\n ],\\n \\\"conditions\\\": \\\"None\\\",\\n \\\"rollout_percentage\\\": 50\\n },\\n }\"\n }\n },\n \"required\": [\n \"feature_flag_key\",\n \"id\",\n \"name\",\n \"variants\"\n ]\n }\n },\n \"application/x-www-form-urlencoded\": {\n \"schema\": {\n \"type\": \"object\",\n \"description\": \"Serializer for the exposed /api/web_experiments endpoint, to be used in posthog-js and for headless APIs.\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\",\n \"readOnly\": true\n },\n \"name\": {\n \"type\": \"string\",\n \"maxLength\": 400\n },\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\"\n },\n \"feature_flag_key\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"variants\": {\n \"description\": \"Variants for the web experiment. Example:\\n\\n {\\n \\\"control\\\": {\\n \\\"transforms\\\": [\\n {\\n \\\"text\\\": \\\"Here comes Superman!\\\",\\n \\\"html\\\": \\\"\\\",\\n \\\"selector\\\": \\\"#page > #body > .header h1\\\"\\n }\\n ],\\n \\\"conditions\\\": \\\"None\\\",\\n \\\"rollout_percentage\\\": 50\\n },\\n }\"\n }\n },\n \"required\": [\n \"feature_flag_key\",\n \"id\",\n \"name\",\n \"variants\"\n ]\n }\n },\n \"multipart/form-data\": {\n \"schema\": {\n \"type\": \"object\",\n \"description\": \"Serializer for the exposed /api/web_experiments endpoint, to be used in posthog-js and for headless APIs.\",\n \"properties\": {\n \"id\": {\n \"type\": \"integer\",\n \"readOnly\": true\n },\n \"name\": {\n \"type\": \"string\",\n \"maxLength\": 400\n },\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\"\n },\n \"feature_flag_key\": {\n \"type\": \"string\",\n \"readOnly\": true\n },\n \"variants\": {\n \"description\": \"Variants for the web experiment. Example:\\n\\n {\\n \\\"control\\\": {\\n \\\"transforms\\\": [\\n {\\n \\\"text\\\": \\\"Here comes Superman!\\\",\\n \\\"html\\\": \\\"\\\",\\n \\\"selector\\\": \\\"#page > #body > .header h1\\\"\\n }\\n ],\\n \\\"conditions\\\": \\\"None\\\",\\n \\\"rollout_percentage\\\": 50\\n },\\n }\"\n }\n },\n \"required\": [\n \"feature_flag_key\",\n \"id\",\n \"name\",\n \"variants\"\n ]\n }\n }\n },\n \"required\": true\n}", "use_request_body_schema_mode": false, "validate_request_body_schema": false } }