From bd570000e11d340e957bcd52b009d7d4d3935f54 Mon Sep 17 00:00:00 2001 From: witzig Date: Thu, 6 Jul 2017 15:03:04 +0200 Subject: [PATCH] Added documentation for API endpoint /api/field/:listId This has accidentally been removed with PR #203. --- views/users/api.hbs | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/views/users/api.hbs b/views/users/api.hbs index 1a322032..5fed44e0 100644 --- a/views/users/api.hbs +++ b/views/users/api.hbs @@ -142,6 +142,45 @@
curl -XPOST {{serviceUrl}}api/delete/B16uVTdW?access_token={{accessToken}} \
 --data 'EMAIL=test@example.com'
+

POST /api/field/:listId – {{#translate}}Add new custom field{{/translate}}

+ +

+ {{#translate}}This API call creates a new custom field for a list.{{/translate}} +

+ +

+ GET {{#translate}}arguments{{/translate}} +

+ + +

+ POST {{#translate}}arguments{{/translate}} +

+ + +

+ {{#translate}}Example{{/translate}} +

+ +
curl -XPOST {{serviceUrl}}api/field/B16uVTdW?access_token={{accessToken}} \
+--data 'NAME=Birthday&TYPE=birthday-us&VISIBLE=yes'
+

GET /api/blacklist/get – {{#translate}}Get list of blacklisted emails{{/translate}}