Stride

Search Documentation

Search for articles, guides, and more

← API overview

Re-enable a subscription

POST/v1/app/webhooks/{webhook_id}/enablerequires app.manage

Turn a disabled subscription back on. Stride repeats the verification handshake first, so this fails unless the endpoint is answering again. The subscription keeps its ID and signing secret, and its failure count starts again from zero.

Events raised while it was disabled are not delivered; call the API for anything that changed in the meantime. Calling this on a subscription that is already active only repeats the handshake.

Path parameters

  • webhook_idstringrequired

    The webhook subscription ID (`whs_...`), as returned when you created it.

Example

bash
curl -X POST "https://api.stride.is/v1/app/webhooks/{webhook_id}/enable" \
  -H "Authorization: Bearer $STRIDE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ }'

Response200

Success.

  • consecutive_failuresintegeralways present
  • created_atstringalways present
  • disabled_reasonstring
  • eventsstring[]always present
  • failing_sincestring
  • idstringalways present
  • last_delivery_atstring
  • secretstring
  • statusstringalways present
  • urlstringalways present

Errors

Every error is an RFC 9457 problem document. Branch on itscode, which is stable;detail is prose and may be reworded.

  • 400The request was malformed: an unparseable date, an unknown enum value, or a parameter combination that cannot be satisfied.
  • 401No access token was supplied, or it is not valid for this API.
  • 402The Stride account the token belongs to has no active subscription or trial.
  • 403The token does not hold the scope this endpoint requires, or may not act on the athlete or team named.
  • 404No such resource, or it is not visible to this token. The two are deliberately indistinguishable.
  • 405The path exists but does not serve this method. The Allow header lists the ones it does.
  • 429A rate limit was exceeded. Retry after the period in the Retry-After header.
  • 500Something failed on Stride's side. The failure is logged with a trace ID.