Modify an assets name, provide a new list of assets or change configurations. You can not modify a campaign that has already been sent.
| 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). |
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"]]
}
| Param name | Description |
|---|---|
|
_token
required |
Validations:
|
|
name
optional |
New name of the campaign Validations:
|
|
config_ids
optional |
New list of configurations Validations:
|
|
targeted_asset_imeis
optional |
New list of imeis Validations:
|
|
asset_group_ids
optional |
New list of asset groups Validations:
|
|
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:
|
|
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:
|