REST API endpoints for deployments - GitHub Docs

Use the REST API to create and delete deployments and deployment environments.