Skip to main content

__update_subscription_impl

Function __update_subscription_impl 

Source
pub async fn __update_subscription_impl(
    state: State<AppState>,
    __arg1: Path<i64>,
    payload: Json<UpdateSubscription>,
) -> Result<Json<SubscriptionHal>, HandlerError>
Expand description

Update an existing subscription.

Updates the target repository, event type, and/or GitHub App installation ID of a subscription.

§Path Parameters

id: The unique identifier of the subscription to update

§Responses

200: Json - Subscription updated successfully 401: () - Unauthorized 404: () - Subscription was not found 408: () - Request timeout 422: () - Validation error 500: () - Internal server error

§Metadata

@tag subscriptions