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
Format: "uuid"

Path Parameters

domainRequiredstring

Response Body

401

You do not have permission to do this

messageRequiredstring

422

Failed to provision certificate

messageRequiredstring

500

Failed to insert ownership

messageRequiredstring

502

Failed to check permissions

messageRequiredstring
curl -X POST "https://api.freestyle.sh/domains/v1/mappings/<string>" \
  -H "Content-Type: application/json" \
  -d '{
    "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2"
  }'

Successfully mapped domain to deployment