API parameter reference · Cloudflare Rules docs | Latest TMZ Celebrity News & Gossip | Watch TMZ Live Skip to content
Cloudflare Docs

API parameter reference

To set an HTTP request header via API, set the following parameters in the action_parameters field:

  • operation: set

  • Include one of the following parameters to define a static or dynamic value:

    • value: Specifies a static value for the HTTP request header.
    • expression: Specifies the expression that defines a value for the HTTP request header.

To remove an HTTP request header via API, set the following parameter in the action_parameters field:

  • operation: remove

For step-by-step instructions, refer to Create a request header transform rule via API.

Static header value parameters

The full syntax of the action_parameters field to define a static HTTP request header value is the following:

"action_parameters": {
"headers": {
"<HEADER_NAME>": {
"operation": "set",
"value": "<URI_PATH_VALUE>"
}
}
}

Dynamic header value parameters

The full syntax of the action_parameters field to define a dynamic HTTP request header value using an expression is the following:

"action_parameters": {
"headers": {
"<HEADER_NAME>": {
"operation": "set",
"expression": "<EXPRESSION>"
}
}
}

Header removal parameters

The full syntax of the action_parameters field to remove an HTTP request header is the following:

"action_parameters": {
"headers": {
"<HEADER_NAME>": {
"operation": "remove"
}
}
}

Different header modifications in the same rule

The same rule can modify different HTTP request headers using different operations (set or remove a header). For example, a single rule can set the value of a header and remove a different header. The syntax of such a rule could be the following:

"action_parameters": {
"headers": {
"<HEADER_NAME_1>": {
"operation": "set",
"value": "<HEADER_VALUE_1>"
},
"<HEADER_NAME_2>": {
"operation": "remove"
}
}
}

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.