2 Replies Latest reply on Jul 11, 2013 4:12 PM by sonny.lau

    Purposeful Places - Updating an existing activity

      I'm trying to update an existing Activity stream item with some updated text for the body of the activity however it doesn't seem to accept my updated data, resulting in a 400 - Bad Request. I'm using jive.extstreams.pushActivity(steam, data) to update my data, is there something else I should be using?

       

      Aron Racho, Mark Weitzel?

        • Re: Purposeful Places - Updating an existing activity

          Sonny,

          Would post an example of the payload that you are pushing here? This will help us figure out why it's hurling.

            • Re: Re: Purposeful Places - Updating an existing activity

              It should look something like this.

               

              var data = {
                  activity: {
                      action: {},
                      actor: {
                          name: 'Sonny Lau',
                          email: 'sonny.lau@hedloc.com.au'
                      },
                      object: {
                          type: 'website',
                          url: 'https://hedloc.zendesk.com/tickets/1',
                          image: 'http://placehold.it/102x102',
                          title: '[UPDATED] #1 - My first ticket',
                          description: '<p>This is my first ticket.</p><p>Changes:<ul><li>...</li></ul></p>
                      },
                      externalID: 'zendesk-ticket-1'
                  }
              };
              

               

              Note that it seems to work correctly when it's creating new Activity Stream entries, just not when it's updating an existing entry.