Skip to main content
POST
/
admin
/
raffles
/
copy
Copy raffle to new site
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"
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Copy raffle request parameters

new_site_id
string
required
Example:

"68494fd1b54b34b53a911183"

source_raffle_id
string
required
Example:

"123e4567-e89b-12d3-a456-426614174000"

new_name
string
Example:

"Copy of Original Raffle"

new_slug
string
Example:

"copy-of-original-raffle"

Response

OK

message
string
Example:

"Raffle copied successfully"

new_raffle
any
status
string
Example:

"ok"