News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
{"status":"error","message":"Your request was accepted, however a post was not generated","error":"Invalid Custom payload: no supported fields","validation":[]}%
Tags: webhooks
Sep 17, 2023 at 9:00pm   •   2 replies  •  0 likes
Dilip Mishra

I am tring to use incoming webhook for spotinst however when i try to test my team channel via curl :

curl -H 'Content-Type: application/json' -d "{\"text\":\"testing\"}" my-incoming-webhook-url I get

{"status":"OK"}%


And also I get the testing in in my group but when we try the real message which is send by spotinst i get error for ex.

curl -X POST -H "Content-Type: application/json" -d '{

"subject": "spotinst:notification",

"message": "{\"accountId\":\"act-account-id\",\"resourceId\":\"smi-smi-id\",\"organizationName\":\" organization.\",\"trigger_policies\":\"[spot-Instance Launch Issues]\",\"accountName\":\"account name\",\"resourceName\":\"resourcename\",\"title\":\"Stateful Resume Completed\",\"message\":\"Stateful resume action completed successfully. Instance Id: instanceid. Instance Type : c5.4xlarge. Lifecycle: SPOT.\"}"

}' my-incoming-webhook-url

ERROR:


{"status":"error","message":"Your request was accepted, however a post was not generated","error":"Invalid Custom payload: no supported fields","validation":[]}%



2 Answers
answered on Sep 18, 2023 at 9:45pm  

Hi Phong Vu !!

Actually the logs are send in the same syntax as I mention above by Spotinst with whom we have tie up to manage our spot servers , their json format is supported by other glip channels like slack etc but not by RC.


 0
on Sep 19, 2023 at 9:12am   •  0 likes

You have to convert it to the RingCentral Team Messaging (GLIP) syntax.

What do you mean ". by other Glip channels like Slack"? Glip is Glip and Slack is Slack.

answered on Sep 18, 2023 at 7:31am  

Where did you learn the syntax {"subject": "..."...}?

Here is the example of valid json keys

{
  "activity": "Force Alerts",
  "iconUri": "https://example.com/force.png",
  "title": "1 force alert",
  "text": "Be mindful of the force"
} 

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us