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