Memos unofficial
POST/api/v1/users/{user}/views

Create a memo view

Creates a saved memo view for a user. Provide the required title and CEL filter expression; you can optionally provide a display icon. Set validateOnly to validate the request without creating the view.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

2 parameters · 4 body fields
userstringrequired
The user ID for whom to create the memo view.
validateOnlybooleanoptional
Set to true to validate the request without creating the memo view.

Saved memo view details. title and filter are required.

namestringoptional
The resource name of the memo view. Format: users/{user}/views/{view}
titlestringrequired
The title of the memo view.
filterstringrequired
The CEL filter expression for the memo view, using the same grammar as the ListMemos `filter` argument. Reuse it by passing this value to ListMemos.
iconobjectoptional
Optional. Display icon. Omit when updating with the "icon" mask to reset to the default view icon.

2 status codes
200Returns the created memo view, including its title, CEL filter, resource name, and any configured icon.
namestringoptional
The resource name of the memo view. Format: users/{user}/views/{view}
titlestringrequired
The title of the memo view.
filterstringrequired
The CEL filter expression for the memo view, using the same grammar as the ListMemos `filter` argument. Reuse it by passing this value to ListMemos.
iconobjectoptional
Optional. Display icon. Omit when updating with the "icon" mask to reset to the default view icon.
defaultDefault error response
codeintegeroptional
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
messagestringoptional
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
detailsarray<object>optional
A list of messages that carry the error details. There is a common set of message types for APIs to use.

Error handling

The title and filter fields are required. The filter field must be a CEL expression using the same grammar as the ListMemos filter argument. The user path parameter identifies the user for whom to create the view.