Modify an assets name, provide a new list of assets or change configurations. You can not modify a campaign that has already been sent.

Supported Formats

json

Errors

Code Description
400 Various errors: the specific error is provided in the message field of the response
401 Token is invalid
401 You must authenticate to perform this request.
404 The requested resource was not found.
411 If this error occurs, either provide the `Content-type: 0` header or provide an empty data field (`{}` for example).

Examples

PUT '/api/v2/campaigns/272' -d {
   "name" : "test campaign renamed"
 } :
 {
   "id":272,
   "name":"test campaign renamed",
   "created_at":"April 28, 2014 15:37",
   "status":"Pending",
   "asset_configuration_list":[414, 413],
   "targeted_asset_count":2,
   "targeted_assets":["357322044471026", "359858033385302"],
   "asset_group_count":0,
   "asset_group_ids":[],
   "warnings":["The following assets are not compatible with the campaign's configurations : ",["357322044471026"]]
 } 

Params

Param name Description
_token
required

Validations:

  • Must be a String

name
optional

New name of the campaign

Validations:

  • Must be a String

config_ids
optional

New list of configurations

Validations:

  • Must be an array of any type

targeted_asset_imeis
optional

New list of imeis

Validations:

  • Must be an array of any type

asset_group_ids
optional

New list of asset groups

Validations:

  • Must be an array of any type

ignore_last_campaign
optional

Ignore all campaigns in progress for each asset (switch the status to ‘fail’ and never apply the configuration associated with the previous campaign), use with caution

Validations:

  • Must be one of: true, false.

force_update
optional

if true, Munic Manager will not wait until the devices reconnect to the cloud to send the campaign (same function as the update button on the asset page)

Validations:

  • Must be one of: true, false.