LogoFreestyle
API Reference/Domains

Insert Domain Mapping

This will unmap any other deployment to this domain

POST/domains/v1/mappings/{domain}

Request Body

application/jsonRequired
deploymentIdRequiredstring

Path Parameters

domainRequiredstring
curl -X POST "https://api.freestyle.sh/domains/v1/mappings/<string>" \
  -H "Content-Type: application/json" \
  -d '{
    "deploymentId": "string"
  }'

Successfully mapped domain to deployment