Skip to content

Commit

Permalink
Merge pull request #2658 from PrefectHQ/chore/update-disable-endpoints
Browse files Browse the repository at this point in the history
Chore: update route names for disabling deployments
  • Loading branch information
dylanbhughes authored Aug 13, 2024
2 parents 8989183 + 88cc3a9 commit 1f4bf15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/WorkspaceDeploymentsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ export class WorkspaceDeploymentsApi extends WorkspaceApi {
}

public disableDeployment(deploymentId: string): Promise<void> {
return this.post(`/${deploymentId}/disable_deployment`)
return this.post(`/${deploymentId}/disable`)
}

public enableDeployment(deploymentId: string): Promise<void> {
return this.post(`/${deploymentId}/enable_deployment`)
return this.post(`/${deploymentId}/enable`)
}
}

0 comments on commit 1f4bf15

Please sign in to comment.