Update site
Changes a site's display name, the version people see, or its visibility, which also takes sites.sites.setVisibility.
Changes a site's display name, the version people see, or its visibility, which also takes sites.sites.setVisibility.
bearerAuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$site*stringThe site's ID.
^sit_[0-7][0-9a-hjkmnp-tv-z]{25}$application/json- body
displayName?stringWhat people call the site. Empty shows its address instead.
length <= 100etag?stringThe etag of the site as it was read. With one, the update fails with aborted if the site changed since.
liveVersion?stringThe version of the site to serve, by its resource name. On a public site, this takes sites.sites.setVisibility too.
^projects/prj_[0-7][0-9a-hjkmnp-tv-z]{25}/sites/sit_[0-7][0-9a-hjkmnp-tv-z]{25}/versions/[1-9][0-9]{0,8}$visibility?stringWho may open the site. Making it public takes sites.sites.setVisibility too.
"PRIVATE""PUBLIC"OK
application/json- response
agent*stringThe agent that made the site, if one did, by its resource name.
createTime*stringWhen the site was made.
date-timecreator*stringWho made the site, as a member such as agent:{agent_id}.
displayName*stringWhat people call the site, at most 100 characters.
etag*stringChanges with each update. Send it back when updating the site; the update fails with aborted if the site changed in between.
liveVersion*stringThe version the site serves, by its resource name: publishing sets it, and an update makes an older version live again. Empty while none is live.
name*stringResource name, projects/{project_id}/sites/{site_id}.
restricted*booleanWhether the roles on the project reach the site only for those who also hold sites.sites.accessPrivate there, its owners and Sites Admins, as while the agent that made it is private: then people who may see that agent open it, with those its own IAM policy names. It follows the agent's visibility, and only kosem changes it.
updateTime*stringWhen the site, or the version it serves, last changed.
date-timeuri*stringThe site's address, https://{host}.{domain}/ under the sites' domain, whose host is the site's alone.
visibility*stringWho may open the site: PRIVATE, people who may see it, after signing in to kosem; PUBLIC, anyone with its link. Private when the site is made.
"PRIVATE""PUBLIC"curl -X PATCH 'https://api.kosem.ai/v1/projects/string/sites/string' \
-H 'Content-Type: application/json' \
-d '{}'{
"agent": "string",
"createTime": "2019-08-24T14:15:22Z",
"creator": "string",
"displayName": "string",
"etag": "string",
"liveVersion": "string",
"name": "string",
"restricted": true,
"updateTime": "2019-08-24T14:15:22Z",
"uri": "string",
"visibility": "PRIVATE"
}