Commit d1af4613 authored by Schoaf's avatar Schoaf Committed by Greg Messner
Browse files

Add method to trigger housekeeping via the API. (#434)

parent a3ccdff0
......@@ -2931,4 +2931,19 @@ public class ProjectApi extends AbstractApi implements Constants {
delete(Response.Status.NO_CONTENT, null,
"projects", getProjectIdOrPath(projectIdOrPath), "access_requests", userId);
}
/**
* Start the Housekeeping task for a project.
*
* <pre>
* <code>GitLab Endpoint: POST /projects/:id/housekeeping</code>
* </pre>
*
* @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
* @throws GitLabApiException if any exception occurs
*/
public void triggerHousekeeping(Object projectIdOrPath) throws GitLabApiException {
Form formData = null;
post(Response.Status.OK, formData, "projects", getProjectIdOrPath(projectIdOrPath), "housekeeping");
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment