curl -X DELETE "https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/digestSubscriptions?reportType=DIGEST_REPORT_TYPE_PROJECT_ACTIVITY&email=dana%40acme.com" \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"deleted": true
}
{ "code": 16, "message": "unauthenticated" }
API
Delete digest subscription
Unsubscribe a recipient from a digest
curl -X DELETE "https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/digestSubscriptions?reportType=DIGEST_REPORT_TYPE_PROJECT_ACTIVITY&email=dana%40acme.com" \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"deleted": true
}
{ "code": 16, "message": "unauthenticated" }
Unsubscribes a recipient from a digest. The audit log entry records the recipient address. Removing a subscription that does not exist succeeds with
See Errors for the rest.
deleted omitted. Each attempt, including a refused or invalid one, is recorded in the workspace audit log with its outcome and the API key, or the person and connected app, that made it. Requests rejected before they reach the operation, such as malformed requests, invalid credentials and rate-limited requests, may have no entry.
Authorization
Requires an Admin API key, or an OAuth sign-in with Admin access by any workspace member. Read and Write keys get403, and a sign-in with Read or Write access gets an insufficient_scope challenge for macroscope:admin.
Bearer <key>. See Authentication.How your client identifies the source of the request in the workspace audit log. Use
human or agent. Macroscope records the client’s value without verifying it. Other values are treated as unspecified.Path parameters
Query parameters
Area of an area digest. Required for
DIGEST_REPORT_TYPE_AREA_ACTIVITY and not accepted otherwise.Response
Errors
| HTTP | Meaning |
|---|---|
400 | Invalid parameters, such as an invalid email address or an areaId that does not match the digest |
403 | Your credential or your permissions do not allow managing digests |
curl -X DELETE "https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/digestSubscriptions?reportType=DIGEST_REPORT_TYPE_PROJECT_ACTIVITY&email=dana%40acme.com" \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"deleted": true
}
{ "code": 16, "message": "unauthenticated" }