Skip to Content
kosemdocs
ReferenceAPISites

Get site version

Gets a version of a site.

GET
/v1/projects/{project}/sites/{site}/versions/{version}

Gets a version of a site.

Authorization

bearer
headerAuthorizationBearer <token>

An access token, or an API key.

Path Parameters

project*string

The project's ID.

Match^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$
site*string

The site's ID.

Match^sit_[0-7][0-9a-hjkmnp-tv-z]{25}$
version*string

The version's number.

Match^[1-9][0-9]{0,8}$

Response Body

OK

application/json
  1. response
agent*string

The agent that published it, if one did, by its resource name.

createTime*string

When it was published.

Formatdate-time
creator*string

Who published it, as a member such as agent:{agent_id}.

fileCount*integer

How many files the version has.

Formatint32
name*string

Resource name, projects/{project_id}/sites/{site_id}/versions/{version}, numbered from 1.

sizeBytes*integer

The size of its files, in bytes.

Formatint64
Example Request
curl -X GET 'https://api.kosem.ai/v1/projects/string/sites/string/versions/string'
Example Response
{
  "agent": "string",
  "createTime": "2019-08-24T14:15:22Z",
  "creator": "string",
  "fileCount": 0,
  "name": "string",
  "sizeBytes": 0
}