Replace Hostname Associations
PUT
/zones/{zone_id}/certificate_authorities/hostname_associations https://api.cloudflare.com/client/v4
Replace Hostname Associations
Parameters
path Path Parameters
| Name | Type |
|---|---|
zone_id
required
| type TlsCertificatesAndHostnamesIdentifier = string |
Request Body
application/json
required
interface TlsCertificatesAndHostnamesHostnameAssociation {
hostnames?:TlsCertificatesAndHostnamesSchemasHostnames ;
mtls_certificate_id?: string;
}
hostnames?:
mtls_certificate_id?: string;
}
Responses
200 application/json
Replace Hostname Associations Response
type TlsCertificatesAndHostnamesHostnameAssociationsResponse = type TlsCertificatesAndHostnamesApiResponseSingle = interface TlsCertificatesAndHostnamesApiResponseCommon {
errors:TlsCertificatesAndHostnamesMessages ;
messages:TlsCertificatesAndHostnamesMessages ;
success: true;
} & {} & { result?: { hostnames?:TlsCertificatesAndHostnamesSchemasHostnames ; }; }
errors:
messages:
success: true;
} & {} & { result?: { hostnames?:
Client Errors
4XX application/json
Replace Hostname Associations Response Failure
interface TlsCertificatesAndHostnamesApiResponseCommonFailure {
errors:TlsCertificatesAndHostnamesMessages ;
messages:TlsCertificatesAndHostnamesMessages ;
result: null;
success: false;
}
errors:
messages:
result: null;
success: false;
}