ReferenceFlightcontrol APICustom DomainsAdd Domain(s) To Group

Add Domains To A Domain Group

Adds one or more domains to an existing domain certificate group.

API Description

Full Endpoint URL: https://api.flightcontrol.dev/v1/domain-certificate-groups/{domainGroupId}/domains

MethodPath
POST/v1/domain-certificate-groups/{domainGroupId}/domains
Headers
AuthorizationBearer [API key]

Path Parameters

ParameterTypeDescription
domainGroupIdstringThe unique CUID of the domain group.

Request Body

ParameterRequiredTypeDescription
domainsYesstring[]List of domains to be added to the group.

Request Example

{
  "domains": ["www.example.com"]
}

Response Example

{
  "domains": [
    {
      "id": "cm7lo7phc000712ptf9oc7q0k",
      "fcAttachmentId": "cm7lo7pi9000912ptce0a6be1",
      "name": "www.example.com",
      "status": "PENDING",
      "type": "SUBDOMAIN",
      "dnsRecords": []
    }
  ]
}