6 Replies Latest reply on Apr 26, 2018 10:32 PM by ankit17

    Getting bad request error while passing X-Jive-Run-As header in my dot net application

    ankit17

      Hi,

       

      I'm getting error while posting contents with the use of X-Jive-Run-As header. Please find below my JSON payload.

       

      {

        "type": "idea",

        "parent": "https://zsassociates-preview.jiveon.com/api/core/v3/places/1005",

        "visibility": "place",

        "categories": [

          AssetsandAccelerators

        ],

        "content": {

          "type": "text/html",

          "text": "<body><p>This is a test for Run-as feature</p><p><b>Practice Area: </b>Commercial Startegy & Transformation</p><p><b>Mention the name of Client or POD or Space you innovated with: </b>India Amgen Analytics</p><p><b>Are you willing to enhance this idea further?: </b>Yes</p></body>"

        },

        "subject": "TestRunAs",

        "tags": [

          "UI"

        ]

      }

       

      Also, please find attached images of my code where I'm passing "X-Jive-Run-As" header. I have attached both the images where I'm sending header value of email and username.

       

      I'm getting a 400: Bad request error while trying to pass this header.

       

      Also, please find below some more information regarding this JSON request.

      Jive URL: https://zsassociates-preview.jiveon.com/api/core/v3/contents

      Jive User: non-federated user (User has full system admin access)

       

      Any help would be appreciated.

       

      Thanks & Regards,

      Ankit Shrivastav

       

      Arun Bhosle umesh chape Vinay Padam Asif Hashmi