Hooks
Repository hooks are HTTP requests which get made after Codebase has received a repository push.
API URLs
| Data | Method | URL |
| All hooks on a repository | GET | /project/repository/hooks |
| Create new hook on a repository | POST | /project/repository/hooks |
Object Properties
<repository-hook>
<id type="integer">4</id>
<url>http://paste.codebasehq.com/pastes/8qpw1f8u3totu8yzn5</url>
<username>dan</username>
<password>danspassword</password>
</repository-hook>
idis the ID of the hookurlis the URL where the hook will be delivered tousernameis the username that will be used for basic auth (if any) when making the requestpasswordis the password that will be used for basic auth (if any) when making the request