v76

OpenAPI 3.0.3raw.githubusercontent.com2026-08-015764591.5 MB
Projects

✨ Update GCP custom metric Cloud Function

<Card href="https://humansignal.com/goenterprise"> <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/> <p style="margin-top: 10px; font-size: 14px;"> This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) </p> </Card> Create or update the GCP Cloud Function used for custom metrics in this project.
post/api/projects/{id}/gcp-custom-function

Path parameters

idinteger required

Request body

codestring required

The Python code for the custom metric function.

projectstring nullable

The GCP project ID. Uses default if not provided.

regionstring nullable

The GCP region for the Cloud Function. Uses default if not provided.

Response

Updated successfully