The key 'expiry' is not allowed in this context

HI Team,

"Expiry" key not working for android Json. I am using below json for api calling :


JSON for POST Request :


"screenName": "Test",

"alert":"Updated : TestActivity",



Response : Please see the below error response .

"ok": false,
"error": "Could not parse request body.",
"error_code": 40000,
"details": {
"error": "The key 'expiry' is not allowed in this context",
"path": "",
"location": {
"line": 21,
"column": 16
"operation_id": "39adb731-aa1d-4e18-ac4c-1da617a0c58a"


Didn't find what you were looking for?

New post


1 comment

  • Hi Om,

    This is Sean with Urban Airship Technical Support.

    The expiry key needs to be included as part of the 'options' object in the payload.

    Please let me know if you have any other questions or concerns.

    Thank you,
    Sean Conlin
    Urban Airship Technical Support
    Portland, Oregon


    Comment actions Permalink

Please sign in to leave a comment.