Update a key for a customer
PUT/customers/ {customerId}/ ai-hosting-keys/ {keyId}/
v2
PUT
ai-hosting-customer-update-key
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X PUT \
-d '{"createWebuiContainer":true,"name":"string","projectId":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/customers/string/ai-hosting-keys/string
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.aiHosting.aiHostingCustomerUpdateKey({
"customerId": "string",
"keyId": "string",
"data": {
"createWebuiContainer": true,
"name": "string",
"projectId": "string"
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\AIHosting\AiHostingCustomerUpdateKey\AiHostingCustomerUpdateKeyRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\AIHosting\AiHostingCustomerUpdateKey\AiHostingCustomerUpdateKeyRequestBody;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// AiHostingCustomerUpdateKeyRequestBody to learn how to construct a valid instance
$body = new AiHostingCustomerUpdateKeyRequestBody(/* TODO: ... */);
$request = (new AiHostingCustomerUpdateKeyRequest(
customerId: "string",
keyId: "string",
body: $body
));
$response = $client->aiHosting()->aiHostingCustomerUpdateKey($request);
var_dump($response->getBody();