org.tangled.webhook.createWebhook
Create a new webhook for a repository.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | webhook.tangled.org |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.secretNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.idNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Create a new webhook for a repository.",
"errors": [
{
"description": "At least one event type must be specified.",
"name": "NoEventsSelected"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"active": {
"default": true,
"description": "Whether the webhook should be active immediately.",
"type": "boolean"
},
"events": {
"description": "Event types to subscribe to.",
"items": {
"ref": "org.tangled.webhook.defs#eventType",
"type": "ref"
},
"type": "array"
},
"repo": {
"description": "DID of the repository as minted by the knot.",
"format": "did",
"type": "string"
},
"secret": {
"description": "Optional HMAC secret used to sign payloads. If omitted, payloads are not signed.",
"type": "string"
},
"url": {
"description": "Endpoint URL that will receive webhook payloads.",
"format": "uri",
"type": "string"
}
},
"required": [
"repo",
"url",
"events"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"id": {
"description": "ID of the newly created webhook.",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "org.tangled.webhook.createWebhook",
"lexicon": 1
}