Notes API

Publish an insight

POST /api/insights/publish

Parameters

Name Description
note_id Id of the Note being published

Request

Headers

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

Route

POST /api/insights/publish

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/"c58b562ccaa161fee66ce53c05ed28ee"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _session_id=VXVZQ2tMM0NXdkNldVJYQzYvWlRHbWZ1VnFIbEJUanNQYjh3c1d2UHNtNUFvVTVueTZyQ2xlTzVIZFQzdjVQMnpobytMOFdiNzJNKzBQak1Fd3hNRU1PWGtMcTBtSkJCOFAvczdOMEJVYmlEOGQwOVV1SnRTODlYK3JMZlZlcURucStWTjNZWDNXQXU4NlI0dFgyNnpYNjAyRnN1cTR3ZURGbGlMQldYdXlLMDRKNTU4OWRXUFdtRVUxd3YrMEJWRFA5bEZPbmQ1NGtEWlpzV2N6QjdpQnVLYTlVQWFLeW83ZksxcldoWW1QbkplRG93aVY5SmxtR0tuNnhSM0FwYlc2S1dmZ1QvWTNWVkpqZEZQS0JjM0tKUTZmd1VIbVFBdGxBQ05jZC9wekRUU2lNek9seWZOb2ZNYUhqaStzM20yNTgrdlNpYjBURkdqYmw1STVwWHZiay9BOXUrRFVEQTQvVlllSDE0dEtDYWNNYnNxanlMV3V0S3lmMEZVWVEwam9xV2NGUTFPcGdPYk5DczFVMnNwV2NyUzZ0UVVZWHhqNENQbmxLRE85MWwySEtCNmxhYXZIblFUUWgwdVIxMy0tWkpjRHU5MW4zRkxDZ3dRSGtuOVRkQT09--96280d63cf3a6bd4c8e99de6badaa8273c5fdf97; path=/; HttpOnly
X-Request-Id: 73fcee16-6f49-4b55-b2fb-e235ec833890
X-Runtime: 0.118636
Content-Length: 2584

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": true,
    "complete_json": true
  }
}