{
"id": "dev.tsunagite.createSong",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"id",
"song"
],
"properties": {
"id": {
"type": "string",
"format": "record-key",
"description": "The ID of this song. Should only include [a-zA-Z0-9-]."
},
"song": {
"ref": "dev.tsunagite.song",
"type": "ref"
}
}
},
"encoding": "text/json"
},
"output": {
"schema": {
"type": "object",
"properties": {
"uri": {
"tye": "string",
"format": "at-uri",
"description": "The URI pointing to the song's newly-created record."
}
}
},
"encoding": "text/json"
},
"description": "Create a record for a song in a game hosting leaderboards via Tsunagite. If the song already exists, update its data."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}