Pangolin icon

Pangolin

Interact with the Pangolin API

Actions142

Site → Update a site.

AI-generated

Summary

Update a site identified by the given Site ID using the supplied JSON request body.

Inputs

  • Site ID (required) — The unique identifier of the site to update.
  • Body — A JSON object containing the fields and values to update for the site.
  • Options — Optional settings including 'Raw Response' to return the full response data without splitting arrays.

Output shape

A single JSON object representing the updated site details or the full response if 'Raw Response' is enabled.

The operation expects a valid Site ID and a JSON request body as input. If 'Raw Response' is true, the entire response is returned as a single item; otherwise, arrays in the response are split into individual items. Errors produce error messages associated with the input item index.

Examples

Example 1: Update the name and Docker socket setting of a site

Set the Site ID to identify the site to update. Provide a JSON body containing fields to be updated, e.g., { "name": "New Site Name", "dockerSocketEnabled": true }.

Discussion