Skip to content

Create a project event mapping (EDITOR)

Also reachable by the internal remote-MCP server as register_event_schema (requireProjectRoleOrMcpScope EDITOR / ‘mcp:events_write’); MCP path is worker- internal, so ApiKeyAuth is not advertised here.

projectId
required
string
Media typeapplication/json
object
appEventName
required
string
>= 1 characters
eventDefinitionId
required
string
>= 1 characters
isActive
boolean
default: true

{ mapping }

Media typeapplication/json
object
key
additional properties
any

Invalid config

Media typeapplication/json

Validation error envelope (Zod). issues/details present on schema failures.

object
error
required
string
issues
Array<object>
object
key
additional properties
any
details
Array<object>
object
key
additional properties
any
Examplegenerated
json
{
"error": "example",
"issues": [
{}
],
"details": [
{}
]
}

Event definition not found

Media typeapplication/json
object
error
required

Human-readable error message.

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

Mapping already exists

Media typeapplication/json
object
error
required

Human-readable error message.

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