code-security
Create a code security configuration for an enterprise
Changed onCreates a code security configuration in an enterprise.
The authenticated user must be an administrator of the enterprise in order to use this endpoint.
OAuth app tokens and personal access tokens (classic) need the admin:enterprise scope to use this endpoint.
post/enterprises/{enterprise}/code-security/configurations
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/enterprises/{enterprise}/code-security/configurations
- Auth: none declared
Path parameters
enterprisestring required
The slug version of the enterprise name.
Request body
Response
Successfully created code security configuration
Changes
- info
added the non-success response with the status
- info
- warning
added the new
enterprise_enforcedenum value to theresponse property for the response status - info
added the new
enterprise_enforcedenum value to the request property
- warning