workspace

Create or update a workspace JSON version

post/workspaces/{namespace}/{slug}/version

Request

  • Base URL
    https://api.scalar.com/core
  • URL
    https://api.scalar.com/core/workspaces/{namespace}/{slug}/version
  • Auth
    HTTP bearer

Path parameters

namespacestring required
Example:acme
slugstring required
Example:acme-api

Request body

versionstring required
workspaceJsonstring required
isCurrentboolean required

Example request

{
  "version": "1.2.0"
}

Response

Default Response

versionstring required
createdAtinteger required
updatedAtinteger required

Example response

{
  "version": "1.2.0",
  "createdAt": 1735689600,
  "updatedAt": 1735689600
}

Changes

    • info

      for the path request parameter namespace, the minLength was decreased from 3 to 2

    • info

      api operation id postworkspacesNamespaceSlugVersion removed and replaced with postWorkspacesNamespaceSlugVersion