{
  "tags": [
    "网站管理"
  ],
  "description": "更新一个网站的指定配置。路径中的 `site_id` 会强制写入请求对象，客户端传入的同名字段会被覆盖；请求体必须是 JSON 对象而非数组。仅传需要修改的字段。普通用户仅能更新自己的网站，涉及归属用户、套餐、区域、线路和 CNAME 资源的字段仅管理员可用。",
  "operationId": "user_put_v1_sites_site_id",
  "security": [
    {
      "AccessToken": []
    },
    {
      "ApiKey": [],
      "ApiSecret": []
    }
  ],
  "responses": {
    "200": {
      "description": "请求已被处理。成功时 `code` 为 0、`msg` 为“更新网站成功”、`data` 为 null；字段校验、网站不存在或权限不足时仍返回 HTTP 200。",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "code",
              "msg",
              "data"
            ],
            "properties": {
              "code": {
                "type": "integer",
                "description": "业务状态码；成功为 0。",
                "example": 0
              },
              "msg": {
                "type": "string",
                "description": "处理结果说明。",
                "example": "更新网站成功"
              },
              "data": {
                "type": "string",
                "nullable": true,
                "description": "成功时为 null；失败时为空字符串。",
                "example": null
              }
            }
          },
          "examples": {
            "success": {
              "summary": "更新源站",
              "value": {
                "code": 0,
                "msg": "更新网站成功",
                "data": null
              }
            },
            "invalidBody": {
              "summary": "请求体不是对象",
              "value": {
                "code": "site-8",
                "msg": "需要字典格式",
                "data": ""
              }
            }
          },
          "example": {
            "code": 0,
            "msg": "更新网站成功",
            "data": null
          }
        }
      }
    }
  },
  "x-python-handler": "site.SiteAPI",
  "x-python-route-line": 568,
  "x-audience": "user",
  "x-auth": "user",
  "x-reviewed": true,
  "parameters": [
    {
      "name": "site_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "integer"
      },
      "description": "要更新的网站 ID；必须存在，且当前用户必须拥有该网站或具备管理员权限。"
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "description": "单网站更新对象；`id` 由路径参数注入，不能用请求体更换目标网站。",
          "additionalProperties": false,
          "properties": {
            "domain": {
              "type": "string",
              "description": "网站域名，多个域名以空白字符分隔。修改时会转小写，并校验域名、主域名、区域内域名及端口唯一性。"
            },
            "backend": {
              "type": "array",
              "description": "完整源站列表；至少包含一个状态为 `up` 的源站。",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "addr",
                  "weight",
                  "state"
                ],
                "properties": {
                  "addr": {
                    "type": "string",
                    "description": "源站 IPv4、IPv6 或域名。"
                  },
                  "weight": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 10,
                    "description": "源站权重。"
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down",
                      "backup"
                    ],
                    "description": "源站状态。"
                  }
                }
              }
            },
            "user_package": {
              "type": "integer",
              "description": "用户套餐 ID；套餐必须属于网站归属用户且处于可用状态。"
            },
            "new_uid": {
              "type": "integer",
              "description": "管理员专用。将网站转移至指定用户；同时必须设置 `user_package`。"
            },
            "http_listen": {
              "type": "object",
              "description": "HTTP 监听配置。",
              "additionalProperties": false,
              "properties": {
                "port": {
                  "type": "string",
                  "description": "空白分隔的端口；每项必须有效、允许且未占用。"
                }
              }
            },
            "https_listen": {
              "type": "object",
              "description": "HTTPS 监听配置。",
              "additionalProperties": false,
              "properties": {
                "port": {
                  "type": "string",
                  "description": "空白分隔的 HTTPS 端口。"
                },
                "cert": {
                  "type": "integer",
                  "description": "已启用证书 ID。"
                },
                "hsts": {
                  "type": "integer",
                  "enum": [
                    0,
                    1
                  ],
                  "description": "是否启用 HSTS。"
                },
                "http2": {
                  "type": "integer",
                  "enum": [
                    0,
                    1
                  ],
                  "description": "是否启用 HTTP/2。"
                },
                "http3": {
                  "type": "integer",
                  "enum": [
                    0,
                    1
                  ],
                  "description": "是否启用 HTTP/3。"
                },
                "ocsp_stapling": {
                  "type": "integer",
                  "enum": [
                    0,
                    1
                  ],
                  "description": "是否启用 OCSP Stapling。"
                },
                "force_ssl_enable": {
                  "type": "integer",
                  "enum": [
                    0,
                    1
                  ],
                  "description": "是否强制 HTTPS。"
                },
                "force_ssl_port": {
                  "type": "string",
                  "description": "强制跳转目标 HTTPS 端口。"
                },
                "ssl_protocols": {
                  "type": "string",
                  "description": "TLS 协议列表。"
                },
                "ssl_ciphers": {
                  "type": "string",
                  "description": "TLS 密码套件。"
                },
                "ssl_prefer_server_ciphers": {
                  "type": "string",
                  "enum": [
                    "on",
                    "off"
                  ],
                  "description": "是否优先服务端密码套件。"
                }
              }
            },
            "balance_way": {
              "type": "string",
              "enum": [
                "ip_hash",
                "rr"
              ],
              "description": "负载均衡方式。"
            },
            "backend_protocol": {
              "type": "string",
              "enum": [
                "follow",
                "http",
                "https"
              ],
              "description": "回源协议。"
            },
            "backend_http_port": {
              "type": "integer",
              "description": "HTTP 回源端口。"
            },
            "backend_https_port": {
              "type": "integer",
              "description": "HTTPS 回源端口。"
            },
            "backend_port_mapping": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "description": "是否将访问端口映射到回源端口。"
            },
            "proxy_timeout": {
              "type": "integer",
              "maximum": 86400,
              "description": "回源读取超时秒数。"
            },
            "proxy_connect_timeout": {
              "type": "integer",
              "maximum": 75,
              "description": "回源连接超时秒数。"
            },
            "proxy_auth": {
              "type": "object",
              "description": "回源认证配置。",
              "additionalProperties": false,
              "properties": {
                "enable": {
                  "type": "boolean",
                  "description": "是否启用认证。"
                },
                "username": {
                  "type": "string",
                  "description": "认证用户名。"
                },
                "password": {
                  "type": "string",
                  "description": "认证密码。"
                }
              }
            },
            "health_check": {
              "type": "object",
              "description": "健康检查配置。",
              "additionalProperties": false,
              "properties": {
                "enable": {
                  "type": "integer",
                  "enum": [
                    0,
                    1
                  ],
                  "description": "是否启用。"
                },
                "host": {
                  "type": "string",
                  "description": "检查域名。"
                },
                "path": {
                  "type": "string",
                  "description": "检查路径，须以 `/` 开头。"
                }
              }
            },
            "proxy_cache": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "description": "是否启用代理缓存。"
            },
            "gzip_enable": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "description": "是否启用 Gzip。"
            },
            "gzip_types": {
              "type": "string",
              "description": "Gzip MIME 类型列表。"
            },
            "websocket_enable": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "description": "是否启用 WebSocket。"
            },
            "enable": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "description": "网站启用状态。"
            },
            "state": {
              "type": "string",
              "description": "网站状态。"
            },
            "groups": {
              "type": "string",
              "description": "网站分组 ID，多个 ID 以英文逗号分隔；传空字符串可移除全部分组。"
            },
            "cname_mode": {
              "type": "string",
              "enum": [
                "package",
                "site"
              ],
              "description": "CNAME 使用方式。"
            },
            "cname_domain": {
              "type": "integer",
              "description": "管理员专用。CNAME 域名配置 ID。"
            },
            "cname_hostname": {
              "type": "string",
              "description": "管理员专用。CNAME 主机名。"
            },
            "region_id": {
              "type": "integer",
              "description": "管理员专用。区域 ID。"
            },
            "node_group_id": {
              "type": "integer",
              "description": "管理员专用。主线路组 ID。"
            },
            "backup_node_group": {
              "type": "integer",
              "nullable": true,
              "description": "管理员专用。备用线路组 ID；可传空值清除。"
            },
            "acl": {
              "type": "string",
              "nullable": true,
              "description": "访问控制列表配置。"
            },
            "black_ip": {
              "type": "string",
              "description": "IP 黑名单配置。"
            },
            "white_ip": {
              "type": "string",
              "description": "IP 白名单配置。"
            },
            "cors": {
              "type": "object",
              "description": "跨域配置。",
              "additionalProperties": false,
              "properties": {
                "enable": {
                  "type": "integer",
                  "enum": [
                    0,
                    1
                  ],
                  "description": "是否启用跨域。"
                }
              }
            },
            "hotlink": {
              "type": "object",
              "description": "防盗链配置。",
              "additionalProperties": false,
              "properties": {
                "enable": {
                  "type": "integer",
                  "enum": [
                    0,
                    1
                  ],
                  "description": "是否启用防盗链。"
                }
              }
            },
            "url_rewrite": {
              "type": "string",
              "description": "URL 重写配置。"
            },
            "acme_proxy_to_orgin": {
              "type": "integer",
              "description": "是否将 `/.well-known/acme-challenge/` 请求回源：1 开启，0 关闭。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "backend_host": {
              "type": "string",
              "description": "回源 Host。允许 `$host`、`$host:$server_port`，或合法域名/IP及可选端口。",
              "example": "$host"
            },
            "block_proxy": {
              "type": "integer",
              "description": "是否拦截被识别为代理的客户端。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "block_region": {
              "type": "string",
              "description": "按两字母小写国家/地区代码拦截，多个值以逗号分隔；空字符串表示关闭。",
              "example": "us,jp",
              "pattern": "^$|^[a-z]{2}(,[a-z]{2})*$"
            },
            "block_time": {
              "type": "integer",
              "description": "自动黑名单持续时间，单位秒；非空时必须大于 600 且不超过 604800。",
              "example": 3600,
              "minimum": 601,
              "maximum": 604800
            },
            "cc_default_rule": {
              "type": "integer",
              "description": "默认 CC 规则 ID；规则必须存在且启用，使用其他用户的非内置规则需要管理员权限。",
              "example": 10002,
              "minimum": 1
            },
            "cc_switch": {
              "type": "object",
              "description": "CC 规则自动切换配置；空对象表示关闭。",
              "additionalProperties": false,
              "properties": {
                "rule": {
                  "type": "integer",
                  "description": "切换后的 CC 规则 ID。",
                  "example": 10002,
                  "minimum": 1
                },
                "switch": {
                  "type": "integer",
                  "description": "触发切换的请求阈值。",
                  "example": 100,
                  "minimum": 0
                },
                "enable": {
                  "type": "integer",
                  "description": "是否启用自动切换。",
                  "example": 1,
                  "enum": [
                    0,
                    1
                  ]
                }
              },
              "required": [
                "rule",
                "switch"
              ],
              "example": {
                "rule": 10002,
                "switch": 100,
                "enable": 1
              }
            },
            "condition_backend": {
              "type": "array",
              "description": "按请求条件选择源站的规则列表。",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "matcher": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "description": "匹配条件。",
                      "additionalProperties": false,
                      "properties": {
                        "item": {
                          "type": "string",
                          "description": "匹配项。",
                          "example": "req_uri"
                        },
                        "op": {
                          "type": "string",
                          "description": "匹配操作符。",
                          "example": "contain",
                          "enum": [
                            ">",
                            "=",
                            "!=",
                            "contain",
                            "!contain",
                            "prefix",
                            "suffix",
                            "regex",
                            "!regex",
                            "exists",
                            "!exists",
                            "ip_range",
                            "!ip_range"
                          ]
                        },
                        "value": {
                          "type": "string",
                          "description": "匹配值；服务端会去除空行和首尾空白。",
                          "example": "/api/"
                        }
                      },
                      "required": [
                        "item",
                        "op",
                        "value"
                      ],
                      "example": {
                        "item": "req_uri",
                        "op": "contain",
                        "value": "/api/"
                      }
                    },
                    "description": "全部匹配条件。"
                  },
                  "backend": {
                    "type": "array",
                    "minItems": 1,
                    "items": {
                      "type": "object",
                      "description": "条件命中时使用的源站。",
                      "additionalProperties": false,
                      "properties": {
                        "addr": {
                          "type": "string",
                          "description": "源站 IPv4、IPv6 或域名。",
                          "example": "198.51.100.10"
                        },
                        "weight": {
                          "type": "integer",
                          "description": "源站权重。",
                          "example": 1,
                          "minimum": 1,
                          "maximum": 10
                        },
                        "state": {
                          "type": "string",
                          "description": "源站状态。",
                          "example": "up",
                          "enum": [
                            "up",
                            "down",
                            "backup"
                          ]
                        }
                      },
                      "required": [
                        "addr"
                      ],
                      "example": {
                        "addr": "198.51.100.10",
                        "weight": 1,
                        "state": "up"
                      }
                    },
                    "description": "命中后使用的源站列表。"
                  }
                },
                "required": [
                  "matcher",
                  "backend"
                ]
              },
              "example": [
                {
                  "matcher": [
                    {
                      "item": "req_uri",
                      "op": "contain",
                      "value": "/api/"
                    }
                  ],
                  "backend": [
                    {
                      "addr": "198.51.100.10",
                      "weight": 1,
                      "state": "up"
                    }
                  ]
                }
              ]
            },
            "cookie_domain": {
              "type": "string",
              "description": "Cookie Domain；允许空字符串，非空时必须是合法域名。",
              "example": "example.invalid"
            },
            "dns_api": {
              "type": "integer",
              "description": "DNS API 凭据 ID；必须属于目标用户。传 null 表示不绑定。",
              "example": 8,
              "minimum": 1,
              "nullable": true
            },
            "enable_ipv6": {
              "type": "integer",
              "description": "是否启用 IPv6 CNAME；仅按网站生成 CNAME 且系统存在 IPv6 节点时可用。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "extra_cc_rule": {
              "type": "array",
              "description": "网站自定义 CC 规则列表。规则结构随 matcher/filter 类型变化，服务端会逐项校验。",
              "items": {
                "type": "object",
                "description": "一条自定义 CC 规则，包含 matcher 与 filter 配置。",
                "additionalProperties": true
              },
              "example": [
                {
                  "matcher": {
                    "req_uri": {
                      "operator": "contain",
                      "value": "/api/"
                    }
                  },
                  "filter": {
                    "type": "req_rate",
                    "within_second": 10,
                    "max_req": 60
                  }
                }
              ]
            },
            "is_default_server": {
              "type": "integer",
              "description": "管理员专用。是否作为线路范围内的默认站点；同一节点的监听端口不能与其它默认站点冲突。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "l2_config_id": {
              "type": "integer",
              "description": "管理员专用。L2 配置 ID；必须存在、与网站区域一致并已绑定 L2 节点。",
              "example": 9,
              "minimum": 1
            },
            "l2_state": {
              "type": "string",
              "description": "管理员专用。L2 模式。",
              "example": "inherit",
              "enum": [
                "off",
                "inherit",
                "custom"
              ]
            },
            "log_req_body": {
              "type": "integer",
              "description": "管理员专用。是否记录请求体。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "log_req_body_max_size": {
              "type": "integer",
              "description": "管理员专用。记录请求体的最大 KiB；不能超过 2048，也不能超过全局 client_body_buffer_size。",
              "example": 16,
              "minimum": 0,
              "maximum": 2048
            },
            "log_req_header": {
              "type": "integer",
              "description": "管理员专用。是否记录请求头。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "log_resp_header": {
              "type": "integer",
              "description": "管理员专用。是否记录响应头。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "page_403": {
              "type": "string",
              "description": "自定义 403 错误页 HTML；空字符串使用默认页面。",
              "example": "<h1>Forbidden</h1>"
            },
            "page_404": {
              "type": "string",
              "description": "自定义 404 错误页 HTML；空字符串使用默认页面。",
              "example": "<h1>Not Found</h1>"
            },
            "page_500": {
              "type": "string",
              "description": "自定义 500 错误页 HTML；空字符串使用默认页面。",
              "example": "<h1>Server Error</h1>"
            },
            "page_502": {
              "type": "string",
              "description": "自定义 502 错误页 HTML；空字符串使用默认页面。",
              "example": "<h1>Bad Gateway</h1>"
            },
            "page_504": {
              "type": "string",
              "description": "自定义 504 错误页 HTML；空字符串使用默认页面。",
              "example": "<h1>Gateway Timeout</h1>"
            },
            "post_size_limit": {
              "type": "string",
              "description": "POST 请求体大小限制。可使用纯数字或 b/k/m/g 单位，大小写均可；空字符串表示采用默认配置。",
              "example": "10m",
              "pattern": "^$|^\\d+(?:[bBkKmMgG])?$"
            },
            "proxy_http_version": {
              "type": "string",
              "description": "回源 HTTP 协议版本。",
              "example": "1.1",
              "enum": [
                "1.0",
                "1.1"
              ]
            },
            "proxy_ssl_protocols": {
              "type": "string",
              "description": "允许的回源 TLS/SSL 协议，多个值使用空格分隔。",
              "example": "TLSv1.2 TLSv1.3",
              "pattern": "^(?:SSLv2|SSLv3|TLSv1|TLSv1\\.1|TLSv1\\.2|TLSv1\\.3)(?: (?:SSLv2|SSLv3|TLSv1|TLSv1\\.1|TLSv1\\.2|TLSv1\\.3))*$"
            },
            "range": {
              "type": "integer",
              "description": "是否启用分段回源。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "recv_real_time": {
              "type": "integer",
              "description": "是否实时向客户端返回上游响应数据。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "req_header": {
              "type": "array",
              "description": "添加或覆盖的回源请求头。",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "请求头名称，必须以英文字母开头。",
                    "example": "X-Example"
                  },
                  "value": {
                    "type": "string",
                    "description": "请求头值，去除首尾空白后不能为空。",
                    "example": "example-value"
                  }
                },
                "required": [
                  "name",
                  "value"
                ]
              },
              "example": [
                {
                  "name": "X-Origin",
                  "value": "itecdn"
                }
              ]
            },
            "resp_header": {
              "type": "array",
              "description": "添加或覆盖的客户端响应头。",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "请求头名称，必须以英文字母开头。",
                    "example": "X-Example"
                  },
                  "value": {
                    "type": "string",
                    "description": "请求头值，去除首尾空白后不能为空。",
                    "example": "example-value"
                  }
                },
                "required": [
                  "name",
                  "value"
                ]
              },
              "example": [
                {
                  "name": "X-Cache",
                  "value": "itecdn"
                }
              ]
            },
            "send_real_time": {
              "type": "integer",
              "description": "是否实时向上游发送客户端请求数据。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "spider_allow": {
              "type": "string",
              "description": "搜索引擎爬虫访问策略；空字符串表示不单独设置。",
              "example": "allow",
              "enum": [
                "",
                "allow",
                "deny"
              ]
            },
            "spider_to_sip": {
              "type": "string",
              "description": "搜索引擎专用回源 IP；空字符串表示关闭。仅按网站生成 CNAME 且 DNS 服务支持对应线路时可用。",
              "example": "198.51.100.20"
            },
            "uid": {
              "type": "integer",
              "description": "管理员专用。创建时指定网站所属用户；更新转移网站时与 new_uid 配合，作为目标套餐归属校验用户。",
              "example": 12,
              "minimum": 1
            },
            "ups_keepalive": {
              "type": "integer",
              "description": "是否启用上游 Keepalive。",
              "example": 1,
              "enum": [
                0,
                1
              ]
            },
            "ups_keepalive_conn": {
              "type": "integer",
              "description": "每个 worker 保留的上游 Keepalive 连接数。",
              "example": 16,
              "minimum": 1,
              "maximum": 100
            },
            "ups_keepalive_timeout": {
              "type": "integer",
              "description": "上游 Keepalive 空闲超时秒数。",
              "example": 60,
              "minimum": 0
            },
            "white_time": {
              "type": "integer",
              "description": "自动白名单持续时间，单位秒；非空时不超过 604800。",
              "example": 3600,
              "minimum": 0,
              "maximum": 604800
            }
          },
          "example": {
            "backend": [
              {
                "addr": "198.51.100.20",
                "weight": 1,
                "state": "up"
              }
            ],
            "proxy_timeout": 60,
            "enable": 1
          }
        }
      }
    }
  },
  "x-itecdn-source-reviewed": true,
  "extensions": [
    {
      "key": "x-python-handler",
      "value": "site.SiteAPI"
    },
    {
      "key": "x-python-route-line",
      "value": 568
    },
    {
      "key": "x-audience",
      "value": "user"
    },
    {
      "key": "x-auth",
      "value": "user"
    },
    {
      "key": "x-reviewed",
      "value": true
    },
    {
      "key": "x-itecdn-source-reviewed",
      "value": true
    }
  ],
  "method": "put",
  "path": "/v1/sites/{site_id}",
  "servers": [
    {
      "url": "https://master.example.invalid",
      "description": "不可调用的示例地址；复制示例后替换为自己的主控域名。"
    }
  ],
  "securitySchemes": {
    "AccessToken": {
      "type": "apiKey",
      "in": "header",
      "name": "access-token",
      "description": "通过登录接口获得的短期访问令牌。"
    },
    "ApiKey": {
      "type": "apiKey",
      "in": "header",
      "name": "api-key",
      "description": "API Key；必须和 api-secret 同时发送。"
    },
    "ApiSecret": {
      "type": "apiKey",
      "in": "header",
      "name": "api-secret",
      "description": "API Secret；必须和 api-key 同时发送。"
    }
  },
  "jsonRequestBodyExample": {
    "backend": [
      {
        "addr": "198.51.100.20",
        "weight": 1,
        "state": "up"
      }
    ],
    "proxy_timeout": 60,
    "enable": 1
  },
  "info": {
    "title": "itecdn v5 用户 API",
    "version": "5.x",
    "description": "itecdn v5.x Python 主控用户 API。本文档不适用于 v6 或其它实现。"
  },
  "postman": {
    "name": "更新指定网站",
    "description": {
      "content": "更新一个网站的指定配置。路径中的 `site_id` 会强制写入请求对象，客户端传入的同名字段会被覆盖；请求体必须是 JSON 对象而非数组。仅传需要修改的字段。普通用户仅能更新自己的网站，涉及归属用户、套餐、区域、线路和 CNAME 资源的字段仅管理员可用。",
      "type": "text/plain"
    },
    "url": {
      "path": [
        "v1",
        "sites",
        ":site_id"
      ],
      "host": [
        "{{baseUrl}}"
      ],
      "query": [],
      "variable": [
        {
          "disabled": false,
          "description": {
            "content": "(Required) 要更新的网站 ID；必须存在，且当前用户必须拥有该网站或具备管理员权限。",
            "type": "text/plain"
          },
          "type": "any",
          "value": "",
          "key": "site_id"
        }
      ]
    },
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      },
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "method": "PUT",
    "body": {
      "mode": "raw",
      "raw": "",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "auth": {
      "type": "apikey",
      "apikey": [
        {
          "type": "any",
          "value": "access-token",
          "key": "key"
        },
        {
          "type": "any",
          "value": "{{apiKey}}",
          "key": "value"
        },
        {
          "type": "any",
          "value": "header",
          "key": "in"
        }
      ]
    }
  }
}