Archive a Background you own
POST
/v1/backgrounds/{public_id}/archive
const url = 'https://example.com/v1/backgrounds/example/archive';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/backgrounds/example/archive \ --header 'Authorization: Bearer <token>'Retire one of your own scenes.
204 for the same reason the Shot archive gives: your read surface lists only published Backgrounds, so there is nothing truthful to return for one that has just left that set. Publishing stays an operator action.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”public_id
required
Public Id
string
Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”Successful Response
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" } ]}