Enables a specific site identified by the `x-subdomain` header.
PATCH/api/site/enable
This endpoint allows authenticated users to enable a site associated with the specified subdomain.
Request
Header Parameters
x-subdomain stringrequired
x-subdomain header represents name of subdomain to call action on
Responses
- 204
- 400
- 401
- 403
- 404
- 500
Site was successfully enabled
The 'x-subdomain' header is missing or contains invalid characters.
- application/json
- Schema
- Example (from schema)
Schema
reason stringrequired
This field will contain error information
{
"reason": "string"
}
Unauthorized: The JWT in the header is invalid or expired.
- application/json
- Schema
- Example (from schema)
Schema
reason stringrequired
This field will contain error information
{
"reason": "string"
}
Forbidden: The subdomain is owned by another user.
- application/json
- Schema
- Example (from schema)
Schema
reason stringrequired
This field will contain error information
{
"reason": "string"
}
Not Found: The login or subdomain was not found. See details for more information.
- application/json
- Schema
- Example (from schema)
Schema
reason stringrequired
This field will contain error information
{
"reason": "string"
}
Internal Server Error: An error occurred on the server.
- application/json
- Schema
- Example (from schema)
Schema
reason stringrequired
This field will contain error information
{
"reason": "string"
}
Loading...