{
  "name": "UpdateProxyRecord",
  "fully_qualified_name": "PosthogApi.UpdateProxyRecord@0.1.0",
  "description": "Update a proxy record within an organization.\n\nUse this tool to update details of a specific proxy record for a given organization in Datadog.",
  "toolkit": {
    "name": "ArcadePosthogApi",
    "description": null,
    "version": "0.1.0"
  },
  "input": {
    "parameters": [
      {
        "name": "proxy_record_id",
        "required": true,
        "description": "The unique identifier for the proxy record to be updated.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": ""
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "id"
      },
      {
        "name": "organization_id",
        "required": true,
        "description": "A unique identifier for the organization whose proxy record is being updated. This must be a valid string representing the organization in Datadog.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": ""
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "organization_id"
      },
      {
        "name": "proxy_record_data",
        "required": true,
        "description": "JSON object containing proxy record details such as id, domain, target_cname, status, message, and timestamps.",
        "value_schema": {
          "val_type": "json",
          "inner_val_type": null,
          "enum": null,
          "properties": {
            "id": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "domain": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "target_cname": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "status": {
              "val_type": "json",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "message": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "created_at": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "updated_at": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "created_by": {
              "val_type": "integer",
              "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 'proxy_records_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/organizations/{organization_id}/proxy_records/{id}/",
    "http_method": "PUT",
    "headers": {},
    "parameters": [
      {
        "name": "id",
        "tool_parameter_name": "proxy_record_id",
        "description": "",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": ""
        },
        "accepted_as": "path",
        "required": true,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      },
      {
        "name": "organization_id",
        "tool_parameter_name": "organization_id",
        "description": "",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": ""
        },
        "accepted_as": "path",
        "required": true,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      },
      {
        "name": "requestBody",
        "tool_parameter_name": "proxy_record_data",
        "description": "",
        "value_schema": {
          "val_type": "json",
          "inner_val_type": null,
          "enum": null,
          "properties": {
            "id": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "domain": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "target_cname": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "status": {
              "val_type": "json",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "message": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "created_at": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "updated_at": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "created_by": {
              "val_type": "integer",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            }
          },
          "inner_properties": null,
          "description": ""
        },
        "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        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"format\": \"uuid\",\n            \"readOnly\": true\n          },\n          \"domain\": {\n            \"type\": \"string\",\n            \"maxLength\": 64\n          },\n          \"target_cname\": {\n            \"type\": \"string\",\n            \"readOnly\": true\n          },\n          \"status\": {\n            \"allOf\": [\n              {\n                \"enum\": [\n                  \"waiting\",\n                  \"issuing\",\n                  \"valid\",\n                  \"warning\",\n                  \"erroring\",\n                  \"deleting\",\n                  \"timed_out\"\n                ],\n                \"type\": \"string\",\n                \"description\": \"* `waiting` - Waiting\\n* `issuing` - Issuing\\n* `valid` - Valid\\n* `warning` - Warning\\n* `erroring` - Erroring\\n* `deleting` - Deleting\\n* `timed_out` - Timed Out\"\n              }\n            ],\n            \"readOnly\": true\n          },\n          \"message\": {\n            \"type\": \"string\",\n            \"readOnly\": true,\n            \"nullable\": true\n          },\n          \"created_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"updated_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"created_by\": {\n            \"type\": \"integer\",\n            \"readOnly\": true,\n            \"nullable\": true\n          }\n        },\n        \"required\": [\n          \"created_at\",\n          \"created_by\",\n          \"domain\",\n          \"id\",\n          \"message\",\n          \"status\",\n          \"target_cname\",\n          \"updated_at\"\n        ]\n      }\n    },\n    \"application/x-www-form-urlencoded\": {\n      \"schema\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"format\": \"uuid\",\n            \"readOnly\": true\n          },\n          \"domain\": {\n            \"type\": \"string\",\n            \"maxLength\": 64\n          },\n          \"target_cname\": {\n            \"type\": \"string\",\n            \"readOnly\": true\n          },\n          \"status\": {\n            \"allOf\": [\n              {\n                \"enum\": [\n                  \"waiting\",\n                  \"issuing\",\n                  \"valid\",\n                  \"warning\",\n                  \"erroring\",\n                  \"deleting\",\n                  \"timed_out\"\n                ],\n                \"type\": \"string\",\n                \"description\": \"* `waiting` - Waiting\\n* `issuing` - Issuing\\n* `valid` - Valid\\n* `warning` - Warning\\n* `erroring` - Erroring\\n* `deleting` - Deleting\\n* `timed_out` - Timed Out\"\n              }\n            ],\n            \"readOnly\": true\n          },\n          \"message\": {\n            \"type\": \"string\",\n            \"readOnly\": true,\n            \"nullable\": true\n          },\n          \"created_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"updated_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"created_by\": {\n            \"type\": \"integer\",\n            \"readOnly\": true,\n            \"nullable\": true\n          }\n        },\n        \"required\": [\n          \"created_at\",\n          \"created_by\",\n          \"domain\",\n          \"id\",\n          \"message\",\n          \"status\",\n          \"target_cname\",\n          \"updated_at\"\n        ]\n      }\n    },\n    \"multipart/form-data\": {\n      \"schema\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"format\": \"uuid\",\n            \"readOnly\": true\n          },\n          \"domain\": {\n            \"type\": \"string\",\n            \"maxLength\": 64\n          },\n          \"target_cname\": {\n            \"type\": \"string\",\n            \"readOnly\": true\n          },\n          \"status\": {\n            \"allOf\": [\n              {\n                \"enum\": [\n                  \"waiting\",\n                  \"issuing\",\n                  \"valid\",\n                  \"warning\",\n                  \"erroring\",\n                  \"deleting\",\n                  \"timed_out\"\n                ],\n                \"type\": \"string\",\n                \"description\": \"* `waiting` - Waiting\\n* `issuing` - Issuing\\n* `valid` - Valid\\n* `warning` - Warning\\n* `erroring` - Erroring\\n* `deleting` - Deleting\\n* `timed_out` - Timed Out\"\n              }\n            ],\n            \"readOnly\": true\n          },\n          \"message\": {\n            \"type\": \"string\",\n            \"readOnly\": true,\n            \"nullable\": true\n          },\n          \"created_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"updated_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"created_by\": {\n            \"type\": \"integer\",\n            \"readOnly\": true,\n            \"nullable\": true\n          }\n        },\n        \"required\": [\n          \"created_at\",\n          \"created_by\",\n          \"domain\",\n          \"id\",\n          \"message\",\n          \"status\",\n          \"target_cname\",\n          \"updated_at\"\n        ]\n      }\n    }\n  },\n  \"required\": true\n}",
    "use_request_body_schema_mode": true,
    "validate_request_body_schema": true
  }
}
