deploy_resources
Approve or reject a deployment
Approves or rejects a deployment.
post/api/v4/projects/{id}/deployments/{deployment_id}/approval
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
The ID or URL-encoded path of the project owned by the authenticated user
deployment_idinteger required
The ID of the deployment
Request body
Response
Approve or reject a deployment
Example response
{
"user": {
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"state": "active",
"avatar_url": "https://gravatar.com/avatar/1",
"avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png",
"custom_attributes": [
{
"key": "foo",
"value": "bar"
}
],
"web_url": "https://gitlab.example.com/root"
},
"status": "approved",
"created_at": "2022-02-24T20:22:30.097Z",
"comment": "LGTM"
}Changes
No recorded changes to this operation across all 5 revisions of this API.