core.schedule.add usage

  • 1
  • Problem
  • Updated 3 years ago
  • In Progress
Hello,

I am trying to use the API core.schedule.add. However I am getting some errors with the following fields:



companyId: "XXXX"
data: 
-          name: "schedule-YYYY"
          
-          distribution: ["NDPA5QXXXX"]
-          content: ...json


[    {
        "name": "name-ZZZ",
        "type": "presentation",
        "objectReference": "PRESENTATION_ID"
    }
]

And content contains a json with objectReference to my presentation ID

NDPA5QXXXX is the id of my display as defined in the rise vision app
It is visible as: http://rva.risevision.com/#/DISPLAY_MANAGE/id=NDPA5QXXXX?cid=<...snip...>

Am I using the API correct? As I am getting the error: "message" : "Schedule content is invalid.",
Because this is what I make from: https://help.risevision.com/developer/core-api/schedule/core.schedule.add

Kind regards,
Photo of Robbert Lambrechts

Robbert Lambrechts

  • 110 Points 100 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Alexey

Alexey, Employee

  • 550 Points 500 badge 2x thumb
Robert,

Could you please provide the complete call parameters?

Please feel free to change the IDs, but in order to help you we need to see everything you pass in the call without omissions.

Regards,
Alexey
Photo of Robbert Lambrechts

Robbert Lambrechts

  • 110 Points 100 badge 2x thumb
This is all data I am sending:

{    data={
        name=schedule5c469d9d-2822-4c9b-ba71-91927XXXXX,
        content=[
            {
                "name": "schedule5c469d9d-2822-4c9b-ba71-91927XXXX",
                "type": "presentation",
                "objectReference": "5c469d9d-2822-4c9b-ba71-91927XXXXX"
            }
        ],
        distribution=[
            "NDPA5QXXXXXX"
        ]
    }
}
Photo of Alexey

Alexey, Employee

  • 550 Points 500 badge 2x thumb
Robert,

The following works if NDPA5QXXXXXX is replaced with a valid display ID:

{
"data":
{
"name": "schedule5c469d9d-2822-4c9b-ba71-91927XXXXX",
"content":[
{
"name": "schedule5c469d9d-2822-4c9b-ba71-91927XXXX",
"type": "presentation",
"objectReference": "5c469d9d-2822-4c9b-ba71-91927XXXXX"
}
],
distribution:[
"NDPA5QXXXXXX"
]
}
}

Please be sure to replace "=" with ":" in your JSON and also ensure that the display ID is valid.

Please let me know if you are still experiencing any issues after you make this change.

Regards,
Alexey