diff --git a/docs/references/ic-interface-spec/changelog.md b/docs/references/ic-interface-spec/changelog.md index 118a5c8..4ac3dfc 100644 --- a/docs/references/ic-interface-spec/changelog.md +++ b/docs/references/ic-interface-spec/changelog.md @@ -8,6 +8,9 @@ sidebar: ## Changelog {#changelog} +### 0.63.0 (TBD) {$0_63_0} +* Support for the HTTP method `PATCH` in canister `http_request` in non-replicated mode. + ### 0.62.0 (2025-05-26) {$0_62_0} * Inter-canister response callback messages might still be executed after the condition for `canister_on_low_wasm_memory` is triggered and before the function `canister_on_low_wasm_memory` is executed. diff --git a/docs/references/ic-interface-spec/management-canister.md b/docs/references/ic-interface-spec/management-canister.md index db9f000..d5741a9 100644 --- a/docs/references/ic-interface-spec/management-canister.md +++ b/docs/references/ic-interface-spec/management-canister.md @@ -640,7 +640,7 @@ In the replicated mode, the responses for all identical requests must match, too For this reason, the calling canister can supply a transformation function, which the IC uses to let the canister sanitize the responses from such unique values. The transformation function is executed separately on the corresponding response received for a request (both in replicated and non-replicated modes). Only the transformed response will be available to the calling canister. -Currently, the `GET`, `HEAD`, and `POST` methods are supported for HTTP requests. Additionally, the `PUT` and `DELETE` methods are supported in non-replicated mode only. `PUT` and `DELETE` are restricted to non-replicated mode to avoid confusing race conditions that may occur with replicated execution. +Currently, the `GET`, `HEAD`, and `POST` methods are supported for HTTP requests. Additionally, the `PUT`, `DELETE`, and `PATCH` methods are supported in non-replicated mode only. `PUT`, `DELETE`, and `PATCH` are restricted to non-replicated mode to avoid confusing race conditions that may occur with replicated execution. It is important to note the following for the usage of the `POST` method: @@ -664,7 +664,7 @@ The following parameters should be supplied for the call: - `max_response_bytes` - optional, specifies the maximal size of the response in bytes. If provided, the value must not exceed `2MB` (`2,000,000B`). The call will be charged based on this parameter. If not provided, the maximum of `2MB` will be used. -- `method` - currently, `GET`, `HEAD`, and `POST` are supported. Additionally, `PUT` and `DELETE` are supported in non-replicated mode only. +- `method` - currently, `GET`, `HEAD`, and `POST` are supported. Additionally, `PUT`, `DELETE`, and `PATCH` are supported in non-replicated mode only. - `headers` - list of HTTP request headers and their corresponding values diff --git a/public/references/ic.did b/public/references/ic.did index 734ee61..519d1c0 100644 --- a/public/references/ic.did +++ b/public/references/ic.did @@ -344,7 +344,7 @@ type deposit_cycles_args = record { type http_request_args = record { url : text; max_response_bytes : opt nat64; - method : variant { get; head; post; put; delete }; + method : variant { get; head; post; put; delete; patch }; headers : vec http_header; body : opt blob; transform : opt record {