How to Create Document Using Jive Rest API Call in PHP

Jive software provide the facility to collaborate and communicate employees, customers and partners to work together. In this post we explain how to create a document in Jive software using jive rest api in PHP. So you automate the jive document creation process based on any trigger.

For this api call first you need to authenticate jive rest api and getting access token. Authentication process explain in my previous post How to Authenticate Jive Rest API Using Add On.

After jive authentication we can call create document api call.

Pass this document parameter in php curl code for creating a document.

Now using below php curl code to execute this jive api call. Pass access token in header as bearer type and use POST method with json object parameter.

You can also follow the jive software documentation for detailed parameter and any other jive api mathod.

This document is created as an jive account author. You can also create a document as another jive author. For this you need Full Admin access with production account.

By default this feature is disable. You have to enable it by using the jive.api.run_as.strategies property in the Admin Console > System > Management > System Properties.

After this you can use X-Jive-Run-As [INSERT VALUE Email, Username and User id HERE] in header php curl code. This will create a document as other author in your jive software.

Leave a Comment