headless lms

Replace a webhook's signing secret (staff)

POST /api/automations/webhooks/{id}/secret/rotate. Replace a webhook's signing secret (staff). Headless LMS Automations API reference.

POST
/api/automations/webhooks/{id}/secret/rotate

Staff only (owner, admin, instructor). The old secret stops working immediately.

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/automations/webhooks/string/secret/rotate"
{  "secret": "string"}
{  "error": "string",  "message": "string",  "requestId": "string",  "issues": [    {      "path": "string",      "message": "string"    }  ]}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}