--- title: REST API endpoints for protection rules shortTitle: Protection rules intro: 'Use the REST API to create, configure, and delete deployment protection rules.' versions: fpt: '*' ghec: '*' ghes: '*' autogenerated: rest allowTitleToDifferFromFilename: true category: - Automate CI/CD workflows ---