LogoFreestyle
API Reference/Domains

Remove Domain Mapping

DELETE
/domains/v1/mappings/{domain}

Path Parameters

domainRequiredstring

Response Body

200

Successfully deleted domain mapping

responseRequiredobject

400

Error: DomainAlreadyExists

errorRequiredstring

Error code in SCREAMING_SNAKE_CASE

messageRequiredstring

Human-readable error message

401

Error: FailedPermissionsCheck

errorRequiredstring

Error code in SCREAMING_SNAKE_CASE

messageRequiredstring

Human-readable error message

500

Possible errors: FailedRemoveDomainMapping, FailedToInsertOwnership

errorRequiredstring

Error code in SCREAMING_SNAKE_CASE

messageRequiredstring

Human-readable error message

502

Error: FailedToCheckDomainMappingPermissions

errorRequiredstring

Error code in SCREAMING_SNAKE_CASE

messageRequiredstring

Human-readable error message

curl -X DELETE "https://api.freestyle.sh/domains/v1/mappings/<string>"

Successfully deleted domain mapping

{}

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.