---
title: Update a specific team from your account
slug: update-a-specific-team-from-your-account
docTags: 
createdAt: 2025-01-28T10:28:11.769Z
---

{
  "id": "kuFZuwVJZAxaCarh69msL",
  "type": "api-oas-v2",
  "data": {
    "method": "PUT",
    "url": "https://api.waydev.co/v2/teams/{team_id}",
    "name": "Update a specific team from your account",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "team_id",
          "type": "string",
          "description": "Id of the Team"
        }
      ],
      "headerParameters": [
        {
          "kind": "required",
          "name": "Authorization",
          "type": "string",
          "description": "Your PAT generated in Waydev"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "Raw JSON format with the fields to be updated. No field is required, only add those that are updated. \n *The members field will overwrite and set the team members with the new payload.",
          "schema": [
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "example": "Updated team name"
            },
            {
              "name": "description",
              "kind": "optional",
              "type": "string",
              "example": "Updated team description"
            },
            {
              "name": "include_merges",
              "kind": "optional",
              "type": "boolean",
              "example": true
            },
            {
              "name": "ignore_loc",
              "kind": "optional",
              "type": "number",
              "example": 2100
            },
            {
              "name": "ignore_message",
              "kind": "optional",
              "type": "string",
              "example": "Some message to ignore"
            },
            {
              "name": "stats_timezone",
              "kind": "optional",
              "type": "string",
              "example": "+02:00"
            },
            {
              "name": "members",
              "kind": "optional",
              "type": "array",
              "example": "[1234]",
              "itemType": "integer",
              "customType": "integer[]",
              "itemExample": "",
              "itemDefault": ""
            },
            {
              "name": "parent_id",
              "kind": "optional",
              "type": "number",
              "example": 1232
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful operation",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Successful operation",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "number",
                "example": 1231
              },
              {
                "name": "name",
                "kind": "optional",
                "type": "string",
                "example": "Team 1"
              },
              {
                "name": "slug",
                "kind": "optional",
                "type": "string",
                "example": "123131-team-1"
              },
              {
                "name": "created_at",
                "kind": "optional",
                "type": "string",
                "example": "2023-10-20T07:41:22.000000Z"
              },
              {
                "name": "updated_at",
                "kind": "optional",
                "type": "string",
                "example": "2024-02-12T09:49:18.000000Z"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Unauthorized",
            "schema": [
              {
                "name": "message",
                "kind": "optional",
                "type": "string",
                "example": "Unauthorized"
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Resourse not found.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Resourse not found.",
            "schema": [
              {
                "name": "error",
                "kind": "optional",
                "type": "object",
                "example": "",
                "schema": [
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "example": "Not Found!"
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "rBp2BLw1UyDgaYdWxajtl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PUT \\\n     --url https://api.waydev.co/v2/teams/{team_id} \\\n     --header 'accept: application/json' \\\n     --header 'authorization: string'"
        },
        {
          "id": "a7J5mssM4nrOO4L-lRuf0",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"authorization\", \"string\");\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.waydev.co/v2/teams/{team_id}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "eu8NkYFK9eb6CBN8-QVdW",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.waydev.co/v2/teams/{team_id}\")\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\"\nrequest[\"authorization\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "a1I-TU4USfBpmeO7iBsDk",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.waydev.co/v2/teams/{team_id}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'authorization': 'string'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "rBp2BLw1UyDgaYdWxajtl"
    },
    "results": {
      "languages": [
        {
          "id": "cflI9tsnl-9Of2TUoUJGi",
          "language": "200",
          "code": "// Successful operation\n{\n  \"id\": 1231,\n  \"name\": \"Team 1\",\n  \"slug\": \"123131-team-1\",\n  \"created_at\": \"2023-10-20T07:41:22.000000Z\",\n  \"updated_at\": \"2024-02-12T09:49:18.000000Z\"\n}"
        },
        {
          "id": "2cj8blEZxkXtTM3SDaJLE",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"message\": \"Unauthorized\"\n}"
        },
        {
          "id": "JVyBJX90i_KafVYPe3sDy",
          "language": "404",
          "code": "// Resourse not found.\n{\n  \"error\": {\n    \"message\": \"Not Found!\"\n  }\n}"
        }
      ],
      "selectedLanguageId": "cflI9tsnl-9Of2TUoUJGi"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}