✨ 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.

Authentication

AuthorizationToken
The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: <br><pre><code class="language-bash">curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"</code></pre>

Path parameters

idintegerRequired

Request

This endpoint expects an object.
codestringRequired>=1 character
The Python code for the custom metric function.
projectstring or nullOptional
The GCP project ID. Uses default if not provided.
regionstring or nullOptional
The GCP region for the Cloud Function. Uses default if not provided.

Response

Updated successfully

Errors

500
Internal Server Error