Create a new album
POST
/album/createAlbum
curl \
-X POST https://public-api.joinswsh.com/album/createAlbum \
-H "x-api-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"My Album"}'
Request example
{
"name": "My Album"
}
Response examples (200)
{
"data": {
"albumId": "22222222-2222-2222-2222-222222222222",
"name": "My Album",
"ownerId": "11111111-1111-1111-1111-111111111111",
"shareUrl": "https://joinswsh.com/album/abcdef"
},
"warnings": [
"Example warning"
]
}
Response examples (400)
{
"message": "Invalid request"
}