Databases

Toggle public exposure of a database (a fresh public port is assigned when enabling)

post/databases/{databaseId}/public-access

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/databases/{databaseId}/public-access
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

databaseIdstring uuid required
Example:3f2b8a4e-5c1d-4e8f-9a7b-2c6d1e0f4a5b

Request body

isPublicboolean required

Response

Updated

isPublicboolean required
publicHoststring nullable required
publicPortinteger nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.