Update the fields of a project. Send only the fields to change. You must be a manager in the team of the project, or an administrator. You cannot change id, created_at, updated_at and team. Use the team routes to change the team. The route checks production_style, resolution and the movie bitrates. A null production_style gives 2d3d. You can send preview_background_files, a list of preview background file identifiers. default_preview_background_file_id must be in the preview background files of the project. A tvshow project gets a first episode if it has none. Dates use the ISO 8601 format.
PUT
/data/projects/{instance_id}
curl
curl -X PUT "http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Project Name",
"production_style": "2d",
"preview_background_file_id": "b24a6ea4-ce75-4665-a070-57453082c25"
}'
import requests
url = "http://api.example.com/data/projects/a24a6ea4-ce75-4665-a070-57453082c25"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json",
"Content-Type": "application/json"
}
params = {}
payload = {
"name": "Updated Project Name",
"production_style": "2d",
"preview_background_file_id": "b24a6ea4-ce75-4665-a070-57453082c25"
}
response = requests.put(
url,
headers=headers,
params=params,
json=payload
)
response.raise_for_status()
if response.content:
print(response.json())
Request examples
{
"name": "Updated Project Name",
"production_style": "2d",
"default_preview_background_file_id": "a24a6ea4-ce75-4665-a070-57453082c250",
"preview_background_files": [
"string"
]
}
Response examples (200)
{
"id": "a24a6ea4-ce75-4665-a070-57453082c250",
"name": "Updated Project Name",
"production_type": "feature",
"production_style": "2d",
"project_status_id": "b24a6ea4-ce75-4665-a070-57453082c250",
"first_episode_id": "c24a6ea4-ce75-4665-a070-57453082c250",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T11:00:00Z"
}