Sites

Get a site's template status

Changed on

Which storefront template a site's repository runs, whether it is behind the current one, and where the latest template can be fetched (a pinned GitHub commit and its tarball URL). Read it before porting a site onto the current template.

get/sites/{id}/template

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Response

The site's template status

object required
object, 'site_template' required
generation, string nullable required

The framework generation the site runs (vinext, tanstack-start); null for a site created before generations were recorded.

template_commit, string nullable required

The template commit the site was forked from or last upgraded to; null when it cannot be told.

latest_generation, string required

The generation new sites are forked from.

latest_commit, string nullable required

The template commit new sites are forked from.

archive_url, string nullable required

A tarball of latest_commit, fetchable with curl.

upgrade_available, boolean required

The site is on an older generation or template commit, or its commit cannot be told.

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    1 more change in this revision