Subscriptions
Subscriptions are a declaration of interest in a particular resource, allowing a user to receive notifications when certain events occur. The events that trigger notifications are controlled by the type of subscription.
Objects
Subscription
| Path | JSON Type | Format | Description |
|---|---|---|---|
id |
string |
Version 4 UUID | The subscription ID |
created |
string |
ISO 8601 timestamp | The instant the subscription was created at |
lastModified |
string |
ISO 8601 timestamp | The instant the subscription was last modified at |
type |
string |
Subscription Type | The type of subscription |
{
"id" : "1a54c46f-72da-4756-a344-f5a6b18e3884",
"created" : "2025-12-15T18:48:02.485222",
"lastModified" : "2025-12-15T18:48:02.485222",
"type" : "ALL",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/6e7a065f-badb-4669-812e-2efe86382088"
}
}
}
Formats
Subscription Type
string
| Value | Description |
|---|---|
ALL |
Triggers notifications for all resource events |
ALERTS |
Triggers notifications for resource alert events only |
NONE |
Does not trigger any notifications |
Requests
- View all subscriptions
- View all member subscriptions to a workspace
- View a subscription
- Subscribe to a workspace
- Subscribe to a channel
- Subscribe to a dataset
- Subscribe to a pipeline
- Update a subscription
- Remove a subscription
View all subscriptions
GET
/api/subscriptions
Returns all subscriptions for the authenticated user profile.
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/subscriptions' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/subscriptions"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription collection with HAL links.
{
"_embedded" : {
"subscriptions" : [ {
"id" : "1a54c46f-72da-4756-a344-f5a6b18e3884",
"created" : "2025-12-15T18:48:02.485222",
"lastModified" : "2025-12-15T18:48:02.588811",
"type" : "ALERTS",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/6e7a065f-badb-4669-812e-2efe86382088"
}
}
}, {
"id" : "3ed8cc21-6c82-4e92-b334-a87e375e8c43",
"created" : "2025-12-15T18:48:02.769525",
"lastModified" : "2025-12-15T18:48:02.769525",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"dataset" : {
"id" : "8dff3897-98f6-4427-8ba4-c62b972a7741",
"published" : "2025-12-15T18:47:57.191502",
"alias" : "simple-bar-chart",
"workspaceId" : "4b3d5512-acd1-4205-bc22-8d3b08dfc130",
"source" : "matatika-limited",
"title" : "How many people have visited our website?",
"description" : "# Some Markdown\n- point 1\n- point 2\n- point 3\n",
"questions" : "[''This is my question'', ''this is second question'']",
"visualisation" : "{\"google-chart\": {\"chartType\": \"BarChart\",\"options\": {\"title\": \"Website visitors\"}}}",
"query" : "SELECT to_char(date(report_date),'YYYYMM') as year_month, SUM(sessions) \n FROM\n \"google_analytics_website_overview\"\n WHERE\n \"google_analytics_website_overview\".\"report_date\" >= DATE(NOW()) - INTERVAL '365 DAY'\n GROUP BY year_month\n ORDER BY year_month ASC;",
"likeCount" : 0,
"likedByProfiles" : [ ],
"commentCount" : 0,
"viewCount" : 0,
"created" : "2025-12-15T18:47:57.191501",
"score" : 1.0
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/3ed8cc21-6c82-4e92-b334-a87e375e8c43"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3ed8cc21-6c82-4e92-b334-a87e375e8c43",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3ed8cc21-6c82-4e92-b334-a87e375e8c43",
"type" : "PUT"
},
"dataset" : {
"href" : "https://app.matatika.com/api/datasets/8dff3897-98f6-4427-8ba4-c62b972a7741"
}
}
}, {
"id" : "d5b55486-99e0-4f54-adb6-cb02b986965c",
"created" : "2025-12-15T18:48:08.328487",
"lastModified" : "2025-12-15T18:48:08.328488",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"pipeline" : {
"id" : "68655adb-f3d8-4de8-808d-16e387921fc3",
"label" : "SIT-generated-pipeline",
"name" : "sit-generated-pipeline",
"lastModified" : "2025-12-15T18:48:03.045335"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/d5b55486-99e0-4f54-adb6-cb02b986965c"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/d5b55486-99e0-4f54-adb6-cb02b986965c",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/d5b55486-99e0-4f54-adb6-cb02b986965c",
"type" : "PUT"
},
"pipeline" : {
"href" : "https://app.matatika.com/api/pipelines/68655adb-f3d8-4de8-808d-16e387921fc3"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions?page=0&size=20"
}
},
"page" : {
"size" : 20,
"totalElements" : 3,
"totalPages" : 1,
"number" : 0
}
}
View all member subscriptions to a workspace
GET
/api/workspaces/{workspace-id}/members/subscriptions
Returns all member subscriptions to the workspace {workspace-id}.
Prerequisites
- Workspace
{workspace-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/4b3d5512-acd1-4205-bc22-8d3b08dfc130/members/subscriptions' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/workspaces/4b3d5512-acd1-4205-bc22-8d3b08dfc130/members/subscriptions"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription collection with HAL links.
{
"_embedded" : {
"subscriptions" : [ {
"id" : "c6006454-711f-4328-b401-458952d34376",
"created" : "2025-12-15T18:48:08.487542",
"lastModified" : "2025-12-15T18:48:08.487543",
"type" : "ALL",
"_embedded" : {
"subscriberWorkspace" : {
"id" : "4b3d5512-acd1-4205-bc22-8d3b08dfc130",
"name" : "Test Workspace [2025-12-15T18:47:56.838696907]"
},
"workspace" : {
"id" : "4b3d5512-acd1-4205-bc22-8d3b08dfc130",
"name" : "Test Workspace [2025-12-15T18:47:56.838696907]"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/c6006454-711f-4328-b401-458952d34376"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/c6006454-711f-4328-b401-458952d34376",
"type" : "PUT"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/c6006454-711f-4328-b401-458952d34376",
"type" : "DELETE"
},
"workspace" : {
"href" : "https://app.matatika.com/api/workspaces/4b3d5512-acd1-4205-bc22-8d3b08dfc130"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/workspaces/4b3d5512-acd1-4205-bc22-8d3b08dfc130/members/subscriptions?page=0&size=20"
}
},
"page" : {
"size" : 20,
"totalElements" : 1,
"totalPages" : 1,
"number" : 0
}
}
View a subscription
GET
/api/subscriptions/{subscription-id}
Returns the subscription {subscription-id}.
Prerequisites
- Subscription
{subscription-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "1a54c46f-72da-4756-a344-f5a6b18e3884",
"created" : "2025-12-15T18:48:02.485222",
"lastModified" : "2025-12-15T18:48:02.485222",
"type" : "ALL",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/6e7a065f-badb-4669-812e-2efe86382088"
}
}
}
Subscribe to a workspace
POST
/api/workspaces/{workspace-id}/subscriptions
Subscribes the authenticated user profile to the workspace {workspace-id}.
By default, the subscription is configured for all workspace events (see Subscription Type for more information).
Prerequisites
- Workspace
{workspace-id}must exist
Request
Query Parameters
| Parameter | Required | Format | Default Value | Description |
|---|---|---|---|---|
allMembers |
No | Boolean | false |
Whether or not to subscribe the workspace to workspace events, in order to enable workspace-wide notifications for all members by default (applicable for the workspace owner only) |
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/workspaces/4b3d5512-acd1-4205-bc22-8d3b08dfc130/subscriptions?allMembers=true' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/workspaces/4b3d5512-acd1-4205-bc22-8d3b08dfc130/subscriptions?allMembers=true"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "c6006454-711f-4328-b401-458952d34376",
"created" : "2025-12-15T18:48:08.487541656",
"lastModified" : "2025-12-15T18:48:08.487542956",
"type" : "ALL",
"_embedded" : {
"subscriberWorkspace" : {
"id" : "4b3d5512-acd1-4205-bc22-8d3b08dfc130",
"name" : "Test Workspace [2025-12-15T18:47:56.838696907]"
},
"workspace" : {
"id" : "4b3d5512-acd1-4205-bc22-8d3b08dfc130",
"name" : "Test Workspace [2025-12-15T18:47:56.838696907]"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/c6006454-711f-4328-b401-458952d34376"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/c6006454-711f-4328-b401-458952d34376",
"type" : "PUT"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/c6006454-711f-4328-b401-458952d34376",
"type" : "DELETE"
},
"workspace" : {
"href" : "https://app.matatika.com/api/workspaces/4b3d5512-acd1-4205-bc22-8d3b08dfc130"
}
}
}
Subscribe to a channel
POST
/api/channels/{channel-id}/subscriptions
Subscribes the authenticated user profile to the channel {channel-id}.
By default, the subscription is configured for all channel events (see Subscription Type for more information).
Prerequisites
- Channel
{channel-id}must exist
Request
Query Parameters
| Parameter | Required | Format | Default Value | Description |
|---|---|---|---|---|
allMembers |
No | Boolean | false |
Whether or not to subscribe the workspace to channel events, enabling notifications for all members by default (applicable for the workspace owner only) |
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/channels/6e7a065f-badb-4669-812e-2efe86382088/subscriptions' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/channels/6e7a065f-badb-4669-812e-2efe86382088/subscriptions"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "1a54c46f-72da-4756-a344-f5a6b18e3884",
"created" : "2025-12-15T18:48:02.485221682",
"lastModified" : "2025-12-15T18:48:02.485222082",
"type" : "ALL",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/6e7a065f-badb-4669-812e-2efe86382088"
}
}
}
Subscribe to a dataset
POST
/api/datasets/{dataset-id}/subscriptions
Subscribes the authenticated user profile to the dataset {dataset-id}.
By default, the subscription is configured for all dataset events (see Subscription Type for more information).
Prerequisites
- Dataset
{dataset-id}must exist
Request
Query Parameters
| Parameter | Required | Format | Default Value | Description |
|---|---|---|---|---|
allMembers |
No | Boolean | false |
Whether or not to subscribe the workspace to dataset events, enabling notifications for all members by default (applicable for the workspace owner only) |
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/8dff3897-98f6-4427-8ba4-c62b972a7741/subscriptions' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/8dff3897-98f6-4427-8ba4-c62b972a7741/subscriptions"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "3ed8cc21-6c82-4e92-b334-a87e375e8c43",
"created" : "2025-12-15T18:48:02.769524578",
"lastModified" : "2025-12-15T18:48:02.769525078",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"dataset" : {
"id" : "8dff3897-98f6-4427-8ba4-c62b972a7741",
"published" : "2025-12-15T18:47:57.191502",
"alias" : "simple-bar-chart",
"workspaceId" : "4b3d5512-acd1-4205-bc22-8d3b08dfc130",
"source" : "matatika-limited",
"title" : "How many people have visited our website?",
"description" : "# Some Markdown\n- point 1\n- point 2\n- point 3\n",
"questions" : "[''This is my question'', ''this is second question'']",
"visualisation" : "{\"google-chart\": {\"chartType\": \"BarChart\",\"options\": {\"title\": \"Website visitors\"}}}",
"query" : "SELECT to_char(date(report_date),'YYYYMM') as year_month, SUM(sessions) \n FROM\n \"google_analytics_website_overview\"\n WHERE\n \"google_analytics_website_overview\".\"report_date\" >= DATE(NOW()) - INTERVAL '365 DAY'\n GROUP BY year_month\n ORDER BY year_month ASC;",
"likeCount" : 0,
"likedByProfiles" : [ ],
"commentCount" : 0,
"viewCount" : 0,
"created" : "2025-12-15T18:47:57.191501",
"score" : 1.0
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/3ed8cc21-6c82-4e92-b334-a87e375e8c43"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3ed8cc21-6c82-4e92-b334-a87e375e8c43",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/3ed8cc21-6c82-4e92-b334-a87e375e8c43",
"type" : "PUT"
},
"dataset" : {
"href" : "https://app.matatika.com/api/datasets/8dff3897-98f6-4427-8ba4-c62b972a7741"
}
}
}
Subscribe to a pipeline
POST
/api/pipelines/{pipeline-id}/subscriptions
Subscribes the authenticated user profile to the pipeline {pipeline-id}.
By default, the subscription is configured for all pipeline events (see Subscription Type for more information).
Prerequisites
- Pipeline
{pipeline-id}must exist
Request
Query Parameters
| Parameter | Required | Format | Default Value | Description |
|---|---|---|---|---|
allMembers |
No | Boolean | false |
Whether or not to subscribe the workspace to pipeline events, enabling notifications for all members by default (applicable for the workspace owner only) |
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/pipelines/68655adb-f3d8-4de8-808d-16e387921fc3/subscriptions' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/pipelines/68655adb-f3d8-4de8-808d-16e387921fc3/subscriptions"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "d5b55486-99e0-4f54-adb6-cb02b986965c",
"created" : "2025-12-15T18:48:08.328487427",
"lastModified" : "2025-12-15T18:48:08.328488027",
"type" : "ALL",
"_embedded" : {
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"pipeline" : {
"id" : "68655adb-f3d8-4de8-808d-16e387921fc3",
"label" : "SIT-generated-pipeline",
"name" : "sit-generated-pipeline",
"lastModified" : "2025-12-15T18:48:03.045335"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/d5b55486-99e0-4f54-adb6-cb02b986965c"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/d5b55486-99e0-4f54-adb6-cb02b986965c",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/d5b55486-99e0-4f54-adb6-cb02b986965c",
"type" : "PUT"
},
"pipeline" : {
"href" : "https://app.matatika.com/api/pipelines/68655adb-f3d8-4de8-808d-16e387921fc3"
}
}
}
Update a subscription
PUT
/api/subscriptions/{subscription-id}
Updates the subscription {subscription-id}.
Prerequisites
- Subscription
{subscription-id}must exist
Request
Body
| Path | JSON Type | Format | Description |
|---|---|---|---|
type |
string |
Subscription Type | The type of subscription |
{
"type" : "ALERTS"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"type" : "ALERTS"
}'
Python (requests)
import requests
url = "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884"
data = {
"type" : "ALERTS"
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
200 OK
Subscription with HAL links.
{
"id" : "1a54c46f-72da-4756-a344-f5a6b18e3884",
"created" : "2025-12-15T18:48:02.485222",
"lastModified" : "2025-12-15T18:48:02.588810968",
"type" : "ALERTS",
"_embedded" : {
"channel" : {
"name" : "matatika-limited",
"description" : "Matatika Limited",
"picture" : "https://cdn.auth0.com/avatars/ml.png?ssl=1"
},
"subscriberProfile" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
}
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884"
},
"delete subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884",
"type" : "DELETE"
},
"update subscription" : {
"href" : "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884",
"type" : "PUT"
},
"channel" : {
"href" : "https://app.matatika.com/api/channels/6e7a065f-badb-4669-812e-2efe86382088"
}
}
}
Remove a subscription
DELETE
/api/subscriptions/{subscription-id}
Removes the subscription {subscription-id}.
Prerequisites
- Subscription
{subscription-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884' -i -X DELETE
Python (requests)
import requests
url = "https://app.matatika.com/api/subscriptions/1a54c46f-72da-4756-a344-f5a6b18e3884"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.