Server Version
Servers in Metorial are version controlled. Metorial automatically updates servers to the latest version when available. These endpoints help you keep track of server versions in the Metorial catalog.
Server Version object
Attributes
object
Stringid
StringThe unique identifier of the server version
oauth
ObjectOAuth configuration for the server version
identifier
StringA unique string identifier for the server version
server_id
StringThe ID of the associated server
server_variant_id
StringThe ID of the associated server variant
get_launch_params
StringParameters used to launch this server version
source
ObjectThe source configuration for this server version
schema
ObjectThe actual schema definition
server
Objectcreated_at
DateTimestamp when the server version was created
{"object": "server.server_version","oauth": {"status": "disabled"},"source": {"type": "docker","docker": {}},"schema": {},"server": {"object": "server#preview","type": "public"}}
List server versions
Retrieve all versions for a given server
URL Parameters
server_id
StringThe unique identifier for the server
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalvariant_id
StringOptionalcurl -X GET "https://api.metorial.com/servers/ser_Rm4Mnheq2bfEPhBhP7SY/versions" \-H "Authorization: Bearer metorial_sk_..."
Get server version
Retrieve details for a specific server version
URL Parameters
server_id
StringThe unique identifier for the server
server_version_id
StringThe unique identifier for the server_version
curl -X GET "https://api.metorial.com/servers/ser_Rm4Mnheq2bfEPhBhP7SY/versions/ser_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."