atproto/lexicons/tools/ozone/set/deleteValues.json
Foysal Ahamed 22d039a229
Ozone sets (#2636)
*  Initial implementation of sets api on ozone

*  Introduce sortDirection to querySets

* 🧹 Cleanup and refactor

*  Align setView for response

* ♻️ Rename and add specific error

* 🐛 Cleanup unnecessary check that is covered by lexicon

*  Rename remove to delete and add set suffix

*  Use id and createdAt for values pagination

*  Add index on createdAt for query perf and other cleanups

* 🐛 Set createdAt when inserting values

* 📝 Add changeset

*  Add index on setId and createdAt
2024-10-08 19:16:09 +02:00

38 lines
1000 B
JSON

{
"lexicon": 1,
"id": "tools.ozone.set.deleteValues",
"defs": {
"main": {
"type": "procedure",
"description": "Delete values from a specific set. Attempting to delete values that are not in the set will not result in an error",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["name", "values"],
"properties": {
"name": {
"type": "string",
"description": "Name of the set to delete values from"
},
"values": {
"type": "array",
"minLength": 1,
"items": {
"type": "string"
},
"description": "Array of string values to delete from the set"
}
}
}
},
"errors": [
{
"name": "SetNotFound",
"description": "set with the given name does not exist"
}
]
}
}
}