curl --fail-with-body -X POST "$RAWCHUNKS_API/api/albums" \
-H "Content-Type: application/json" \
--data "$(jq -nc --arg user "$USER_ADDRESS" '{
"title": "Night circuits",
"creator": $user,
"public": false
}')"
{
"id": "album-example",
"title": "Night circuit",
"creator": "0x1111111111111111111111111111111111111111"
}
Albums
Create an album
Create an album record.
POST
/
api
/
albums
curl --fail-with-body -X POST "$RAWCHUNKS_API/api/albums" \
-H "Content-Type: application/json" \
--data "$(jq -nc --arg user "$USER_ADDRESS" '{
"title": "Night circuits",
"creator": $user,
"public": false
}')"
{
"id": "album-example",
"title": "Night circuit",
"creator": "0x1111111111111111111111111111111111111111"
}
Your integration should authenticate its user and restrict album management to that creator. Library integration.
JSON body
string
required
Minimum length:
1.string
required
Wallet address for the selected account. Use the same address as the session owner. Minimum length:
10.string
string
boolean
default:false
Response (201)
Success.string
required
string
required
string
required
string | null
string | null
boolean
string
Errors
Failed JSON responses contain anerror string. Check the HTTP status before reading a successful result. See job handling for interrupted or uncertain submissions.
| Status | Meaning |
|---|---|
400 | Invalid request. |
500 | Request failed. |
curl --fail-with-body -X POST "$RAWCHUNKS_API/api/albums" \
-H "Content-Type: application/json" \
--data "$(jq -nc --arg user "$USER_ADDRESS" '{
"title": "Night circuits",
"creator": $user,
"public": false
}')"
{
"id": "album-example",
"title": "Night circuit",
"creator": "0x1111111111111111111111111111111111111111"
}
⌘I