Templates
Rename a template file
Rename the display filename of a template
PATCH
/
api
/
templates
/
{templateId}
/
rename
Rename a template file
curl --request PATCH \
--url https://{baseUrl}/api/v1/api/templates/{templateId}/rename \
--header 'Content-Type: application/json' \
--data '
{
"fileName": "<string>"
}
'import requests
url = "https://{baseUrl}/api/v1/api/templates/{templateId}/rename"
payload = { "fileName": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({fileName: '<string>'})
};
fetch('https://{baseUrl}/api/v1/api/templates/{templateId}/rename', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/templates/{templateId}/rename"
payload := strings.NewReader("{\n \"fileName\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"fileName": "<string>",
"path": "<string>"
}⌘I
Rename a template file
curl --request PATCH \
--url https://{baseUrl}/api/v1/api/templates/{templateId}/rename \
--header 'Content-Type: application/json' \
--data '
{
"fileName": "<string>"
}
'import requests
url = "https://{baseUrl}/api/v1/api/templates/{templateId}/rename"
payload = { "fileName": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({fileName: '<string>'})
};
fetch('https://{baseUrl}/api/v1/api/templates/{templateId}/rename', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/templates/{templateId}/rename"
payload := strings.NewReader("{\n \"fileName\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"fileName": "<string>",
"path": "<string>"
}