Patch Project Scene
PATCH
/api/projects/{project_id}/scenes/{scene_id}
const url = 'https://example.com/api/projects/example/scenes/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/projects/example/scenes/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'Update selected fields of a scene.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
Project Id
string
scene_id
required
Scene Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Patch
object
key
additional properties
any
Examplegenerated
{}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
SceneRecord
object
scene_number
required
Scene Number
integer
setting
Setting
string
weather
Weather
string
characters
Characters
Array<string>
metadata
Metadata
object
key
additional properties
any
Example
{ "setting": "interior", "weather": "clear"}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}