workspace

Update team workspace metadata

patch/workspaces/{namespace}/{slug}

Request

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

Path parameters

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

Request body

titlestring
descriptionstring
versionstring
namespacestring
isPrivateboolean
tagsstring[]
slugstring
loginPortalstring
accessGroupsSlug[]

Example request

{
  "version": "1.2.0",
  "namespace": "acme",
  "slug": "acme-api",
  "loginPortal": "acme-api",
  "accessGroups": [
    "acme-api"
  ]
}

Response

Default Response

uidstring required
createdAtinteger required
updatedAtinteger required
namespacestring required
titlestring required
slugstring required
descriptionstring required
isPrivateboolean required
pinnedboolean required
tagsunknown required
accessGroupsunknown required
loginPortalUidstring
verifiedContentboolean
versionstring required

Example response

{
  "uid": "UakgbKJ5m9gl0JDMbcJqL",
  "createdAt": 1735689600,
  "updatedAt": 1735689600,
  "namespace": "acme",
  "title": "Acme API",
  "slug": "acme-api",
  "description": "API for managing Acme products and orders.",
  "tags": [
    "products",
    "orders"
  ],
  "accessGroups": [
    "UakgbKJ5m9gl0JDMbcJqL"
  ],
  "loginPortalUid": "LakgbKJ5m9gl0JDMbcJqL",
  "source": {
    "repositoryUid": "UakgbKJ5m9gl0JDMbcJqL",
    "lastPublishedAt": 1735689600
  },
  "git": {
    "lastPublishedAt": 1735689600
  },
  "version": "1.2.0",
  "versions": [
    {
      "version": "1.2.0",
      "createdAt": 1735689600,
      "updatedAt": 1735689600
    }
  ]
}

Changes

    • breaking

      added subschema #2 subschema #3 to the response property oneOf list for the response status

    • info

      the response's property default value unixTimestamp() was removed for the status

    • info

      the response's property default value randomManagedDocSlug() was removed for the status

    • info

      the response's property default value unixTimestamp() was removed for the status

    • info

      removed subschema #2 subschema #3 from the response property oneOf list for the response status

    • breaking

      the response property's minLength was decreased from 3 to 2 for the response status

    • info

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

    • info

      the request property's minLength was decreased from 3 to 2