/apps/{appId}/domains (POST)
POST
/apps/{appId}/domains
const url = 'https://example.com/api/v1/apps/example/domains';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"fqdn":"example","https":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/apps/example/domains \ --header 'Content-Type: application/json' \ --data '{ "fqdn": "example", "https": true }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” appId
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
fqdn
required
string
https
boolean
Example generated
{ "fqdn": "example", "https": true}Responses
Section titled “ Responses ”Default Response
Media type application/json
Default Response
Media type application/json
object
type
required
string
title
required
string
status
required
integer
code
required
string
detail
string
instance
string
errors
Array<object>
object
path
required
string
message
required
string
Example generated
{ "type": "example", "title": "example", "status": 1, "code": "example", "detail": "example", "instance": "example", "errors": [ { "path": "example", "message": "example" } ]}Default Response
Media type application/json
object
type
required
string
title
required
string
status
required
integer
code
required
string
detail
string
instance
string
errors
Array<object>
object
path
required
string
message
required
string
Example generated
{ "type": "example", "title": "example", "status": 1, "code": "example", "detail": "example", "instance": "example", "errors": [ { "path": "example", "message": "example" } ]}