Campaign

Campaign - Create

Required: job_provider_id, name, budget_type. Conditional: budget (required unless budget_type=unlimited); start_date + end_date (required when budget_type=flight, forbidden otherwise). API-level validation runs first so callers get clean error messages instead of raw DB constraint violations.

post/admin/v1/campaigns

Request

  • Base URL: https://api.juju.com
  • URL: https://api.juju.com/admin/v1/campaigns
  • Auth: none declared

Response

Created campaign (detail shape).

metaobject required

Pagination and context metadata. Always present, empty object ({}) when no metadata applies to the response.

errorsstring[] required

Empty array on success. On failure, human-readable error strings suitable for surfacing to end users.

Example response

{
  "data": {
    "budget": "500.00",
    "default_cpc": "0.12",
    "segments": [
      {
        "bid_low": "0.12",
        "bid_high": "0.42",
        "conversion_rate_assumed": "0.040000",
        "conversion_rate_working": "0.037500",
        "effective_cpc_override": "1.20"
      }
    ],
    "spend_to_date": "0.00"
  },
  "errors": []
}

Changes

No recorded changes to this operation across all 1 revision of this API.