curl_put
Send HTTP PUT requests using curl to update or replace resources on a server. Supports JSON data, custom headers, redirects, and timeouts for seamless API interactions. Ideal for modifying remote data.
Instructions
Make an HTTP PUT request using curl
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content_type | No | Content-Type header (will be added automatically for JSON data) | |
data | No | Data to send in the PUT request body | |
follow_redirects | No | Whether to follow redirects | |
headers | No | Optional HTTP headers in the format 'Header: Value' | |
json_data | No | JSON object to send as PUT data | |
timeout | No | Request timeout in seconds | |
url | Yes | The URL to make the PUT request to |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"content_type": {
"description": "Content-Type header (will be added automatically for JSON data)",
"type": "string"
},
"data": {
"description": "Data to send in the PUT request body",
"type": "string"
},
"follow_redirects": {
"default": false,
"description": "Whether to follow redirects",
"type": "boolean"
},
"headers": {
"description": "Optional HTTP headers in the format 'Header: Value'",
"items": {
"type": "string"
},
"type": "array"
},
"json_data": {
"additionalProperties": {},
"description": "JSON object to send as PUT data",
"type": "object"
},
"timeout": {
"description": "Request timeout in seconds",
"type": "number"
},
"url": {
"description": "The URL to make the PUT request to",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}