Skip to main content
PUT
Mark a pattern of an application's Logs (browser session)

Authorizations

ankra_session
string
cookie
required

Browser session. Mutations also require X-Ankra-CSRF.

Path Parameters

application_id
string
required
environment_id
string
required

Body

application/json

A mark to set on a pattern: the pattern's text and the mark, both required.

pattern
string
required

The pattern's text, as the grouping answers it. Kept exactly as sent: it must be readable text with no NUL character and not only spaces, at most 500 characters. A longer one is refused, never shortened.

mark
string
required

resolved or ignored. Anything else is refused with log_pattern_mark_invalid.

Response

The pattern carried a mark, and it is replaced; the answer is the mark as it is now

One mark on a pattern of an environment's Logs: the pattern's text, resolved or ignored, who set it and when. A mark changes nothing the platform reads or counts: lines, counts and the AI tools' grouping are the same with or without it. What "comes back as new" means is the page's to decide, from the mark's time and the releases it has.

pattern
string
required

The pattern's text exactly as it was sent: the normalised message the grouping answers for a group of lines, 1 to 500 characters.

Required string length: 1 - 500
pattern_hash
string
required

The pattern's key: the lowercase hex SHA-256 of the text's UTF-8 bytes. A removal names it.

Pattern: ^[0-9a-f]{64}$
mark
enum<string>
required

resolved: someone marked the pattern resolved. ignored: someone chose to ignore it.

Available options:
resolved,
ignored
marked_by
object
required

Who last set a pattern mark.

marked_at
string<date-time>
required

When the mark was last set, in UTC, to the second.