Cinema Studio
Move an item to the Trash
Move an item to the Trash, and answer it as it now is. Its files stay until the Trash is emptied or it is deleted from there. Takes a key holding studio:write — Account offers it unticked — or the desktop's own session key. Spends nothing.
DELETE
/v1/studio/projects/{project}/items/{item}
curl -X DELETE https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d \
-H "Authorization: Bearer $AURAY_API_KEY"const res = await fetch("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d", {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.AURAY_API_KEY}` },
});
console.log(await res.json());import os, requests
r = requests.delete(
"https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
headers={"Authorization": f"Bearer {os.environ['AURAY_API_KEY']}"},
)
r.raise_for_status()
print(r.json())package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("AURAY_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AURAY_API_KEY"),
],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
uri = URI("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d")
req = Net::HTTP::Delete.new(uri)
req["Authorization"] = "Bearer #{ENV.fetch("AURAY_API_KEY")}"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"))
.header("Authorization", "Bearer " + System.getenv("AURAY_API_KEY"))
.DELETE()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("AURAY_API_KEY"));
using var request = new HttpRequestMessage(HttpMethod.Delete, "https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"id": "<string>",
"project_id": "<string>",
"folder_id": "<string>",
"kind": "<string>",
"name": "<string>",
"source": {
"product": "<string>",
"job_id": "<string>",
"asset": 123,
"from_upload": true
},
"files": [
{
"role": "<string>",
"url": "<string>",
"expires_at": "<string>",
"content_type": "<string>",
"bytes": 123,
"width": 123,
"height": 123,
"duration_ms": 123,
"from_upload": true,
"uploaded": true
}
],
"prompt": "<string>",
"params": {},
"model": {
"address": "<string>",
"id": "<string>",
"label": "<string>"
},
"director": {},
"seed": 123,
"ai_generated": true,
"attribution": "<string>",
"review": "<string>",
"favorite": true,
"last_viewed_at": "<string>",
"trim": {},
"created_at": "<string>",
"updated_at": "<string>",
"trashed_at": "<string>",
"film": {
"film_id": "<string>",
"export": 123,
"exports": 123,
"latest": true,
"made_with": [
{
"address": "<string>",
"id": "<string>",
"label": "<string>"
}
]
},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}Authorizations
Authorizationstringheaderrequired
Bearer auray_sk_… — studio:write — Account offers it unticked; the desktop's session key holds it.
Path Parameters
projectstringrequired
itemstringrequired
OK.
objectstringrequired
One of
"item".idstringrequired
project_idstringrequired
folder_idstringrequired
The member's folder it is filed in; null at the project's top level. May be null.
kindstringrequired
One of
"image", "video", "audio", "model3d".namestringrequired
0 to 120 characters. May be null.
sourceobjectrequired
Show child attributes
productstringrequired
The product whose job made it,
upload for a file from a disk, or film for a film exported from the project's own clips. One of "photo", "music", "video", "threed", "external", "upload", "film".job_idstringrequired
The job's id as
GET /jobs/{id} reads it; null for an upload and for a film. May be null.assetinteger or stringrequired
Which file of the job: a position, or a 3D artefact's name. May be null.
from_uploadboolean
Whether it was made from a file not made here: true for an upload and for a result whose job was given one, however many jobs back; false for a result made here from files made here alone; null where it is not known. Only a picture, a clip or a recording that is false can be made to speak or used as a voice without your consent. May be null.
filesobject[]required
Show child attributes
rolestringrequired
original as made or uploaded; thumbnail a smaller picture for a card; poster a frame of a clip or a view of a mesh; captions a film's subtitles, the WebVTT a captioned export files beside it. One of "original", "thumbnail", "poster", "captions".urlstringrequired
A URL.
expires_atstringrequired
content_typestringrequired
bytesintegerrequired
May be null.
widthintegerrequired
May be null.
heightintegerrequired
May be null.
duration_msintegerrequired
May be null.
from_uploadboolean
On an element's file alone: whether it was made from a file not made here — false for a picture made here from files made here alone, true for one made from an upload, null where it is not known. Only a picture that is false can be made to speak. An item says its own as
source.from_upload. May be null.uploadedboolean
On an element's file alone: true for your own upload itself.
promptstringrequired
May be null.
paramsobjectrequired
The settings it was made with, cleaned of links and keys. May be null.
modelobjectrequired
The model an item was made with: its address and id as
GET /models lists it, and the name a person reads. All three are null for the person's own upload; a frame the AI Director cut from a model's clip is named by that clip's model.Show child attributes
addressstringrequired
May be null.
idstringrequired
May be null.
labelstringrequired
May be null.
directorobject or nullrequired
seedintegerrequired
May be null.
ai_generatedbooleanrequired
A model's output says so wherever it is shown, with
attribution, its licence line.attributionstringrequired
May be null.
reviewstringrequired
One of
"none", "in_progress", "needs_review", "approved", "rejected".favoritebooleanrequired
Your own favourite.
last_viewed_atstringrequired
When you last opened it (
POST …/view); null for never. May be null.trimobject or nullrequired
created_atstringrequired
updated_atstringrequired
trashed_atstringrequired
May be null.
filmobjectrequired
For a film exported from the project's own clips (
source.product film): its cut, its place among the cut's exports and every model that made it. Null for every other item. May be null.Show child attributes
film_idstringrequired
The cut it is an export of.
exportintegerrequired
Its place among the cut's exports in the project, 1 the oldest. 1 to ….
exportsintegerrequired
How many exports of the cut the project holds now, the Trash included. 1 to ….
latestbooleanrequired
True for the newest export of the cut outside the Trash.
made_withobject[]required
Every model its clips and sounds were made with, each by its name.
Show child attributes
addressstringrequired
May be null.
idstringrequired
May be null.
labelstringrequired
May be null.
request_idstring
Mirrored in the X-Request-Id header.
Headers:
| Header | Description |
|---|---|
RateLimit-Limit | Burst capacity. |
RateLimit-Remaining | |
RateLimit-Reset | Seconds until refill. |
X-RateLimit-Limit | |
X-RateLimit-Remaining | |
X-RateLimit-Reset | Unix seconds. The X- spelling is what client libraries read. |
X-Request-Id |
Was this page helpful?
curl -X DELETE https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d \
-H "Authorization: Bearer $AURAY_API_KEY"const res = await fetch("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d", {
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.AURAY_API_KEY}` },
});
console.log(await res.json());import os, requests
r = requests.delete(
"https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
headers={"Authorization": f"Bearer {os.environ['AURAY_API_KEY']}"},
)
r.raise_for_status()
print(r.json())package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("AURAY_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(res.Status, string(out))
}<?php
$ch = curl_init("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AURAY_API_KEY"),
],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), " ", $response, PHP_EOL;require "net/http"
uri = URI("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d")
req = Net::HTTP::Delete.new(uri)
req["Authorization"] = "Bearer #{ENV.fetch("AURAY_API_KEY")}"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.code, res.bodyimport java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"))
.header("Authorization", "Bearer " + System.getenv("AURAY_API_KEY"))
.DELETE()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode() + " " + response.body());
}
}using System.Net.Http.Headers;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("AURAY_API_KEY"));
using var request = new HttpRequestMessage(HttpMethod.Delete, "https://api.auray.ai/v1/studio/projects/3f0c8a52-6a1d-4e8b-9c2d-7e5f4a3b2c1d/items/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d");
using var response = await client.SendAsync(request);
Console.WriteLine($"{(int)response.StatusCode} {await response.Content.ReadAsStringAsync()}");{
"object": "<string>",
"id": "<string>",
"project_id": "<string>",
"folder_id": "<string>",
"kind": "<string>",
"name": "<string>",
"source": {
"product": "<string>",
"job_id": "<string>",
"asset": 123,
"from_upload": true
},
"files": [
{
"role": "<string>",
"url": "<string>",
"expires_at": "<string>",
"content_type": "<string>",
"bytes": 123,
"width": 123,
"height": 123,
"duration_ms": 123,
"from_upload": true,
"uploaded": true
}
],
"prompt": "<string>",
"params": {},
"model": {
"address": "<string>",
"id": "<string>",
"label": "<string>"
},
"director": {},
"seed": 123,
"ai_generated": true,
"attribution": "<string>",
"review": "<string>",
"favorite": true,
"last_viewed_at": "<string>",
"trim": {},
"created_at": "<string>",
"updated_at": "<string>",
"trashed_at": "<string>",
"film": {
"film_id": "<string>",
"export": 123,
"exports": 123,
"latest": true,
"made_with": [
{
"address": "<string>",
"id": "<string>",
"label": "<string>"
}
]
},
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}{
"error": "<string>",
"message": "<string>",
"docs": "<string>",
"request_id": "<string>"
}