This topic describes some of the HTTP methods and URIs available in the Nintex Office 365 API. You will need to refer to the reference topic for each action to get more information about the additional headers and payloads required by the endpoints.
The following series of walkthroughs illustrate how to applies the HTTP method and URI reference information to your environment:
The walkthroughs use a RESTful client named Postman. You can find more information or download Postman from: https://www.getpostman.com.
The following tables provide an overview of some of the methods and actions for the API endpoints.
Action | HTTP Method | URI | Description |
---|---|---|---|
Export a workflow | GET | https://{APIbaseURL}/api/v1/workflows/packages/{workflowid} | Exports the specified workflow. |
Import into a new workflow | POST | https://{APIbaseURL}/api/v1/workflows/packages[?{migrate}][&{listTitle}] | Imports the contents of a Nintex Workflow for Office 365 export (.nwp) file into a new workflow. |
Import into an existing workflow | PUT | https://{APIbaseURL}/api/v1/workflows/packages/{id}[?{migrate}][&{listTitle}] | Imports the contents of a Nintex Workflow for Office 365 export (.nwp) file into the specified existing workflow. |
Save into a workflow | PUT | https://{APIbaseURL}/api/v1/workflows/{id} | Saves the contents of a Nintex Workflow for Office 365 export (.nwp) file into the specified existing workflow. |
Publish a workflow | POST | https://{baseURL}/api/v1/workflows/{id}/published | Publishes the specified workflow. |
Action | HTTP Method | URI | Description |
---|---|---|---|
Get Form | GET | https://{APIbaseURL}/api/v1/{forms/{listID} | Retrieves the definition of the Nintex form as either XML or NFP for the specified SharePoint list and content type. |
Import Form | POST | https://{APIbaseURL}/api/v1/forms/{listID} | Saves and publishes a Nintex form when posting a NFP file to the endpoint. |
Save Form | PUT | https://AP{APIbaseURL}/api/v1/forms/{listID} | Saves the form to a specified SharePoint list and return the URI that will publish the form. |
POST | https://{baseURL}/api/v1/forms/{listID}/publish | Publish a Nintex form that has been saved to a SharePoint list. | |
Delete Form | DELETE | https://{APIbaseURL}/api/v1/forms/{listID},{contenttypeId} | Delete a Nintex form from a SharePoint list. |
With an authorization header, API-Key, API base URL, and WorkflowID, you can retrieve the workflow from your site using the Nintex Office 365 API.
Export a workflow
The API Base URL is for the API. This is different than your tenant URL and you can construct your API Base URL by using your tenant name in the domain and changing sharepoint.com to nintexo365.com, for example yourtenant.sharepoint.com to yourtenant.nintexo365.com.
API-base URL: https://yourtenant.nintexo365.com
The endpoint: /api/v1/workflows/packages/
The identifier for your target, in this case the name of your target list: 46506f88-7643-40b4-8e7c-edb4c970a0a0
Assembled the parts are: https://yourtenant.nintexo365.com/api/v1/workflows/packages/46506f88-7643-40b4-8e7c-edb4c970a0a0
With the authorization header, API-Key, API base URL, and target list name, you can save the workflow to your site using the Nintex Office 365 API.
Save a workflow
With an authorization header, API-Key, API base URL, and ListID, you can retrieve the form from your site using the Nintex Office 365 API.
Export a form
API-base URL: https://yourtenant.nintexo365.com
The endpoint: /api/v1/forms/
The identifier for your target, in this case the List ID: 382BC9F4-BD27-4503-8847-9DB1C30E2062
Assembled the parts are: https://yourtenant.nintexo365.com/api/v1/forms/382BC9F4-BD27-4503-8847-9DB1C30E2062
With an authorization header, API-Key, API base URL, and ListID, you can retrieve the form from your site using the Nintex Office 365 API.
Export a form
API-base URL: https://yourtenant.nintexo365.com
The endpoint: /api/v1/forms/
The identifier for your target, in this case the workflow ID: 382BC9F4-BD27-4503-8847-9DB1C30E2062
Assembled the parts are: https://yourtenant.nintexo365.com/api/v1/forms/382BC9F4-BD27-4503-8847-9DB1C30E2062.
Back: Create your authentication token
Next: REST Resources