---
title: Unassigns a Testimonial from a wiget.
slug: unassigns-a-testimonial-from-a-wiget
docTags: 
createdAt: 2025-08-10T07:26:32.596Z
---

{
  "id": "2pq4zOvbCc8_JO_ZUJteY",
  "type": "api-oas-v2",
  "data": {
    "method": "PUT",
    "url": "https://api.usetrust.app/v1/testimonial/{id}/remove-widget/{widgetId}",
    "servers": [],
    "name": "Unassigns a Testimonial from a wiget.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "id",
          "type": "string",
          "description": ""
        },
        {
          "kind": "required",
          "name": "widgetId",
          "type": "string",
          "description": ""
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "basic",
          "name": "basic",
          "kind": "optional",
          "type": "http",
          "description": "Basic Authentication header",
          "scheme": "basic"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "202",
        "description": "Accepted",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string",
            "description": "",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad Request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string",
            "description": "",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Not Found",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string",
            "description": "",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Internal Server Error",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "string",
            "description": "",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "chcC8dHY-ZVa8YelNmkEl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PUT \\\n     --url https://api.usetrust.app/v1/testimonial/{id}/remove-widget/{widgetId} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "aVkTbgJra2oD-Lf_KHxv6",
          "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: 'PUT',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.usetrust.app/v1/testimonial/{id}/remove-widget/{widgetId}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "1TceYsH1No22bTiwXTbv9",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.usetrust.app/v1/testimonial/{id}/remove-widget/{widgetId}\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Put.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "UEFEIjlVxClOnOAZ95uWO",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.usetrust.app/v1/testimonial/{id}/remove-widget/{widgetId}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        },
        {
          "id": "xFFVfW0EvNjgk7SkEjE0s",
          "language": "csharp",
          "label": "C#",
          "code": "var options = new RestClientOptions(\"https://api.usetrust.app\")\n{\n   MaxTimeout = -1,\n};\nvar client = new RestClient(options);\nvar request = new RestRequest(\"/v1/testimonial/{id}/remove-widget/{widgetId}\", Method.Put);\nrequest.AddHeader(\"accept\", \"application/json\");\nrequest.AddHeader(\"content-type\", \"application/json\");\nRestResponse response = await client.ExecuteAsync(request);\nConsole.WriteLine(response.Content);"
        }
      ],
      "selectedLanguageId": "chcC8dHY-ZVa8YelNmkEl"
    },
    "results": {
      "languages": [
        {
          "id": "ObsIyHLDm72v6hgcY8QyP",
          "language": "200",
          "code": ""
        },
        {
          "id": "_3hnuXgwHrZDPLtTtMs5Y",
          "language": "202",
          "code": "// Accepted\n\"\""
        },
        {
          "id": "q3kG0OQFyrb-I9J9-Rxfg",
          "language": "400",
          "code": "// Bad Request\n\"\""
        },
        {
          "id": "A-pNhUOsrs4ke9DTUUWGI",
          "language": "404",
          "code": "// Not Found\n\"\""
        },
        {
          "id": "y5RHGM2LskBqvvbxry7y_",
          "language": "500",
          "code": "// Internal Server Error\n\"\""
        }
      ],
      "selectedLanguageId": "ObsIyHLDm72v6hgcY8QyP"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}