DeletePushRule
Deletes a specified push rule.
Operation description
You must have the permissions of a repository administrator or higher.
Try it now
Test
RAM authorization
Request syntax
DELETE /api/v4/projects/{repositoryId}/push_rule/{pushRuleId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| repositoryId |
integer |
Yes |
The repository ID. |
2813489 |
| pushRuleId |
integer |
Yes |
The push rule ID. |
2077 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The enterprise identifier, also known as the enterprise ID. This is a string that can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId]. |
60d54f3daccf2bbd6659f3ad |
| accessToken |
string |
No |
The personal access token. This field is not required if you use an Alibaba Cloud AccessKey pair or Security Token Service (STS) for temporary authorization. |
f0b1e61db5961df5975a93f9129d2513 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorCode |
string |
The error code. |
InvalidParam.NotFound |
| errorMessage |
string |
The error message. |
”“ |
| success |
string |
Indicates whether the request is successful. |
true |
| result |
object |
The returned result. |
|
| result |
boolean |
Indicates whether the deletion is successful. |
true |
Examples
Success response
JSON format
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorCode": "InvalidParam.NotFound",
"errorMessage": "”“",
"success": "true",
"result": {
"result": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.