{
  "name": "UpdateEnterpriseUserAttribute",
  "fully_qualified_name": "GithubApi.UpdateEnterpriseUserAttribute@0.1.0",
  "description": "Update individual attributes for a provisioned enterprise user.\n\nUse this tool to modify attributes of a provisioned user in an enterprise setting using SCIM API operations. It allows adding, removing, or replacing user attributes. Note that complex path selectors and some operations like suspending a user may have specific caveats. Refer to the SCIM specification for operation format guidance.",
  "toolkit": {
    "name": "ArcadeGithubApi",
    "description": null,
    "version": "0.1.0"
  },
  "input": {
    "parameters": [
      {
        "name": "scim_user_id",
        "required": true,
        "description": "The unique identifier for the SCIM user whose attributes you want to update.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "The unique identifier of the SCIM user."
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "scim_user_id"
      },
      {
        "name": "scim_operations_request",
        "required": true,
        "description": "JSON object detailing SCIM operations (add, remove, replace) to update user attributes, formatted according to SCIM specification.",
        "value_schema": {
          "val_type": "json",
          "inner_val_type": null,
          "enum": null,
          "properties": {
            "Operations": {
              "val_type": "array",
              "inner_val_type": "json",
              "enum": null,
              "properties": null,
              "inner_properties": {
                "op": {
                  "val_type": "string",
                  "inner_val_type": null,
                  "enum": [
                    "add",
                    "replace",
                    "remove"
                  ],
                  "properties": null,
                  "inner_properties": null,
                  "description": null
                },
                "path": {
                  "val_type": "string",
                  "inner_val_type": null,
                  "enum": null,
                  "properties": null,
                  "inner_properties": null,
                  "description": null
                },
                "value": {
                  "val_type": "string",
                  "inner_val_type": null,
                  "enum": null,
                  "properties": null,
                  "inner_properties": null,
                  "description": "Corresponding 'value' of that field specified by 'path'"
                }
              },
              "description": "patch operations list"
            },
            "schemas": {
              "val_type": "array",
              "inner_val_type": "string",
              "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 'enterprise-admin/update-attribute-for-enterprise-user'.",
    "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": {
      "provider_id": "arcade-github",
      "provider_type": "oauth2",
      "id": null,
      "oauth2": null
    },
    "secrets": [
      {
        "key": "GIT_SERVER_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 GitHub API."
  },
  "http_endpoint": {
    "metadata": {
      "object_type": "http_endpoint",
      "version": "1.2.0",
      "description": ""
    },
    "url": "{git_server_url}/api/v3/scim/v2/Users/{scim_user_id}",
    "http_method": "PATCH",
    "headers": {},
    "parameters": [
      {
        "name": "scim_user_id",
        "tool_parameter_name": "scim_user_id",
        "description": "The unique identifier of the SCIM user.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "The unique identifier of the SCIM user."
        },
        "accepted_as": "path",
        "required": true,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      },
      {
        "name": "requestBody",
        "tool_parameter_name": "scim_operations_request",
        "description": "",
        "value_schema": {
          "val_type": "json",
          "inner_val_type": null,
          "enum": null,
          "properties": {
            "Operations": {
              "val_type": "array",
              "inner_val_type": "json",
              "enum": null,
              "properties": null,
              "inner_properties": {
                "op": {
                  "val_type": "string",
                  "inner_val_type": null,
                  "enum": [
                    "add",
                    "replace",
                    "remove"
                  ],
                  "properties": null,
                  "inner_properties": null,
                  "description": null
                },
                "path": {
                  "val_type": "string",
                  "inner_val_type": null,
                  "enum": null,
                  "properties": null,
                  "inner_properties": null,
                  "description": null
                },
                "value": {
                  "val_type": "string",
                  "inner_val_type": null,
                  "enum": null,
                  "properties": null,
                  "inner_properties": null,
                  "description": "Corresponding 'value' of that field specified by 'path'"
                }
              },
              "description": "patch operations list"
            },
            "schemas": {
              "val_type": "array",
              "inner_val_type": "string",
              "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": "GIT_SERVER_URL",
        "parameter_name": "git_server_url",
        "accepted_as": "path",
        "formatted_value": null,
        "description": "",
        "is_auth_token": false
      },
      {
        "arcade_key": "auth_token",
        "parameter_name": "Authorization",
        "accepted_as": "header",
        "formatted_value": "Bearer {authorization}",
        "description": "The OAuth token to use for authentication.",
        "is_auth_token": true
      }
    ],
    "request_body_spec": "{\n  \"content\": {\n    \"application/json\": {\n      \"examples\": {\n        \"disableUser\": {\n          \"summary\": \"Disable User\",\n          \"value\": {\n            \"Operations\": [\n              {\n                \"op\": \"replace\",\n                \"path\": \"active\",\n                \"value\": false\n              }\n            ],\n            \"schemas\": [\n              \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n            ]\n          }\n        },\n        \"userMultiValuedProperties\": {\n          \"summary\": \"Multi Valued Property\",\n          \"value\": {\n            \"Operations\": [\n              {\n                \"op\": \"replace\",\n                \"path\": \"emails[type eq 'work'].value\",\n                \"value\": \"updatedEmail@microsoft.com\"\n              },\n              {\n                \"op\": \"replace\",\n                \"path\": \"name.familyName\",\n                \"value\": \"updatedFamilyName\"\n              }\n            ],\n            \"schemas\": [\n              \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n            ]\n          }\n        },\n        \"userSingleValuedProperties\": {\n          \"summary\": \"Single Valued Property\",\n          \"value\": {\n            \"Operations\": [\n              {\n                \"op\": \"replace\",\n                \"path\": \"userName\",\n                \"value\": \"5b50642d-79fc-4410-9e90-4c077cdd1a59@testuser.com\"\n              },\n              {\n                \"op\": \"replace\",\n                \"path\": \"displayName\",\n                \"value\": \"Monalisa Octocat\"\n              }\n            ],\n            \"schemas\": [\n              \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n            ]\n          }\n        }\n      },\n      \"schema\": {\n        \"properties\": {\n          \"Operations\": {\n            \"description\": \"patch operations list\",\n            \"items\": {\n              \"properties\": {\n                \"op\": {\n                  \"enum\": [\n                    \"add\",\n                    \"replace\",\n                    \"remove\"\n                  ],\n                  \"type\": \"string\"\n                },\n                \"path\": {\n                  \"type\": \"string\"\n                },\n                \"value\": {\n                  \"description\": \"Corresponding 'value' of that field specified by 'path'\",\n                  \"type\": \"string\"\n                }\n              },\n              \"required\": [\n                \"op\"\n              ],\n              \"type\": \"object\"\n            },\n            \"type\": \"array\"\n          },\n          \"schemas\": {\n            \"items\": {\n              \"enum\": [\n                \"urn:ietf:params:scim:api:messages:2.0:PatchOp\"\n              ],\n              \"type\": \"string\"\n            },\n            \"type\": \"array\"\n          }\n        },\n        \"required\": [\n          \"Operations\",\n          \"schemas\"\n        ],\n        \"type\": \"object\"\n      }\n    }\n  },\n  \"required\": true\n}",
    "use_request_body_schema_mode": true,
    "validate_request_body_schema": true
  }
}
