Clienvy API documentation

Create a showcase

POST
https://api.clienvy.io/employee/v1
/spaces/{space}/showcases

Adds a showcase to a space, at the end of the top level or under a page: a set of files shown as a small site, such as a report or dashboard made elsewhere. The files keep their folder layout, so the start file finds the others by their relative paths. It is shown as it is, scripts included, in a sandboxed frame, to the team and to customers who may see it. Upload the files first as an HTML bundle with its start file (see Upload an HTML bundle) and give its id as html_bundle_id. The response is the new node, with the updated space tree under space.

Create a showcase › path Parameters

space
​string · uuid · required

The space UUID

Create a showcase › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Create a showcase › Request Body

title
​string · maxLength: 64 · required
html_bundle_id
​string · uuid · required

An HTML bundle of yours that is not shown yet, with the files.

parent_id
​string | null · uuid

Create a showcase › Responses

SpaceNodeResource

id
​string · uuid
space_id
​string
parent_id
​string | null
type
​SpaceNodeType · enum
Enum values:
page
board
showcase
title
​string
position
​integer
​SpacePageResource | null

The page content, only on page nodes.

​SpaceBoardResource | null

The board with its views and collection, only on board nodes.

​SpaceShowcaseResource | null

The showcase with its files, only on showcase nodes.

created_at
​string | null · date-time
updated_at
​string | null · date-time

Update a showcase

POST
https://api.clienvy.io/employee/v1
/spaces/{space}/nodes/{spaceNode}/showcase

Changes the name or the files of a showcase. New files are a new HTML bundle, uploaded the same way as on creation and given as html_bundle_id: the showcase shows it from then on, and what it showed before is kept for 90 days (at most 20 versions). The response is the node, with the updated space tree under space.

Update a showcase › path Parameters

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The UUID of the showcase's node.

Update a showcase › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update a showcase › Request Body

title
​string · maxLength: 64
html_bundle_id
​string · uuid

An HTML bundle of yours that is not shown yet, with the new files.

Update a showcase › Responses

SpaceNodeResource

id
​string · uuid
space_id
​string
parent_id
​string | null
type
​SpaceNodeType · enum
Enum values:
page
board
showcase
title
​string
position
​integer
​SpacePageResource | null

The page content, only on page nodes.

​SpaceBoardResource | null

The board with its views and collection, only on board nodes.

​SpaceShowcaseResource | null

The showcase with its files, only on showcase nodes.

created_at
​string | null · date-time
updated_at
​string | null · date-time

Share a showcase

PUT
https://api.clienvy.io/employee/v1
/spaces/{space}/nodes/{spaceNode}/showcase/sharing

Turns the public link of a showcase on or off. With the link, anyone can view the showcase as a page of its own, without logging in; it is under showcase.share_url of the node. Turning it off and on again keeps the same link: only renewing it gives a new one. While it is off, the link opens nothing, and a page that is open already keeps working for at most half a day. The response is the node, with the updated space tree under space.

Share a showcase › path Parameters

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The UUID of the showcase's node.

Share a showcase › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Share a showcase › Request Body

shared
​boolean · required

Whether the showcase opens for anyone with its public link.

Share a showcase › Responses

SpaceNodeResource

id
​string · uuid
space_id
​string
parent_id
​string | null
type
​SpaceNodeType · enum
Enum values:
page
board
showcase
title
​string
position
​integer
​SpacePageResource | null

The page content, only on page nodes.

​SpaceBoardResource | null

The board with its views and collection, only on board nodes.

​SpaceShowcaseResource | null

The showcase with its files, only on showcase nodes.

created_at
​string | null · date-time
updated_at
​string | null · date-time

POST
https://api.clienvy.io/employee/v1
/spaces/{space}/nodes/{spaceNode}/showcase/sharing/renew

Gives a shared showcase a new public link: the old one opens nothing any more, while a page that is open already keeps working for at most half a day. Only for a showcase that is shared. The response is the node, with the updated space tree under space.

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The UUID of the showcase's node.

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

SpaceNodeResource

id
​string · uuid
space_id
​string
parent_id
​string | null
type
​SpaceNodeType · enum
Enum values:
page
board
showcase
title
​string
position
​integer
​SpacePageResource | null

The page content, only on page nodes.

​SpaceBoardResource | null

The board with its views and collection, only on board nodes.

​SpaceShowcaseResource | null

The showcase with its files, only on showcase nodes.

created_at
​string | null · date-time
updated_at
​string | null · date-time

List the versions of a showcase

GET
https://api.clienvy.io/employee/v1
/spaces/{space}/nodes/{spaceNode}/showcase/versions

The HTML bundles the showcase showed, one per upload of new files, newest first: a version put back counts from when it was put back. The one it shows is under showcase of the node. Earlier versions are kept for 90 days, at most 20.

List the versions of a showcase › path Parameters

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The UUID of the showcase's node.

List the versions of a showcase › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List the versions of a showcase › Responses

Array of HtmlBundleResource

id
​string · uuid
url
​string

The start file, meant for a sandboxed iframe. The other files are next to it at their relative paths. The link is signed and opens the page for at least 12 hours.

entry_path
​string

The path of the start file within the set.

Every file of the set, sorted by path.

​EmployeeReferenceResource | null

Who uploaded it.

​OAuthConnectionReferenceResource | null

The AI connection it was uploaded through, if any.

created_at
​string · date-time
updated_at
​string · date-time

The same as created_at: when it was uploaded, or put back last. The versions go by it.


Restore a version of a showcase

POST
https://api.clienvy.io/employee/v1
/spaces/{space}/nodes/{spaceNode}/showcase/versions/{version}/restore

Shows an earlier version again, as the newest, so the one it showed before can be put back in turn. Answers with the version.

Restore a version of a showcase › path Parameters

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The UUID of the showcase's node.

version
​string · uuid · required

The version UUID, as listed by the versions endpoint.

Restore a version of a showcase › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Restore a version of a showcase › Responses

HtmlBundleResource

id
​string · uuid
url
​string

The start file, meant for a sandboxed iframe. The other files are next to it at their relative paths. The link is signed and opens the page for at least 12 hours.

entry_path
​string

The path of the start file within the set.

Every file of the set, sorted by path.

​EmployeeReferenceResource | null

Who uploaded it.

​OAuthConnectionReferenceResource | null

The AI connection it was uploaded through, if any.

created_at
​string · date-time
updated_at
​string · date-time

The same as created_at: when it was uploaded, or put back last. The versions go by it.


Download a version of a showcase

GET
https://api.clienvy.io/employee/v1
/spaces/{space}/nodes/{spaceNode}/showcase/versions/{version}/download

The files of a version as one zip, in their folder layout, named after the showcase and when the version was uploaded. Upload it again to open the same files on another start file.

Download a version of a showcase › path Parameters

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The UUID of the showcase's node.

version
​string · uuid · required

The version UUID, as listed by the versions endpoint.

Download a version of a showcase › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Download a version of a showcase › Responses

string · binary

Copy a version of a showcase

POST
https://api.clienvy.io/employee/v1
/spaces/{space}/nodes/{spaceNode}/showcase/versions/{version}/copy

Copies the files of a version into a new HTML bundle of your own that is not shown yet, with the same start file, to change a few files in it without sending them all again (see Send files to an HTML bundle and Remove files from an HTML bundle). Then give it as html_bundle_id to make it the new version. A copy that is never shown is removed after a day. Answers with the new bundle.

Copy a version of a showcase › path Parameters

space
​string · uuid · required

The space UUID

spaceNode
​string · uuid · required

The UUID of the showcase's node.

version
​string · uuid · required

The version UUID, as listed by the versions endpoint, or showcase.html_bundle.id for the current one.

Copy a version of a showcase › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Copy a version of a showcase › Responses

HtmlBundleReferenceResource

id
​string · uuid
created_at
​string · date-time