org.tangled.webhook.updateWebhook
Update an existing webhook. Only supplied fields are changed.
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.input.schema.properties.webhookNo maxLength, maxGraphemes or format limits this string.endpoint-output-undefineddefs.mainNo output is defined. Endpoints should define one, even an empty one.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Update an existing webhook. Only supplied fields are changed.",
"errors": [
{
"name": "WebhookNotFound"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"active": {
"type": "boolean"
},
"events": {
"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": {
"type": "string"
},
"url": {
"format": "uri",
"type": "string"
},
"webhook": {
"description": "Webhook ID to update.",
"type": "string"
}
},
"required": [
"repo",
"webhook"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "org.tangled.webhook.updateWebhook",
"lexicon": 1
}