Rename a project
curl --request PATCH \
--url https://api.tensorpro.ai/api/v1/projects/{project_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Website relaunch 2027"
}
'import requests
url = "https://api.tensorpro.ai/api/v1/projects/{project_id}"
payload = { "name": "Website relaunch 2027" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Website relaunch 2027'})
};
fetch('https://api.tensorpro.ai/api/v1/projects/{project_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tensorpro.ai/api/v1/projects/{project_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Website relaunch 2027'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tensorpro.ai/api/v1/projects/{project_id}"
payload := strings.NewReader("{\n \"name\": \"Website relaunch 2027\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.patch("https://api.tensorpro.ai/api/v1/projects/{project_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Website relaunch 2027\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tensorpro.ai/api/v1/projects/{project_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Website relaunch 2027\"\n}"
response = http.request(request)
puts response.read_body{
"id": "b4c8e2f6-1a3d-4e5f-9b7c-2d6e8f0a1b3c",
"name": "Website relaunch 2027",
"created_at": "2026-11-08T22:15:00+00:00",
"updated_at": "2026-11-10T04:43:25+00:00",
"session_count": 3,
"source_count": 2
}
Projects
Rename a project
Update the name of one of your projects. Returns the updated project summary, or 404 when the project does not exist or does not belong to you.
PATCH
/
api
/
v1
/
projects
/
{project_id}
Rename a project
curl --request PATCH \
--url https://api.tensorpro.ai/api/v1/projects/{project_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Website relaunch 2027"
}
'import requests
url = "https://api.tensorpro.ai/api/v1/projects/{project_id}"
payload = { "name": "Website relaunch 2027" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Website relaunch 2027'})
};
fetch('https://api.tensorpro.ai/api/v1/projects/{project_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tensorpro.ai/api/v1/projects/{project_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Website relaunch 2027'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.tensorpro.ai/api/v1/projects/{project_id}"
payload := strings.NewReader("{\n \"name\": \"Website relaunch 2027\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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))
}HttpResponse<String> response = Unirest.patch("https://api.tensorpro.ai/api/v1/projects/{project_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Website relaunch 2027\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tensorpro.ai/api/v1/projects/{project_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Website relaunch 2027\"\n}"
response = http.request(request)
puts response.read_body{
"id": "b4c8e2f6-1a3d-4e5f-9b7c-2d6e8f0a1b3c",
"name": "Website relaunch 2027",
"created_at": "2026-11-08T22:15:00+00:00",
"updated_at": "2026-11-10T04:43:25+00:00",
"session_count": 3,
"source_count": 2
}
Use this endpoint to rename a project.
See Error handling.
What EDN does
Changes the project’s name and returns the updated project.Required headers
| Header | Value | Description |
|---|---|---|
Authorization | Bearer YOUR_API_KEY | Your EDN API key. Create keys in the Console. See Authentication |
Content-Type | application/json | The request body is JSON |
Request
Path parameters
| Parameter | Type | Description |
|---|---|---|
project_id | string | Identifier for the project to rename |
Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | The new name. Spaces at the start and end are removed; names longer than 100 characters are cut to 100. Omit to leave the name unchanged |
curl -X PATCH "https://api.tensorpro.ai/api/v1/projects/b4c8e2f6-1a3d-4e5f-9b7c-2d6e8f0a1b3c" \
-H "Authorization: Bearer $EDN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Website relaunch 2027"
}'
import os
import requests
resp = requests.patch(
"https://api.tensorpro.ai/api/v1/projects/b4c8e2f6-1a3d-4e5f-9b7c-2d6e8f0a1b3c",
headers={"Authorization": f"Bearer {os.environ['EDN_API_KEY']}"},
json={
"name": "Website relaunch 2027"
},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.tensorpro.ai/api/v1/projects/b4c8e2f6-1a3d-4e5f-9b7c-2d6e8f0a1b3c", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.EDN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Website relaunch 2027"
}),
});
console.log(await resp.json());
Response
200 OK
{
"id": "b4c8e2f6-1a3d-4e5f-9b7c-2d6e8f0a1b3c",
"name": "Website relaunch 2027",
"created_at": "2026-11-08T22:15:00+00:00",
"updated_at": "2026-11-10T04:43:25+00:00",
"session_count": 3,
"source_count": 2
}
| Field | Type | Description |
|---|---|---|
id | string | Identifier for the project. Pass it as project_id to other endpoints |
name | string | The project’s name |
created_at | string (date-time) | When the project was created |
updated_at | string (date-time) | When the project was last changed |
session_count | integer | How many sessions are in the project |
source_count | integer | How many documents the project has |
Errors
| Status | Code | When |
|---|---|---|
401 | UNAUTHORIZED | The API key is missing, invalid or revoked |
404 | NOT_FOUND | The project doesn’t exist or isn’t yours |
422 | VALIDATION_ERROR | name is empty |
429 | RATE_LIMITED | Per-minute limit reached. Retry after Retry-After seconds |
500 | INTERNAL_ERROR | Something failed on EDN’s side. Retry later |
{
"id": "b4c8e2f6-1a3d-4e5f-9b7c-2d6e8f0a1b3c",
"name": "Website relaunch 2027",
"created_at": "2026-11-08T22:15:00+00:00",
"updated_at": "2026-11-10T04:43:25+00:00",
"session_count": 3,
"source_count": 2
}
Authorizations
Body
application/json
Response
Successful Response
