Unfavorite an artifact
DELETE
/v1/artifacts/{id}/favorite
const url = 'https://shareout.site/v1/artifacts/example/favorite';const options = {method: 'DELETE', 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 DELETE \ --url https://shareout.site/v1/artifacts/example/favorite \ --header 'Authorization: Bearer <token>'Idempotent.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Artifact ID (e.g. art_abc123).
Responses
Section titled “ Responses ”Unfavorited
Media type application/json
object
success
boolean
artifact_id
string
favorited
boolean
Example generated
{ "success": true, "artifact_id": "example", "favorited": true}