Update an API key
curl --request PUT \
--url https://api.hyzecloud.com/api/api-keys/{keyId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"enabled": true,
"remaining": 123,
"metadata": {}
}
'import requests
url = "https://api.hyzecloud.com/api/api-keys/{keyId}"
payload = {
"name": "<string>",
"enabled": True,
"remaining": 123,
"metadata": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', enabled: true, remaining: 123, metadata: {}})
};
fetch('https://api.hyzecloud.com/api/api-keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hyzecloud.com/api/api-keys/{keyId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"enabled\": true,\n \"remaining\": 123,\n \"metadata\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}API Keys
Update an API key
PUT
/
api
/
api-keys
/
{keyId}
Update an API key
curl --request PUT \
--url https://api.hyzecloud.com/api/api-keys/{keyId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"enabled": true,
"remaining": 123,
"metadata": {}
}
'import requests
url = "https://api.hyzecloud.com/api/api-keys/{keyId}"
payload = {
"name": "<string>",
"enabled": True,
"remaining": 123,
"metadata": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', enabled: true, remaining: 123, metadata: {}})
};
fetch('https://api.hyzecloud.com/api/api-keys/{keyId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hyzecloud.com/api/api-keys/{keyId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"enabled\": true,\n \"remaining\": 123,\n \"metadata\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Autorizações
bearerAuthcookieAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Parâmetros de caminho
Minimum string length:
1Corpo
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Resposta
default
Response
Última modificação em 21 de julho de 2026
⌘I

