Update custom mailing property for mailing with provided ID. This method does not create new property.
1 |
PUT https://api.maileon.com/1.0/mailings/:mailingid/settings/properties |
Attributes
Parameter | Default | Description |
---|---|---|
name | Name of custom property to update | |
value | New value for this property |
Response
HTTP status code | Description |
---|---|
200 OK |
If everything was ok. |
400 Bad request |
Property name or value not acceptable |
404 Not found |
Mailing ID cannot be found or property is not available |
409 Conflict |
Mailing is sealed and can not be changed |
Example
200 OK
1 2 |
PUT https://api.maileon.com/1.0/mailings/1234/settings/properties?name=prop_name&value=prop_value 200 |
400 Bad Request
1 2 |
PUT https://api.maileon.com/1.0/mailings/1234/settings/properties?name=prop_name&value={verylongvalueover255symbols} 400 |
404 Not Found
1 2 3 |
PUT https://api.maileon.com/1.0/mailings/3416/settings/properties?name=prop_name&value=prop_value 404 <error><message>Mailing with id 3416 not found.</message></error> |
409 Not Found
1 2 3 |
PUT https://api.maileon.com/1.0/mailings/3040/settings/properties?name=prop_name&value=prop_value 409 <error><message>Mailing with ID 3040 cannot be changed as it is sealed.</message></error> |