Create view

Create a new view in the given project.

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired

Headers

LD-API-VersionenumRequired
Version of the endpoint.
Allowed values:

Request

View object to create
keystringRequired

Unique key for the view within the account/project

namestringRequired

Human-readable name for the view

descriptionstringOptionalDefaults to
Optional detailed description of the view
generateSdkKeysbooleanOptionalDefaults to false
Whether to generate SDK keys for this view
maintainerIdstringOptional

Member ID of the maintainer for this view. Only one of maintainerId or maintainerTeamKey can be specified.

maintainerTeamKeystringOptional

Key of the maintainer team for this view. Only one of maintainerId or maintainerTeamKey can be specified.

tagslist of stringsOptional
Tags associated with this view

Response

Successful response
idstringformat: "string"
Unique ID of this view
accountIdstring
ID of the account that owns this view
projectIdstring
ID of the project this view belongs to
projectKeystring
Key of the project this view belongs to
keystring

Unique key for the view within the account/project

namestring

Human-readable name for the view

descriptionstring
Optional detailed description of the view
generateSdkKeysboolean
Whether to generate SDK keys for this view. Defaults to false.
versioninteger
Version number for tracking changes
tagslist of strings
Tags associated with this view
createdAtlong
updatedAtlong
archivedbooleanDefaults to false
Whether this view is archived
deletedbooleanDefaults to false
Whether this view is deleted
_accessobject
archivedAtlong
deletedAtlong
maintainerobject
flagsSummaryobject
segmentsSummaryobject
metricsSummaryobject
aiConfigsSummaryobject
resourceSummaryobject
flagsExpandedobject

Details on linked flags for a view - requires passing the ‘allFlags’ expand field

segmentsExpandedobject

Details on linked segments for a view - requires passing the ‘allSegments’ expand field

metricsExpandedobject
aiConfigsExpandedobject
resourcesExpandedobject

Details on linked resources for a view - requires passing the ‘allResources’ expand field

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error