Sign in

Create Line Item

documented

Create a new line item under a campaign.

POST /5/accounts/{account_id}/line_itemsAds APIno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.x.com/5/accounts/{{$account_id}}/line_items" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"title": "{{$title}}", "description": "{{$description}}", "quantity": {{$quantity}}, "price": {{$price}}, "currency": "{{$currency}}", "start_date": "{{$start_date}}", "end_date": "{{$end_date}}"}'
Create Line Item · X · OpenIntegrations