Archive a Shot you own
POST
/v1/shots/{public_id}/archive
const url = 'https://example.com/v1/shots/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/shots/example/archive \ --header 'Authorization: Bearer <token>'Retire one of your own photography recipes.
204: your read surface lists only published Shots, so there is nothing truthful to return for one that has just left that set. Publishing stays an operator action — this is only the undo half of the pair.
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" } ]}