Notes API

Unpublish an insight

POST /api/insights/unpublish

Parameters

Name Description
note_id Id of the Note being unpublished

Request

Headers

Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: _session_id=anRLWVBoYVljNTNWMklXR29JcVBHU240TEZNek1xV0NRbnQ1UnV4Mnl2dm1EVlhTMjBBbzNlVytHbG9VU0NGUlMxU040VnBMbGtNdjVxMmxzdGgvRVJ0VyttWk9pY3hqam1aYlFTMlVTZExocFJCZXF4R2NhK2pPNDFvd1pxbjJEWDUrejF5N2FPZjhCQyswVFMwdm5LR3dQdHVZSWI0ZEl4bDkwNCs1Y0xVKzFuRVBzMko5L1hCM2VycWRiNVg5WTdReXZWVVQvK0lvWlFjNjErZXFLN0hCWnF2b2hjTWszVHFtTitjeHZSekgzckEzTzJlaFJDb08rZFdtelBIYTBHTnUzVFdPaExkTjdLTldLZEhENEp6Smp3NWVsVnRtdmhCcWcvRTd3ZjZTYTVsbEZNbnByamFibHZ5Y1doQ3JtNXo2Q21DaitZVFRlUTRjanFJVWRoRWpPbFlFbmsrc1dvMytOUnZjMVlWK2RCNmdZTW5jcGdBZlM3dUNOV2xRam1SYzM0ZXlUTkUyb3JXTFZzZzcwYTQ0dkdtN29uaUxyNWVmc2FXcjRrbz0tLUw4dllLVTVJYWxLTGJZWHJGcTNsQmc9PQ%3D%3D--3fe534d63d16624bde221764e517b9f45ba69d41

Route

POST /api/insights/unpublish

Body

1
 
note_id=1000058

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"d9ac89c341962eb36c7e80aaca013b72"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _session_id=anZxSE95b1NYamErNE5Na1hVNk5LOWUxdFNjTGVoOXpLVE5OWDNISkhDMFRJY1F4SThRbDg4R0UyM1hLcGVoTG5zU3F6dzFEcm13ejJoRm8rdDYvT3NCN1NYOTNtZGVhR0J4MzU5K2ZoR0U3bWE5VUtxQk5vQVArRVJ1ajh2TWY3bXJGWHRRSDlHemtoSzFiVkwvVUFNdmZMWFl5cTludXNtdVBJR2pwRmJzelZPa0loL3d6UTNsOHhobkcxTzRtZ2ZIdkQ1aWsreVlLbHR1WXp5WG5nNjRBYVZzdTkvK21zaXZsNlRuRmdTYkdRZUNZWCs1VmNyUHVOSGROQmJIQVZZdTZYZ2doVzFRZGI2MnRHNnpCZlRUQjduRmx0K0o5TWtkOW5BVkljY1lQMlVlcW5QeHc1bURGOElnYUNKL2l6QS9rT0hsUHFMNkF1NlcvNExSSVFLR01QNnBwMHlza2tNMnZ1azQ3Vy84WTRnRmliUUhreHd5OWtjZHA2d05jYnZNWnRyQlBGaUtaL3dTRys0bm5uRFpST3VNZml5b0FuTHFzZHEra0JiSmJRdzA1S0ViOXl0eDFZUlo1cVZnZy0tUXFCdUs1MW9CcWQzLzVlbDlZVTgxUT09--d11c1149f71b54daddec4dd5471fe01bc03b72ca; path=/; HttpOnly
X-Request-Id: 5fbdff07-2c27-4957-b199-e756d0253f42
X-Runtime: 0.121535
Content-Length: 2585

Status

201 Created

Body

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
 
{
  "response": {
    "id": 1000058,
    "actor": {
      "id": 1000006,
      "username": "owner",
      "first_name": "searchquery",
      "last_name": "User_1",
      "image": {
        "original": "/paperclip/users/images/001/000/006/original/User.png?1554329366",
        "icon": "/paperclip/users/images/001/000/006/icon/User.png?1554329366",
        "entity_type": "image",
        "complete_json": true
      },
      "is_deleted": null,
      "auth_method": "internal",
      "ldap_group_id": null,
      "user_type": "analytics_developer",
      "entity_type": "user",
      "using_default_image": false,
      "active_license": true,
      "is_siteadmin": false,
      "roles": [
        "data_admin"
      ]
    },
    "action": "NOTE",
    "timestamp": "2019-04-03T22:09:44Z",
    "workspace": {
      "id": 1000008,
      "name": "Public",
      "is_deleted": null,
      "entity_type": "workspace",
      "archived": false,
      "public": true,
      "archived_at": null,
      "summary": "searchquery",
      "permission": [
        "admin",
        "create_workflow"
      ],
      "datasets_count": 11,
      "members_count": 2,
      "workfiles_count": 17,
      "insights_count": 2,
      "recent_insights_count": 2,
      "recent_comments_count": 9,
      "has_recent_comments": true,
      "has_milestones": true,
      "workspace_stage": {
        "default": true,
        "id": 1000000,
        "name": "Define",
        "position": 0,
        "description_long": "Define the essential components of the project.",
        "description_short": "Define the two essential components of a machine learning project. What business problem are we solving? How should the solution change the way our business operates? Locate or acquire all necessary data.",
        "complete_json": true
      },
      "workspace_stage_id": 1000000
    },
    "body": "Come see my awesome workspace!",
    "action_type": "NoteOnWorkspace",
    "attachments": [
      {
        "id": 1000004,
        "name": "searchquery_workspace",
        "timestamp": "2019-04-03T22:09:49Z",
        "icon_url": null,
        "content_url": null,
        "entity_type": "attachment",
        "type": "",
        "workspace": {
          "id": 1000008,
          "name": "Public",
          "is_deleted": null,
          "entity_type": "workspace",
          "archived": false,
          "public": true,
          "archived_at": null,
          "summary": "searchquery",
          "permission": [
            "admin",
            "create_workflow"
          ],
          "datasets_count": 11,
          "members_count": 2,
          "workfiles_count": 17,
          "insights_count": 2,
          "recent_insights_count": 2,
          "recent_comments_count": 9,
          "has_recent_comments": true,
          "has_milestones": true,
          "workspace_stage": {
            "default": true,
            "id": 1000000,
            "name": "Define",
            "position": 0,
            "description_long": "Define the essential components of the project.",
            "description_short": "Define the two essential components of a machine learning project. What business problem are we solving? How should the solution change the way our business operates? Locate or acquire all necessary data.",
            "complete_json": true
          },
          "workspace_stage_id": 1000000
        },
        "complete_json": true
      }
    ],
    "comments": [],
    "is_insight": true,
    "promoted_by": null,
    "promotion_time": "2019-04-03T22:10:26Z",
    "is_published": false,
    "complete_json": true
  }
}