Patch Headers

Patch Headers
Modify a subset of headers while retaining all non-specified headers.

This method allows you to modify a subset of headers while retaining all non-specified headers. Returns all headers and their values, except for the values of secret headers.

Request
URI
PATCH
https://{api_host}/api/v1/control/mcp-servers/{mcp_server_id}/headers
COPY
Path Parameters
string
mcp_server_id
Required

mcp_server_id


Request Body
[
    {
        "name": "string",
        "value": "string",
        "is_secret": false
    }
]
Optional
Authentication
This operation uses the following authentication methods.
Responses
200

Successful Response

Returns McpServerHeaderListResponse of type(s) application/json
{
    "object": "string",
    "data": [
        {}
    ],
    "num_objects": 0
}
string
object
Optional
Constraints: default: list

Object type, which is always list.

array of object
data
Required

data

integer
num_objects
Required

Total number of objects that match the request.


404

Invalid MCP server ID.

Operation doesn't return any data structure

422

Validation Error

Returns HTTPValidationError of type(s) application/json
{
    "detail": [
        {
            "loc": [
                {}
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}
array of object
detail
Optional

detail


Code Samples
COPY
                    curl -X PATCH -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]'