v47

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2024-10-01163166522.3 KB
Views

Create or replace view

Create or replace view. If there is an existing view with the same name as the one specified in the request, will replace the existing view with the provided fields

put/v1/view

Request body

object_type'organization' | 'project' | 'experiment' | 'dataset' | 'prompt' | 'prompt_session' | 'group' | 'role' | 'org_member' | 'project_log' | 'org_project' required

The object type that the ACL applies to

object_idstring uuid required

The id of the object the view applies to

view_typestring required

Type of table that the view corresponds to.

namestring required

Name of the view

user_idstring uuid nullable

Identifies the user who created the view

deleted_atstring date-time nullable

Date of role deletion, or null if the role is still active

Response

Returns the new view object

idstring uuid required

Unique identifier for the view

object_type'organization' | 'project' | 'experiment' | 'dataset' | 'prompt' | 'prompt_session' | 'group' | 'role' | 'org_member' | 'project_log' | 'org_project' required

The object type that the ACL applies to

object_idstring uuid required

The id of the object the view applies to

view_typestring required

Type of table that the view corresponds to.

namestring required

Name of the view

createdstring date-time nullable

Date of view creation

user_idstring uuid nullable

Identifies the user who created the view

deleted_atstring date-time nullable

Date of role deletion, or null if the role is still active