R
Runpod2mo ago
ianh

Updating serverless template via REST API

I'm looking to programmatically update the Docker image associated with a given endpoint. I noticed that this appears to be done through the endpoint's template rather than the through the endpoint model itself. The template in question can only be accessed via GET when ?includeEndpointBoundTemplates=true, but the corresponding POST and PATCH endpoints do not support said query param, and trying to update the endpoint through those means returns
{
"error": "get template: template not found",
"status": 404
}
{
"error": "get template: template not found",
"status": 404
}
3 Replies
ianh
ianhOP2mo ago
Yes. Both POST /templates/{templateId}/update and PATCH /templates/{templateId} return a 404 when {templateId} refers to an endpoint-bound template.
Dj
Dj2mo ago
We have a team working on this, we haven't forgotten.

Did you find this page helpful?