---
title: Disable webhook endpoint
slug: disable-webhook-endpoint
docTags: 
createdAt: 2026-08-25T19:28:59.170Z
---

{
  "id": "qwJ9tu2aC9GOs4d0mR-DM",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.nue.io/webhook-endpoints/{id}:disable",
    "servers": [
      {
        "url": "https://api.nue.io/webhook-endpoints/{id}:disable",
        "description": "Nue Production API Endpoint"
      },
      {
        "url": "https://api.sandbox.nue.io/webhook-endpoints/{id}:disable",
        "description": "Nue Sandbox API Endpoint"
      }
    ],
    "name": "Disable webhook endpoint",
    "description": "Update integration status to disabled",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "id",
          "type": "string",
          "description": ""
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json",
            "*/*"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKeyAuth",
          "name": "nue-api-key",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "disable an webhook endpoint success",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "response after disable a webhook-endpoint",
            "code": "webhook disabled"
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad Request",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "Not Found",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "500",
        "description": "webhook endpoint not found",
        "jsonExample": "",
        "isExpanded": true,
        "subExamples": [
          {
            "label": "webhook endpoint not found",
            "code": "{\n  \"title\": \"BAD_REQUEST\",\n  \"message\": \"Cannot find webhook endpoint with ID {{webhookId}}}\",\n  \"errorCode\": \"WEBHOOK_ENDPOINT_NOT_FOUND\"\n}"
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "ZLoMKV92z8dE0oG6fbiMF",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.nue.io/webhook-endpoints/{id}:disable \\\n     --header 'accept: application/json'"
        },
        {
          "id": "QHeD98U1OaveqFxFyrMFa",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.nue.io/webhook-endpoints/{id}:disable\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "jEERqYPXxdziqnP_VAcfx",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.nue.io/webhook-endpoints/{id}:disable\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "Z8VV2uwjzEWM_XHSJKx9Z",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.nue.io/webhook-endpoints/{id}:disable\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "ZLoMKV92z8dE0oG6fbiMF"
    },
    "results": {
      "languages": [
        {
          "id": "1Qx5xXhCBK-62gDZw8NkD",
          "language": "200",
          "code": "// disable an webhook endpoint success\n",
          "subExamples": [
            {
              "label": "response after disable a webhook-endpoint",
              "code": "webhook disabled"
            }
          ]
        },
        {
          "id": "yjrJJLdhnkqronsIrmHCS",
          "language": "400",
          "code": "// Bad Request\n"
        },
        {
          "id": "xIev__OhNE8FiYdCwuruv",
          "language": "404",
          "code": "// Not Found\n"
        },
        {
          "id": "PjnFGA1Lc8gWAicAIEy_o",
          "language": "500",
          "code": "// webhook endpoint not found\n",
          "subExamples": [
            {
              "label": "webhook endpoint not found",
              "code": "{\n  \"title\": \"BAD_REQUEST\",\n  \"message\": \"Cannot find webhook endpoint with ID {{webhookId}}}\",\n  \"errorCode\": \"WEBHOOK_ENDPOINT_NOT_FOUND\"\n}"
            }
          ]
        }
      ],
      "selectedLanguageId": "1Qx5xXhCBK-62gDZw8NkD"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}