I am attempting to use the API(1.8 release) to POST a Schedule Event but running into a problem with the fromDt and toDt.
What is the format that is desired?
I have tried it as a Unix Timestamp, and in ISO Format 2017-03-28 08:00:00. Both of them return an error code.
I have been looking for a log with some type of information but coming up empty.
{
"error": {
"message": "Expecting a date in fromDt but received 2017-03-28 08:00:00.",
"code": 422,
"data": [
]
}
}
I finally got it to work correctly, I was simply testing with the bare minimum, ie REQUIRED fields that are outlined in the Swagger-UI documentation, I built a test using the data that Peter used (with today date) and it worked, after I added in the campaigId key.
campaignID is not noted as a required key, but when you think about it that data has to be there. On to more testing
Yeah it can be confusing, but it is like that because of the eventId.
if eventId is set to 1 then campaignId is required but
if eventId is set to 2 then commandId is required
there is also eventId 3 (overlay layout) then campaignId is also required.
Which means that campaignId and commandId need to be either both set as required (which is not quite correct, as you need one of them) or both set as not required.
We could improve the description of those two parameters, so it would be clearer, in any case, I’m glad it works for you now.