POST
/
bundle
Create a bundle
curl --request POST \
  --url https://lightyshare.com/api/token-secured/bundle \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "bundle": {
    "title": "Complete LED Studio Pack",
    "description": "Professional kit for studio shooting",
    "rent": 190,
    "items": [
      {
        "ad_id": 123,
        "quantity": 2
      }
    ],
    "images": [
      {
        "src": "https://cdn.example.com/bundle-studio.jpg"
      }
    ],
    "online": true,
    "archived": false
  }
}'
{
  "success": true,
  "id": 98765
}

Authorizations

Authorization
string
header
required

Use your API token in the Authorization header with Bearer scheme. Alternative: You can also pass the token as a query parameter ?token=your_token for backward compatibility.

Query Parameters

token
string
required

User authentication token

Example:

"YOUR_TOKEN"

Body

application/json
bundle
object
required

Response

Bundle successfully created

success
boolean
Example:

true

id
integer
Example:

98765