Create view

Create a new view in the given project.

Path parameters

projectKeystringRequired

Headers

AuthorizationstringRequired
LD-API-Version"beta"Required
Version of the endpoint.

Request

This endpoint expects an object.
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
idstring
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
archivedboolean
Whether this view is archived
deletedboolean
Whether this view is deleted
_accessobject or null
archivedAtlong or null
deletedAtlong or null
maintainerobject or null
flagsSummaryobject or null
segmentsSummaryobject or null
resourceSummaryobject or null
flagsExpandedobject or null

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

segmentsExpandedobject or null

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

resourcesExpandedobject or null

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

Errors