From 45960a9a1ad793a11b87758dd13e7fe627534893 Mon Sep 17 00:00:00 2001
From: varshith89 <vinu@compucorp.co.uk>
Date: Fri, 20 Apr 2018 08:04:51 +0000
Subject: [PATCH] Update Doc For New API Action 'getunique'

---
 docs/api/actions.md | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/docs/api/actions.md b/docs/api/actions.md
index 74a050f2..b2cc49d3 100644
--- a/docs/api/actions.md
+++ b/docs/api/actions.md
@@ -74,6 +74,31 @@ Replace an old set of records with a new or modified set of records.
 Warning - REPLACE includes an implicit delete - use with care & test well
 before using in productions
 
+## getunique
+
+Returns all unique fields (other than 'id' field) for a given entity.
+```php
+civicrm_api3('Contribution', 'getunique');
+```
+
+return 
+
+```php
+{
+    "is_error": 0,
+    "version": 3,
+    "count": 2,
+    "values": {
+        "UI_contrib_trxn_id": [
+            "trxn_id"
+        ],
+        "UI_contrib_invoice_id": [
+            "invoice_id"
+        ]
+    }
+}
+```
+
 ## <del>setvalue</del>
 
 **Deprecated.** Use the create action with the param 'id' instead.
-- 
GitLab