bBox_FM_API_URL( connectionType; hostname; {; database; port} )

Calculates the correct base URL to use for the given API type.

Parameters:
   connectionType: a connection type name for the API being used ("ADMIN", "CADMIN", "DATA", "CDATA", "ODATA", or "CODATA")
   hostname: the hostname or IP address of the server
   database: except for the ADMIN or CADMIN connection types, the name of the database is required
   port: optional, use to specify a port other than default 443

Output
   API endpoint, with trailing slash

Error:
   none (blank result)

––––––––––

First appeared in: 1.04

Examples in demo file: 0

Compatibility:   Client, Server, macOS, Ubuntu, Server, WebDirect, WPE

––––––––––

Connection types prefixed with "C" are used to denote FileMaker Cloud based servers, since these use different API endpoints than the on-premise versions.

––––––––––

bBox Functions

bBox Wiki