Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Create Campaign? #133

Open
doanac opened this issue Aug 1, 2019 · 4 comments
Open

How To Create Campaign? #133

doanac opened this issue Aug 1, 2019 · 4 comments

Comments

@doanac
Copy link

doanac commented Aug 1, 2019

I'm running an OTA Connect deployment based off OTA Community Edition and am having troubles creating a campaign. The problem occurs when I go through the web interface and am presented with the "Select update" dialog. That dialog sends a request to the server:

 GET  updates?limit=5&offset=0&groupId=a64e49c9-2480-4f0f-a8e5-631e4b981fd9

The campaigner returns a 500 error. The error dialog then says:

No updates found. Create some updates first.

If you’re working with a customized version of OTA Connect, contact your administrator.They might need to map your updates to your devices first.

Is there something special I step I need to perform to "map" this? I've tried this with a few different versions of the campaigner:

  • advancedtelematic/campaigner:0.4.1-14-g3ac23b1
  • advancedtelematic/campaigner:0.4.0-52-gc73b57b
  • advancedtelematic/campaigner:0.4.0-37-g4636696
@doanac
Copy link
Author

doanac commented Aug 5, 2019

I was able to create a campaign using the REST API, so maybe I'm running the wrong version of the web application?

FYI - here's the payload I used to create a campaign:

{
  "name": "Done FROM CURL",
  "update": "86b80fde-70b1-4b94-aa4f-722b747fdbe4",
  "groups": [
    "737e91b8-0cb2-4601-a44b-7a749ecddb83"
  ],
  "approvalNeeded": false
}

@ddunlap2005
Copy link

@doanac Was your issue resolved? I have the same issue with later versions of the images.

@doanac
Copy link
Author

doanac commented Jun 3, 2020

I never checked again, but as far as I know the REST API is the only way I can do it.

@zwe-hub
Copy link

zwe-hub commented Feb 8, 2022

I was able to create a campaign using the REST API, so maybe I'm running the wrong version of the web application?

FYI - here's the payload I used to create a campaign:

{
  "name": "Done FROM CURL",
  "update": "86b80fde-70b1-4b94-aa4f-722b747fdbe4",
  "groups": [
    "737e91b8-0cb2-4601-a44b-7a749ecddb83"
  ],
  "approvalNeeded": false
}

Hi, any idea where I could find the REST API documentation? The link in ReadMe doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants