Deletes the hook of a specified repository.
Function
Code submission automatically triggers compilation and building, and the repository hook is deleted.
URI
DELETE /v1/repositories/{group_name}/{repository_name}/hooks/{hook_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
group_name |
Yes |
String |
Group Name (Example: git@repo.alpha.devcloud.inhuawei.com:Demo00228/testword.git Group Name: Demo00228) |
hook_id |
Yes |
Integer |
Deletes the hook of a specified repository by ID. |
repository_name |
Yes |
String |
Repository name |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Response error. |
result |
Object |
Result |
status |
String |
Response Status |
Example Requests
null DELETE https://{endpoint}/v1/repositories/{group_name}/{repository_name}/hooks/{hook_id}
Example Responses
Status code: 200
OK
{ "result" : "", "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.