Create a record for a song in a game hosting leaderboards via Tsunagite. If the song already exists, update its data.
Input
Encoding
text/jsonid
stringrecord-key
Required
The ID of this song. Should only include [a-zA-Z0-9-].
song
refdev.tsunagite.song
Required
No description available.
Output
Encoding
text/jsonuri
stringat-uri
Optional
The URI pointing to the song's newly-created record.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"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": {
"properties": {
"id": {
"description": "The ID of this song. Should only include [a-zA-Z0-9-].",
"format": "record-key",
"type": "string"
},
"song": {
"ref": "dev.tsunagite.song",
"type": "ref"
}
},
"required": [
"id",
"song"
],
"type": "object"
}
},
"output": {
"encoding": "text/json",
"schema": {
"properties": {
"uri": {
"description": "The URI pointing to the song's newly-created record.",
"format": "at-uri",
"type": "string"
}
},
"type": "object"
}
},
"type": "procedure"
}