curl --request POST \
--url https://api.sprucecollective.co.uk/admin/raffles/copy \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"new_site_id": "68494fd1b54b34b53a911183",
"source_raffle_id": "123e4567-e89b-12d3-a456-426614174000",
"new_name": "Copy of Original Raffle",
"new_slug": "copy-of-original-raffle"
}
'{
"message": "Raffle copied successfully",
"new_raffle": "<unknown>",
"status": "ok"
}Copy an existing raffle to a new record with a different site_id, retaining all fields except the ID
curl --request POST \
--url https://api.sprucecollective.co.uk/admin/raffles/copy \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"new_site_id": "68494fd1b54b34b53a911183",
"source_raffle_id": "123e4567-e89b-12d3-a456-426614174000",
"new_name": "Copy of Original Raffle",
"new_slug": "copy-of-original-raffle"
}
'{
"message": "Raffle copied successfully",
"new_raffle": "<unknown>",
"status": "ok"
}Type "Bearer" followed by a space and JWT token.
Copy raffle request parameters