Create

Create a campaign (also called sub-project)

Create

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areacampaigns.json
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
ActionYesThe action to performaction=create
InputYesJSON stringSee below
JSON InputMandatoryDescriptionExamples
CompanyYesCampaign company"campaignCompany":1
Campaign nameYesCampaign name"campaignName": "Client project campaing 2025"
Client CodeNoClient code. Only pass a client code if you want the new campaign to be associated with a client"campaignClientCode":"43/ANIM4"
Project NoNoProject number"campaignProjectNo":617

Example request (OAuth 2.0):

creating campaing with a client & project
Authorization: Bearer <access_token>
https://<SERVER>/jsonapi/campaigns.json?version=6&&action=create&input={
  "data": [
    {
      "campaignName": "Client project campaing 2025",
      "campaignCompany": 1,
      "campaignClientCode": "43/ANIM4",
      "campaignProjectNo": 617

    }
  ]
}

Example request (legacy username/password):

https://<SERVER>/jsonapi/campaigns.json?version=6&&action=create&input={
  "data": [
    {
      "campaignName": "Client project campaing 2025",
      "campaignCompany": 1,
      "campaignClientCode": "43/ANIM4",
      "campaignProjectNo": 617

    }
  ]
}&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true,
  "synversion": "15.000.0017",
  "synapiversion": 6,
  "data": [
    {
      "campaignUuid": "13B75CD3006D53409543A5BFFB4DA067",
      "campaignNo": 431,
      "campaignTimeStampModified": 1753726201,
      "campaignRecordVersionNumber": 0
    }
  ]
}