Skip to content

Upsert operator annotation (tags + note) for a user

Requires EDITOR. Body validated by opsAnnotationPutSchema (tags array + optional note).

projectId
required
string

Project (tenant) identifier. Row-level tenant isolation is enforced on every query.

userId
required
string

Identified user identifier.

Media typeapplication/json

Exact constraints per @/lib/user-ops-annotations opsAnnotationPutSchema (dedupe + length caps applied server-side).

object
tags
Array<string>
note
string | null
Examplegenerated
json
{
"tags": [
"example"
],
"note": "example"
}

Saved annotation.

Media typeapplication/json
object
tags
Array<string>
note
string | null
authorUserId
string | null
updatedAt
string | null

Invalid annotation params.

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}

Not authenticated (401 via requireAuthenticated) or insufficient project role (403).

Media typeapplication/json
object
error
required

Human-readable error message.

string
message
string
Examplegenerated
json
{
"error": "example",
"message": "example"
}