amp event-properties

このページはまだあなたの言語に翻訳されていません。 現在取り組んでいますので、後でもう一度確認してください。

amp event-properties manages the properties associated with an event. Read commands require taxonomy:read; create, update, and delete require taxonomy:write.

amp event-properties list

Returns properties bound to a specific event, including ingested-only properties (those with is_in_schema: false). Use the is_in_schema flag to detect whether a PATCH will succeed before issuing it.

bash
amp event-properties list --project <project_id> --event <event_type> --limit 5

Requires the taxonomy:read scope.

amp event-properties get

Get event property.

bash
amp event-properties get --project <project_id> --event <event_type> --property <property_name>

Requires the taxonomy:read scope.

amp event-properties create

Creates an event property and adds it to the project's tracking plan (is_in_schema: true after success). If the property already exists in the schema, the existing resource is returned without modification. If the property exists ingested-only (is_in_schema: false), this call promotes it into the schema with the metadata supplied here.

bash
amp event-properties create --project <project_id> --event <event_type> --property <property_name> --data-type string

Requires the taxonomy:write scope.

amp event-properties update

Updates metadata on an event property. Returns 422 not_in_schema if the property is ingested-only (is_in_schema: false); promote it via POST first. Field absent means leave unchanged; field with null clears (where allowed). enum_values and classifications replace the array entirely — there is no per-item add/remove.

bash
amp event-properties update --project <project_id> --event <event_type> --property <property_name> --description "Updated description"

Requires the taxonomy:write scope.

amp event-properties delete

Deletes an event property. Preview the deletion with --dry-run. At a terminal, the command asks for confirmation; pass --yes to skip the prompt.

bash
amp event-properties delete --project <project_id> --event <event_type> --property <property_name> --dry-run
amp event-properties delete --project <project_id> --event <event_type> --property <property_name> --yes

Requires the taxonomy:write scope.

これは役に立ちましたか?

For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.

このページでは