{
  "name": "UpdateDatadogUser",
  "fully_qualified_name": "DatadogApi.UpdateDatadogUser@0.1.0",
  "description": "Update a user's information in Datadog.\n\nUse this tool to edit the details of a user in Datadog. It requires an admin user's application key. Ideal for managing user access or updating user profiles as needed.",
  "toolkit": {
    "name": "ArcadeDatadogApi",
    "description": null,
    "version": "0.1.0"
  },
  "input": {
    "parameters": [
      {
        "name": "user_id",
        "required": true,
        "description": "The unique identifier for the user to be updated in Datadog.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "The ID of the user."
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "user_id"
      },
      {
        "name": "user_identifier",
        "required": true,
        "description": "The unique ID of the user to be updated in Datadog.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "ID of the user."
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "data.id"
      },
      {
        "name": "user_resource_type",
        "required": true,
        "description": "Specifies the resource type for the user. Must be set to 'users'.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": [
            "users"
          ],
          "properties": null,
          "inner_properties": null,
          "description": "Users resource type."
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "data.type"
      },
      {
        "name": "user_email",
        "required": false,
        "description": "The email address of the user to be updated in Datadog.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "The email of the user."
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "data.attributes.email"
      },
      {
        "name": "user_name",
        "required": false,
        "description": "The name of the user to be updated in Datadog.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "The name of the user."
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "data.attributes.name"
      },
      {
        "name": "disable_user",
        "required": false,
        "description": "Boolean value to set if the user is disabled (true) or enabled (false).",
        "value_schema": {
          "val_type": "boolean",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "If the user is enabled or disabled."
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "data.attributes.disabled"
      }
    ]
  },
  "output": {
    "description": "Response from the API endpoint 'UpdateUser'.",
    "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": "DATADOG_API_KEY"
      },
      {
        "key": "DATADOG_APPLICATION_KEY"
      },
      {
        "key": "DATADOG_BASE_URL"
      }
    ],
    "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": "https://{datadog_base_url}/api/v2/users/{user_id}",
    "http_method": "PATCH",
    "headers": {},
    "parameters": [
      {
        "name": "user_id",
        "tool_parameter_name": "user_id",
        "description": "The ID of the user.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "The ID of the user."
        },
        "accepted_as": "path",
        "required": true,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      },
      {
        "name": "data.attributes.disabled",
        "tool_parameter_name": "disable_user",
        "description": "If the user is enabled or disabled.",
        "value_schema": {
          "val_type": "boolean",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "If the user is enabled or disabled."
        },
        "accepted_as": "body",
        "required": false,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      },
      {
        "name": "data.attributes.email",
        "tool_parameter_name": "user_email",
        "description": "The email of the user.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "The email of the user."
        },
        "accepted_as": "body",
        "required": false,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      },
      {
        "name": "data.attributes.name",
        "tool_parameter_name": "user_name",
        "description": "The name of the user.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "The name of the user."
        },
        "accepted_as": "body",
        "required": false,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      },
      {
        "name": "data.id",
        "tool_parameter_name": "user_identifier",
        "description": "ID of the user.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "ID of the user."
        },
        "accepted_as": "body",
        "required": true,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      },
      {
        "name": "data.type",
        "tool_parameter_name": "user_resource_type",
        "description": "Users resource type.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": [
            "users"
          ],
          "properties": null,
          "inner_properties": null,
          "description": "Users resource type."
        },
        "accepted_as": "body",
        "required": true,
        "deprecated": false,
        "default": "users",
        "documentation_urls": []
      }
    ],
    "documentation_urls": [],
    "secrets": [
      {
        "arcade_key": "DATADOG_API_KEY",
        "parameter_name": "DD-API-KEY",
        "accepted_as": "header",
        "formatted_value": null,
        "description": "",
        "is_auth_token": false
      },
      {
        "arcade_key": "DATADOG_APPLICATION_KEY",
        "parameter_name": "DD-APPLICATION-KEY",
        "accepted_as": "header",
        "formatted_value": null,
        "description": "",
        "is_auth_token": false
      },
      {
        "arcade_key": "DATADOG_BASE_URL",
        "parameter_name": "datadog_base_url",
        "accepted_as": "path",
        "formatted_value": null,
        "description": "",
        "is_auth_token": false
      }
    ],
    "request_body_spec": "{\n  \"content\": {\n    \"application/json\": {\n      \"schema\": {\n        \"description\": \"Update a user.\",\n        \"properties\": {\n          \"data\": {\n            \"description\": \"Object to update a user.\",\n            \"properties\": {\n              \"attributes\": {\n                \"description\": \"Attributes of the edited user.\",\n                \"properties\": {\n                  \"disabled\": {\n                    \"description\": \"If the user is enabled or disabled.\",\n                    \"type\": \"boolean\"\n                  },\n                  \"email\": {\n                    \"description\": \"The email of the user.\",\n                    \"type\": \"string\"\n                  },\n                  \"name\": {\n                    \"description\": \"The name of the user.\",\n                    \"type\": \"string\"\n                  }\n                },\n                \"type\": \"object\"\n              },\n              \"id\": {\n                \"description\": \"ID of the user.\",\n                \"example\": \"00000000-0000-feed-0000-000000000000\",\n                \"type\": \"string\"\n              },\n              \"type\": {\n                \"default\": \"users\",\n                \"description\": \"Users resource type.\",\n                \"enum\": [\n                  \"users\"\n                ],\n                \"example\": \"users\",\n                \"type\": \"string\",\n                \"x-enum-varnames\": [\n                  \"USERS\"\n                ]\n              }\n            },\n            \"required\": [\n              \"attributes\",\n              \"type\",\n              \"id\"\n            ],\n            \"type\": \"object\"\n          }\n        },\n        \"required\": [\n          \"data\"\n        ],\n        \"type\": \"object\"\n      }\n    }\n  },\n  \"required\": true\n}",
    "use_request_body_schema_mode": false,
    "validate_request_body_schema": false
  }
}
