GitLab API

GitlabTool

Actions1095

Pages → patchApiV4ProjectsIdPages

AI-generated

Summary

Update the GitLab Pages configuration of a specified project by sending a PATCH request to the project's pages API endpoint.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab project whose Pages configuration will be updated.
  • Request Body (required) — The PATCH request body containing the changes to apply to the project's GitLab Pages settings.
  • Skip Authentication — Option to skip authentication for this request; defaults to false (authentication required).
  • Base URL — The base URL for the GitLab instance; defaults to https://gitlab.com.

Output shape

a single JSON response object reflecting the updated GitLab Pages configuration for the specified project

The response matches the GitLab API's PATCH /projects/:id/pages response schema. Authentication is performed unless skipped. The operation returns the updated resource data in JSON format.

Examples

Example 1: Update a project's Pages settings

Set the 'id' parameter to specify the project and provide the desired changes in the request body following the 'patchApiV4ProjectsIdPages' schema.

Links

Discussion