This schema is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
A subscription group represents a collection of subscriptions.
Type of object is always subscriptionGroup.
subscriptionGroup Unique identifier for the subscription group.
"sgr_0SNlurA049MEWV26leJMWPp4o23C"List of subscription identifiers that belong to this group.
Time when the subscription group was created.
"2021-01-21T19:32:13Z"{
"object": "subscriptionGroup",
"id": "sgr_0SNlurA049MEWV26leJMWPp4o23C",
"subscriptions": [
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"
],
"createdAt": "2021-01-21T19:32:13.0Z"
}
Returns a list of subscription groups. The subscription groups returned are sorted by creation date, with the most recently created subscription groups appearing first.
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
A comma-separated list of subscriptions by which to filter the subscription groups.
A cursor for use in pagination. The after parameter takes an object ID that defines the position in the list, only items immediately following the item with that ID will be returned.
A cursor for use in pagination. The before parameter takes an object ID that defines the position in the list, only items immediately preceding the item with that ID will be returned.
The limit of items to be returned in the list, between 0 and 200.
2010>= 0<= 200Returns a dictionary with an items property that contains an array of subscription groups.
Type of object is always list.
list subscriptionGroup.A unique identifier to be used as after pagination parameter if more items are available sorted after the current batch of items.
A unique identifier to be used as before pagination parameter if more items are available sorted before the current batch of items.
curl https://api.gigs.com/projects/${GIGS_PROJECT}/subscriptionGroups \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json"
{
"object": "list",
"items": [
{
"object": "subscriptionGroup",
"id": "sgr_0SNlurA049MEWV26leJMWPp4o23C",
"subscriptions": [
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"
],
"createdAt": "2021-01-21T19:32:13Z"
}
],
"moreItemsAfter": null,
"moreItemsBefore": null
}
Creates a new subscription group in the specified project.
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
Returns the newly created subscription group.
Type of object is always subscriptionGroup.
subscriptionGroup Unique identifier for the subscription group.
"sgr_0SNlurA049MEWV26leJMWPp4o23C"List of subscription identifiers that belong to this group.
Time when the subscription group was created.
"2021-01-21T19:32:13Z"curl https://api.gigs.com/projects/${GIGS_PROJECT}/subscriptionGroups \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json"
{
"object": "subscriptionGroup",
"id": "sgr_0SNlurA049MEWV26leJMWPp4o23C",
"subscriptions": [
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"
],
"createdAt": "2021-01-21T19:32:13Z"
}
Retrieves the details of an existing subscription group.
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
The unique identifier for the subscription group.
"sgr_0SNlurA049MEWV26leJMWPp4o23C"Returns the subscription group object if it exists.
Type of object is always subscriptionGroup.
subscriptionGroup Unique identifier for the subscription group.
"sgr_0SNlurA049MEWV26leJMWPp4o23C"List of subscription identifiers that belong to this group.
Time when the subscription group was created.
"2021-01-21T19:32:13Z"curl https://api.gigs.com/projects/${GIGS_PROJECT}/subscriptionGroups/{subscriptionGroup} \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json"
{
"object": "subscriptionGroup",
"id": "sgr_0SNlurA049MEWV26leJMWPp4o23C",
"subscriptions": [
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"
],
"createdAt": "2021-01-21T19:32:13Z"
}
Deletes a subscription group. Subscriptions in the group are not deleted; they are detached from the group and continue independently.
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
The unique identifier for the subscription group.
"sgr_0SNlurA049MEWV26leJMWPp4o23C"Returns the deleted subscription group.
Type of object is always subscriptionGroup.
subscriptionGroup Unique identifier for the subscription group.
"sgr_0SNlurA049MEWV26leJMWPp4o23C"List of subscription identifiers that belong to this group.
Time when the subscription group was created.
"2021-01-21T19:32:13Z"curl https://api.gigs.com/projects/${GIGS_PROJECT}/subscriptionGroups/{subscriptionGroup} \
-X DELETE \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json"
{
"object": "subscriptionGroup",
"id": "sgr_0SNlurA049MEWV26leJMWPp4o23C",
"subscriptions": [
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"
],
"createdAt": "2021-01-21T19:32:13Z"
}
Adds one or more existing subscriptions to the specified subscription group. The operation is atomic: if any subscription cannot be added, none are added and the response identifies the offending subscriptions.
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
Unique identifiers of the subscriptions to add to the group. All subscriptions are added atomically: if any one cannot be added, none are.
The unique identifier for the subscription group.
"sgr_0SNlurA049MEWV26leJMWPp4o23C"Returns the updated subscription group.
Type of object is always subscriptionGroup.
subscriptionGroup Unique identifier for the subscription group.
"sgr_0SNlurA049MEWV26leJMWPp4o23C"List of subscription identifiers that belong to this group.
Time when the subscription group was created.
"2021-01-21T19:32:13Z"curl https://api.gigs.com/projects/${GIGS_PROJECT}/subscriptionGroups/{subscriptionGroup}/addSubscriptions \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json" \
-d '{
"subscriptions": [
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"
]
}'
{
"object": "subscriptionGroup",
"id": "sgr_0SNlurA049MEWV26leJMWPp4o23C",
"subscriptions": [
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"
],
"createdAt": "2021-01-21T19:32:13Z"
}
Removes one or more subscriptions from a subscription group. The subscriptions are not deleted and continue independently. The operation is atomic: if any subscription cannot be removed, none are removed and the response identifies the offending subscriptions.
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
Unique identifiers of the subscriptions to remove from the group. All subscriptions are removed atomically: if any one cannot be removed, none are.
The unique identifier for the subscription group.
"sgr_0SNlurA049MEWV26leJMWPp4o23C"Returns the updated subscription group.
Type of object is always subscriptionGroup.
subscriptionGroup Unique identifier for the subscription group.
"sgr_0SNlurA049MEWV26leJMWPp4o23C"List of subscription identifiers that belong to this group.
Time when the subscription group was created.
"2021-01-21T19:32:13Z"curl https://api.gigs.com/projects/${GIGS_PROJECT}/subscriptionGroups/{subscriptionGroup}/removeSubscriptions \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json" \
-d '{
"subscriptions": [
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"
]
}'
{
"object": "subscriptionGroup",
"id": "sgr_0SNlurA049MEWV26leJMWPp4o23C",
"subscriptions": [
"sub_0SNlurA049MEWV2gSfSxi00xlPIi"
],
"createdAt": "2021-01-21T19:32:13Z"
}