R
Runpod2d 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
}
2 Replies
ianh
ianhOP2d ago
Yes. Both POST /templates/{templateId}/update and PATCH /templates/{templateId} return a 404 when {templateId} refers to an endpoint-bound template.

Did you find this page helpful?