Hanzo
OpenapiGit

Returns a repo's Slack subscriptions — which channels the lifecycle notifier…

Returns a repo's Slack subscriptions — which channels the lifecycle notifier posts this repo's push and deploy events to.

GET /v1/git/repos/{name}/subscriptions

Addresshttps://api.hanzo.ai/v1/git/repos/{name}/subscriptions
MethodGET
Operationget_git_repos_by_name_subscriptions
AuthAuthorization: Bearer $HANZO_API_KEY

Returns a repo's Slack subscriptions — which channels the lifecycle notifier posts this repo's push and deploy events to.

Request

1 field.

FieldInTypeRequiredDescription
namepathstringyesName is the repo's org-unique handle, from the :name path segment.

Response

StatusBodyMeaning
200subscriptionListok

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodysubscriptionView[]Data holds the repo's subscriptions.
data[].channelbodystringChannel is the Slack channel id or name the notifier posts to.
data[].createdAtbodystringCreatedAt is RFC 3339 UTC.
data[].eventsbodystring[]Events is the kind filter; absent means every deliverable kind.
data[].idbodystringID is the subscription's identifier ("sub_…"), the handle to delete it by.
data[].repobodystringRepo is the repo whose lifecycle events are delivered.

Failure carries the platform error shape — see Errors.

Examples

hanzo git repos subscriptions list <name>

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page