Update a Domain's project id
PATCH/domains/ {domainId}/ project-id/ 
v2
PATCH
domain-update-domain-project-id
Request
Responses
Usage examples
- cURL
 - JavaScript SDK
 - PHP SDK
 
$ curl \
    --fail \
    --location \
    -X PATCH \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    https://api.mittwald.de/v2/domains/string/project-id
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.domain.updateDomainProjectId({
  "domainId": "string"
});
assertStatus(response, 204);
  
use \Mittwald\ApiClient\Generated\V2\Clients\Domain\UpdateDomainProjectId\UpdateDomainProjectIdRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\Domain\UpdateDomainProjectId\UpdateDomainProjectIdRequestBody;
  
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// UpdateDomainProjectIdRequestBody to learn how to construct a valid instance
$body = new UpdateDomainProjectIdRequestBody(/* TODO: ... */);
$request = (new UpdateDomainProjectIdRequest(
  domainId: "string",
  body: $body
));
$response = $client->domain()->updateDomainProjectId($request);
var_dump($response->getBody();