Deleting a Project Hook
Function
This API is used to delete a project hook.
The request header parameter X-Repo-Auth needs to be added for this API. Its value is the name of the OAuth authorization created in Creating OAuth Authorization.
URI
DELETE /v1/{project_id}/git/repos/{namespace}/{project}/hooks/{hook_id}
Table 1 describes the parameters.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| project_id | String | Yes | Tenant's project ID. |
| namespace | String | Yes | Namespace ID or URL code name. |
| project | String | Yes | Repository project ID or URL code name. If the value contains a slash (/), replace it with a colon (:). |
| hook_id | String | Yes | Hook ID. |
Request
Request parameters
None
Response
Response parameters
None
Example
Example request
None
Example response
None
Status Code
| HTTP Status Code | Description |
|---|---|
| 204 | OK |
| 400 | Bad Request |
Error code must be in the format of SVCSTG.REPO.[Error_ID]. Example: SVCSTG.REPO.0401. See ServiceStage Error Codes.
Last Article: Creating a Project Hook
Next Article: Obtaining a Repository File Directory
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.