Download OpenAPI specification:
This is the documentation for the Zanshin Product API. Zanshin is a vulnerability management platform that manages cloud risks on service providers for your company. Learn more at https://www.tenchisecurity.com/.
Note: This documentation file covers the current endpoint only.
Zanshin is a platform where organizations are registered and then can register their cloud environments into the system for regular security checks. Organizations can register scan Targets, as the name implies, those are the target cloud accounts that will be scanned and monitored for potential security breachs.
Once one or more scan targets are registered the system will periodically run scans, those scans will generate security alerts that can be viewed and will provide details about the detected breach, why it is a breach, which renowed guidelines does it violate, the best practice for a fix, the affected resources and other usefull data. The scan history will also be preserved so the organization can keep track of the over time improvements.
Beyond scanning their own cloud infrastructures Zanshin provides organizations with the ability to follow and be followed by other organizations, in a social-network-like environment. When a organization follows another it can see the alerts and potential secutrity issues of the followed organization. This creates a situation where an organization that has several service provider can follow all of them and be assured that they are all following the best cyber security practices. The organizations that are being followed can allow clients and potential hirers to follow them and show off their awesome security skills to their employers.
User: an user account inside the system. One login. A user must be a member of one or more organizations. Users cannot follow or be followed, they inherit the follows as followings permissions of their organizations.
Member a user inside of an organization is a member of that organization. They can be admins with the powers to create and configure scan targets, accept risks, etc. or regular members with read-only permissions.
Organization the enitity representing a company, businness, or sector of a company it has members, it has scan targets and it can follow and be followed by other organizations. Some companies make different organizations for each of their internal divisions and follow each other.
Followers the organizations that follow your organization. Akin to social networks followers can see the situation of your scan targets and track your alerts. Some sensitive data relating to the alerts may be censored to the followers.
Following the organizations that your organization is currently following. You will be able to see their satus on each of the scan targets and keep track of any security issues they have.
Scan target a single cloud account (be it GCP, AWS, Azure, etc) it is a target of the scans. Where the security checks will happen. One organization may have as many scan targets as they wish.
Scan the results of a security check of a given scan target, it will happen periodically and automatically but can also be triggered manually.
Alert a scan will generate several alerts for each scan target (or none if your security is pristine). Alerts are just that, alerts of potential security failures or guidelines not being followed. Alerts have all the info you need on the problem severity and how to handle it. They can be viewed by the followers. ALerts cannot be manually closed, they are only considered closed when the next scan detects that the problem has been solved.
To use the documented endpoints of this documentation login into zanshin and Generate API Keys from the menu. Use the newly generate key as the {AUTH_TOKEN} mentioned through the docs.
Accepts an invitation and returns the created membership for that invitation
| token required | string |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/me/invites/{token}/accept \ --header 'Authorization: Bearer {TOKEN}'
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Creates a new API key for the current logged user.
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/me/apikeys \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "12349876-bbbb-aaaa-8888-222220000fff",
- "name": "Jomae-ya",
- "key": "***123-Aa",
- "userId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "lastIp": "192.168.0.1",
- "lastUse": "2025-04-07T19:03:28.014Z",
- "createdAt": "2025-03-22T09:54:56.123Z"
}Deletes a given api key by its ID, only work if the key belongs to the current logged user
| apiKeyId required | string <uuid> (common.Id) |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/me/apikeys/{apiKeyId} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}List all data related to the current logger user.
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/me \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "name": "Miyamoto Musashi",
- "email": "niten_doraku@edo.com",
- "roles": [ ],
- "status": "ACTIVE",
- "member": [
- {
- "id": "00000000-0000-4000-a000-000000000001",
- "roles": [
- "ADMIN"
]
}
], - "following": [
- "ffffffff-ffff-4fff-afff-fffffffffff1",
- "22222222-2222-4222-a222-222222222221"
], - "language": "pr-BR",
- "identityProvider": "google-oauth2",
- "emailVerified": true,
- "lastIp": "192.168.0.1",
- "loginsCount": 42,
- "lastLogin": "2025-04-18T18:14:32.123Z",
- "createdAt": "2023-01-13T12:34:56.123Z",
- "updatedAt": "2025-02-21T15:44:12.123Z"
}Get all pending invites for the current user.
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/me/invites \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
]Get details for a specific invite
| token required | string |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/me/invites/{token} \ --header 'Authorization: Bearer {TOKEN}'
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}Lists all active API Keys for an user, API Keys can be used to interact directly with the zanshin API on the behalf of that user.
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/me/apikeys \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "id": "12349876-bbbb-aaaa-8888-222220000fff",
- "name": "Jomae-ya",
- "key": "***123-Aa",
- "userId": "f12345ab-6cd9-ab88-999e-bbdd2266f1b2",
- "lastIp": "192.168.0.1",
- "lastUse": "2025-04-07T19:03:28.014Z",
- "createdAt": "2025-03-22T09:54:56.123Z"
}
]Update account information for current user.
| name | string |
| picture | string |
{- "name": "string",
- "picture": "string"
}{- "id": "string",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "picture": "string",
- "language": "string"
}Batch Update Alerts
Updates the status of multiple alerts in a single operation. Allows bulk operations like marking alerts as resolved, reopening, or adding comments to multiple alerts based on specified criteria.
Permission required: organizationAlerts: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Batch update criteria and new status information
| comment | string | ||||||||||||||||||||
required | object | ||||||||||||||||||||
| |||||||||||||||||||||
| state required | Array of strings (alert.AlertState) Items Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" | ||||||||||||||||||||
{- "state": [
- "OPEN"
], - "comment": "string",
- "condition": {
- "dryRun": true,
- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "scanTargetTags": [
- "string"
], - "states": [
- "OPEN"
], - "severities": [
- "CRITICAL"
], - "includeEmptyScanTargetTags": true,
- "selection": {
- "alertIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "rules": [
- "string"
]
}
}
}{- "count": 0,
- "dryRun": true
}Create Alert Comment
Adds a new comment to a specific alert. Comments are used for collaboration, providing context about investigation findings, remediation steps, or additional information about the security issue.
Permission required: organizationAlerts: READ_ONLY
| alertId required | string <uuid> (alert.AlertId) Alert unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Comment content and metadata
| comment required | string |
| mimeType | string |
{- "comment": "string",
- "mimeType": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "alertId": "a9367074-b5c3-42c4-9be4-be129f43577e",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "comment": "string",
- "mimeType": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}Get Alert
Retrieves detailed information about a specific security alert, including its current state, severity, affected resources, and remediation details.
Permission required: organizationAlerts: READ_ONLY
| alertId required | string <uuid> (alert.AlertId) Alert unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/alerts/{alertId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}Get Alert History
Retrieves the complete history of changes for a specific alert, including state transitions, status updates, comments, and modifications. Essential for incident response tracking and forensic analysis.
Permission required: organizationAlerts: READ_ONLY
| alertId required | string <uuid> (alert.AlertId) Alert unique identifier |
| cursor | string |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/alerts/{alertId}/history?size={INTEGER}&cursor={STRING}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "labels": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1,
- "tags": [
- "string"
], - "operation": "string",
- "cursor": "string"
}
], - "cursor": "string"
}List Alert Comments
Retrieves all comments associated with a specific alert. Comments provide collaboration context, investigation notes, and remediation documentation for security incident management.
Permission required: organizationAlerts: READ_ONLY
| alertId required | string <uuid> (alert.AlertId) Alert unique identifier |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/alerts/{alertId}/comments?size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "userName": "string",
- "userPicture": "string",
- "notMember": true,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "alertId": "a9367074-b5c3-42c4-9be4-be129f43577e",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "comment": "string",
- "mimeType": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}List Alert History
Retrieves historical records of alert state changes, status updates, and modifications. Provides an audit trail for security incident management and compliance reporting.
Permission required: organizationAlerts: READ_ONLY
| cursor | string |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
Alert history filtering criteria including organization and date ranges
| cursor | string |
| lang | string (common.Language) Enum: "pt-BR" "en-US" |
| organizationId required | string <uuid> (organization.OrganizationId) |
| pageSize required | integer |
| scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] |
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "lang": "pt-BR",
- "pageSize": 0,
- "cursor": "string"
}{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "labels": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1,
- "tags": [
- "string"
], - "operation": "string",
- "cursor": "string"
}
], - "cursor": "string"
}List Alerts
Retrieves a filtered and paginated list of security alerts for the specified organization. Supports various filtering options including severity, state, scan target types, date ranges, and custom search criteria.
Permission required: organizationAlerts: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| cursor | string |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
Alert filtering criteria
| createdAtEnd | string <date-time> (common.UTCDateTime) |
| createdAtStart | string <date-time> (common.UTCDateTime) |
| includeEmptyScanTargetTags | boolean (common.IncludeEmptyScanTargetTags) (Optional) Return objects without any ScanTarget tags. |
| lang | string (common.Language) Enum: "pt-BR" "en-US" |
| openedAtEnd | string <date-time> (common.UTCDateTime) |
| openedAtStart | string <date-time> (common.UTCDateTime) |
| order | string Enum: "resource" "rule" "severity" "state" "openedAt" "resolvedAt" "createdAt" "updatedAt" "scanTargetId" |
| resolvedAtEnd | string <date-time> (common.UTCDateTime) |
| resolvedAtStart | string <date-time> (common.UTCDateTime) |
| rules | Array of strings |
| scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] |
| scanTargetKinds | Array of strings (scantarget.ScanTargetKind) Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" "SENTINEL_ONE" |
| scanTargetTags | Array of strings (scantarget.ScanTargetTag) |
| search | string |
| severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
| sort | string (common.Sort) Enum: "DESC" "ASC" |
| states | Array of strings (alert.AlertState) Items Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
| updatedAtEnd | string <date-time> (common.UTCDateTime) |
| updatedAtStart | string <date-time> (common.UTCDateTime) |
{- "rules": [
- "string"
], - "states": [
- "OPEN"
], - "severities": [
- "CRITICAL"
], - "scanTargetKinds": [
- "AWS"
], - "search": "string",
- "lang": "pt-BR",
- "openedAtStart": "2019-08-24T14:15:22Z",
- "openedAtEnd": "2019-08-24T14:15:22Z",
- "resolvedAtStart": "2019-08-24T14:15:22Z",
- "resolvedAtEnd": "2019-08-24T14:15:22Z",
- "createdAtStart": "2019-08-24T14:15:22Z",
- "createdAtEnd": "2019-08-24T14:15:22Z",
- "updatedAtStart": "2019-08-24T14:15:22Z",
- "updatedAtEnd": "2019-08-24T14:15:22Z",
- "sort": "DESC",
- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "scanTargetTags": [
- "string"
], - "includeEmptyScanTargetTags": true,
- "order": "resource"
}{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}
], - "cursor": "string"
}List Alerts Grouped By Rules
Retrieves alerts organized by security rules, providing an aggregated view of how many alerts are triggered by each rule. Useful for identifying patterns and prioritizing security rule improvements.
Permission required: organizationAlerts: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| cursor | string |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
Alert grouping and filtering criteria
| createdAtEnd | string <date-time> (common.UTCDateTime) |
| createdAtStart | string <date-time> (common.UTCDateTime) |
| includeEmptyScanTargetTags | boolean (common.IncludeEmptyScanTargetTags) (Optional) Return objects without any ScanTarget tags. |
| lang | string (common.Language) Enum: "pt-BR" "en-US" |
| openedAtEnd | string <date-time> (common.UTCDateTime) |
| openedAtStart | string <date-time> (common.UTCDateTime) |
| order | string Enum: "rule" "severity" "total" |
| resolvedAtEnd | string <date-time> (common.UTCDateTime) |
| resolvedAtStart | string <date-time> (common.UTCDateTime) |
| rules | Array of strings |
| scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] |
| scanTargetKinds | Array of strings (scantarget.ScanTargetKind) Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" "SENTINEL_ONE" |
| scanTargetTags | Array of strings (scantarget.ScanTargetTag) |
| search | string |
| severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
| sort | string (common.Sort) Enum: "DESC" "ASC" |
| states | Array of strings (alert.AlertState) Items Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
| updatedAtEnd | string <date-time> (common.UTCDateTime) |
| updatedAtStart | string <date-time> (common.UTCDateTime) |
{- "rules": [
- "string"
], - "states": [
- "OPEN"
], - "severities": [
- "CRITICAL"
], - "scanTargetKinds": [
- "AWS"
], - "search": "string",
- "lang": "pt-BR",
- "openedAtStart": "2019-08-24T14:15:22Z",
- "openedAtEnd": "2019-08-24T14:15:22Z",
- "resolvedAtStart": "2019-08-24T14:15:22Z",
- "resolvedAtEnd": "2019-08-24T14:15:22Z",
- "createdAtStart": "2019-08-24T14:15:22Z",
- "createdAtEnd": "2019-08-24T14:15:22Z",
- "updatedAtStart": "2019-08-24T14:15:22Z",
- "updatedAtEnd": "2019-08-24T14:15:22Z",
- "sort": "DESC",
- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "scanTargetTags": [
- "string"
], - "includeEmptyScanTargetTags": true,
- "order": "rule"
}{- "data": [
- {
- "rule": "string",
- "severity": "CRITICAL",
- "timelinessThreshold": 0,
- "total": 0
}
], - "cursor": "string"
}List Following Alert History
Retrieves historical records of alert changes from followed organizations. Enables tracking of security incident resolution patterns across the extended organization network for collaborative security insights.
Permission required: organizationAlerts: READ_ONLY
| cursor | string |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
Following alert history filtering criteria
| cursor | string |
| followingIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] |
| lang | string (common.Language) Enum: "pt-BR" "en-US" |
| organizationId required | string <uuid> (organization.OrganizationId) |
| pageSize required | integer |
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "lang": "pt-BR",
- "pageSize": 0,
- "cursor": "string"
}{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "labels": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1,
- "tags": [
- "string"
], - "operation": "string",
- "cursor": "string"
}
], - "cursor": "string"
}List Following Alerts
Retrieves security alerts from organizations that this organization is following. This allows monitoring of security posture across partner organizations and supply chain entities, supporting collaborative security management.
Permission required: organizationAlerts: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| cursor | string |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
Following alert filtering criteria
| createdAtEnd | string <date-time> (common.UTCDateTime) |
| createdAtStart | string <date-time> (common.UTCDateTime) |
| followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] |
| followingTags | Array of strings (follow.FollowTag) |
| includeEmptyFollowingTags | boolean (common.IncludeEmptyFollowingTags) (Optional) Return objects without any Following tags. |
| lang | string (common.Language) Enum: "pt-BR" "en-US" |
| openedAtEnd | string <date-time> (common.UTCDateTime) |
| openedAtStart | string <date-time> (common.UTCDateTime) |
| order | string Enum: "resource" "rule" "severity" "state" "openedAt" "resolvedAt" "createdAt" "updatedAt" "followingIds" |
| resolvedAtEnd | string <date-time> (common.UTCDateTime) |
| resolvedAtStart | string <date-time> (common.UTCDateTime) |
| rules | Array of strings |
| scanTargetKinds | Array of strings (scantarget.ScanTargetKind) Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" "SENTINEL_ONE" |
| search | string |
| severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
| sort | string (common.Sort) Enum: "DESC" "ASC" |
| states | Array of strings (alert.AlertState) Items Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
| updatedAtEnd | string <date-time> (common.UTCDateTime) |
| updatedAtStart | string <date-time> (common.UTCDateTime) |
{- "rules": [
- "string"
], - "states": [
- "OPEN"
], - "severities": [
- "CRITICAL"
], - "scanTargetKinds": [
- "AWS"
], - "search": "string",
- "lang": "pt-BR",
- "openedAtStart": "2019-08-24T14:15:22Z",
- "openedAtEnd": "2019-08-24T14:15:22Z",
- "resolvedAtStart": "2019-08-24T14:15:22Z",
- "resolvedAtEnd": "2019-08-24T14:15:22Z",
- "createdAtStart": "2019-08-24T14:15:22Z",
- "createdAtEnd": "2019-08-24T14:15:22Z",
- "updatedAtStart": "2019-08-24T14:15:22Z",
- "updatedAtEnd": "2019-08-24T14:15:22Z",
- "sort": "DESC",
- "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "followingTags": [
- "string"
], - "includeEmptyFollowingTags": true,
- "order": "resource"
}{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}
], - "cursor": "string"
}List Following Alerts Grouped By Rules
Retrieves alerts from followed organizations organized by security rules. Provides aggregated insights into security patterns and rule effectiveness across the extended organization network.
Permission required: organizationAlerts: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| cursor | string |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
Following alert grouping and filtering criteria
| createdAtEnd | string <date-time> (common.UTCDateTime) |
| createdAtStart | string <date-time> (common.UTCDateTime) |
| followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] |
| followingTags | Array of strings (follow.FollowTag) |
| includeEmptyFollowingTags | boolean (common.IncludeEmptyFollowingTags) (Optional) Return objects without any Following tags. |
| lang | string (common.Language) Enum: "pt-BR" "en-US" |
| openedAtEnd | string <date-time> (common.UTCDateTime) |
| openedAtStart | string <date-time> (common.UTCDateTime) |
| order | string Enum: "rule" "severity" "total" |
| resolvedAtEnd | string <date-time> (common.UTCDateTime) |
| resolvedAtStart | string <date-time> (common.UTCDateTime) |
| rules | Array of strings |
| scanTargetKinds | Array of strings (scantarget.ScanTargetKind) Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" "SENTINEL_ONE" |
| search | string |
| severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
| sort | string (common.Sort) Enum: "DESC" "ASC" |
| states | Array of strings (alert.AlertState) Items Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
| updatedAtEnd | string <date-time> (common.UTCDateTime) |
| updatedAtStart | string <date-time> (common.UTCDateTime) |
{- "rules": [
- "string"
], - "states": [
- "OPEN"
], - "severities": [
- "CRITICAL"
], - "scanTargetKinds": [
- "AWS"
], - "search": "string",
- "lang": "pt-BR",
- "openedAtStart": "2019-08-24T14:15:22Z",
- "openedAtEnd": "2019-08-24T14:15:22Z",
- "resolvedAtStart": "2019-08-24T14:15:22Z",
- "resolvedAtEnd": "2019-08-24T14:15:22Z",
- "createdAtStart": "2019-08-24T14:15:22Z",
- "createdAtEnd": "2019-08-24T14:15:22Z",
- "updatedAtStart": "2019-08-24T14:15:22Z",
- "updatedAtEnd": "2019-08-24T14:15:22Z",
- "sort": "DESC",
- "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "followingTags": [
- "string"
], - "includeEmptyFollowingTags": true,
- "order": "rule"
}{- "data": [
- {
- "rule": "string",
- "severity": "CRITICAL",
- "timelinessThreshold": 0,
- "total": 0
}
], - "cursor": "string"
}Update Alert
Updates the state, labels, or other properties of a specific security alert. Used for incident response workflows including marking alerts as resolved, adding investigation context, or updating alert metadata.
Permission required: organizationAlerts: FULL_ACCESS
| alertId required | string <uuid> (alert.AlertId) Alert unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| scanTargetId required | string <uuid> (scantarget.ScanTargetId) Scan target unique identifier |
Updated alert properties
| comment | string |
| labels | Array of strings (alert.AlertLabel) |
| state | string (alert.AlertState) Enum: "OPEN" "IN_PROGRESS" "RISK_ACCEPTED" "MITIGATING_CONTROL" "FALSE_POSITIVE" "CLOSED" |
{- "state": "OPEN",
- "labels": [
- "string"
], - "comment": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}Create a new attachment
Attachment Data to create
| contentLength required | number |
| contentMD5 required | string |
| contentType required | string |
| expiresAt | string <date-time> (common.UTCDateTime) |
| fileName required | string |
{- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "expiresAt": "2019-08-24T14:15:22Z"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}Get attachment details
| attachmentId required | string <uuid> (attachment.AttachmentId) Attachment unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/attachment/{attachmentId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}Create document to export alerts of organizations (CSV), following organizations (CSV), organization events (CSV), third party reports (PDF) and questionnaire reports (PDF).
Only members or followers can access.
This endpoint creates a pending request to generate an attachment with the export. When the export is ready, the status will change from PENDING to DONE and the field attachmentId will contain the id of the attachment that contains the download URL. The request GET /attachment/{attachmentId} returns details of the attachment.
To export alerts of organizations, the filter is the same used to list alerts in POST /organizations/{organizationId}/alerts.
To export alerts of following organizations, the filter is the same used to list following alerts in POST /organizations/{organizationId}/followings/alerts.
| organizationId required | string <uuid> (organization.OrganizationId) |
required | object (document.QuestionnaireReportParams) | ||||||||||
| |||||||||||
| type required | string Value: "QUESTIONNAIRE_REPORT" | ||||||||||
{- "type": "QUESTIONNAIRE_REPORT",
- "params": {
- "language": "pt-BR",
- "filter": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "includeAnswers": true
}
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "attachmentId": "96b9bbac-86d3-4497-9e0c-1f8e3803eddb",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "status": "PENDING",
- "type": "QUESTIONNAIRE_REPORT",
- "params": {
- "language": "pt-BR",
- "filter": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "includeAnswers": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}Delete document
| documentId required | string <uuid> (document.DocumentId) Document unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/me/documents/{documentId} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Download document
| documentId required | string <uuid> (document.DocumentId) Document unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/me/documents/{documentId}/download \ --header 'Authorization: Bearer {TOKEN}'
nullGet document by ID
| documentId required | string <uuid> (document.DocumentId) Document unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/me/documents/{documentId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "attachmentId": "96b9bbac-86d3-4497-9e0c-1f8e3803eddb",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "status": "PENDING",
- "type": "QUESTIONNAIRE_REPORT",
- "params": {
- "language": "pt-BR",
- "filter": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "includeAnswers": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}curl --request GET \ --url https://api.zanshin.tenchisecurity.com/me/documents \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "attachmentId": "96b9bbac-86d3-4497-9e0c-1f8e3803eddb",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "status": "PENDING",
- "type": "QUESTIONNAIRE_REPORT",
- "params": {
- "language": "pt-BR",
- "filter": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "includeAnswers": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]Get all event names divided by entity Returns all available event names organized by entity type for filtering purposes
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/events/names \ --header 'Authorization: Bearer {TOKEN}'
{- "alert": [
- "AlertCreated"
], - "alertComment": [
- "AlertCommentCreated"
], - "answer": [
- "AnswerCreated"
], - "assessment": [
- "AssessmentCreated"
], - "assessmentComment": [
- "AssessmentCommentCreated"
], - "follower": [
- "FollowerRequested"
], - "following": [
- "FollowingRequested"
], - "member": [
- "MemberUpdated"
], - "organization": [
- "OrganizationCreated"
], - "question": [
- "QuestionCreated"
], - "questionnaire": [
- "QuestionnaireCreated"
], - "scan": [
- "ScanCreated"
], - "scanTarget": [
- "ScanTargetCreated"
], - "webhook": [
- "WebhookCreated"
]
}List the events of an organization with optional filtering by date range and event name
Permission required: organizationSettings: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization Id. |
| cursor | string |
| end | string <date-time> (common.UTCDateTime) End date for filtering events. |
| name | string Event name filter. |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
| start | string <date-time> (common.UTCDateTime) Start date for filtering events. |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/events?start={STRING}&end={STRING}&name={STRING}&size={INTEGER}&cursor={STRING}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "source": "string",
- "version": 0,
- "data": { },
- "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||
required | object (alert.AlertComment) | ||||||||||||||
| |||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||
required | object | ||||||||||||||
| |||||||||||||||
| name required | string Value: "AlertCommentCreated" | ||||||||||||||
| source required | string Value: "zanshin.alert.comment" | ||||||||||||||
| version required | integer <uint32> | ||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AlertCommentCreated",
- "source": "zanshin.alert.comment",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "alertId": "a9367074-b5c3-42c4-9be4-be129f43577e",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "comment": "string",
- "mimeType": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||
required | object (alert.Alert) The template for picking properties. | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "AlertCreated" | ||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.alert" | ||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AlertCreated",
- "source": "zanshin.alert",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||
required | object (alert.Alert) The template for picking properties. | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "AlertFollowingCreated" | ||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.alert" | ||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AlertFollowingCreated",
- "source": "zanshin.alert",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||
required | object (alert.Alert) The template for picking properties. | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "AlertFollowingUpdated" | ||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.alert" | ||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AlertFollowingUpdated",
- "source": "zanshin.alert",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||
required | object (alert.Alert) The template for picking properties. | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "AlertUpdated" | ||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.alert" | ||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AlertUpdated",
- "source": "zanshin.alert",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "rule": "string",
- "resource": "string",
- "severity": "CRITICAL",
- "state": "OPEN",
- "version": 0,
- "tags": [
- "string"
], - "labels": [
- "string"
], - "compliances": [
- "string"
], - "enrichment": { },
- "metadata": { },
- "openedAt": "2019-08-24T14:15:22Z",
- "resolvedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "ruleTitle": "string",
- "timelinessThreshold": 0.1
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||
required | object (questionnaire.Answer) | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| name required | string Value: "AnswerCreated" | ||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.questionnaire.answer" | ||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AnswerCreated",
- "source": "zanshin.questionnaire.answer",
- "version": 0,
- "data": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "content": [
- {
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
], - "content": {
- "type": "EMPTY"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||
required | object (questionnaire.Answer) | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| name required | string Value: "AnswerUpdated" | ||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.questionnaire.answer" | ||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AnswerUpdated",
- "source": "zanshin.questionnaire.answer",
- "version": 0,
- "data": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "content": [
- {
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
], - "content": {
- "type": "EMPTY"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||
required | object (questionnaire.AssessmentComment) | ||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||
| name required | string Value: "AssessmentCommentCreated" | ||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.assessment.comment" | ||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AssessmentCommentCreated",
- "source": "zanshin.assessment.comment",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "content": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||
required | object (questionnaire.Assessment) | ||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
| name required | string Value: "AssessmentCreated" | ||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.assessment" | ||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AssessmentCreated",
- "source": "zanshin.assessment",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "dueDate": "2019-08-24T14:15:22Z",
- "firstRequestedReviewAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "status": "NEW",
- "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||
required | object (questionnaire.Assessment) | ||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
| name required | string Value: "AssessmentUpdated" | ||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.assessment" | ||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AssessmentUpdated",
- "source": "zanshin.assessment",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "dueDate": "2019-08-24T14:15:22Z",
- "firstRequestedReviewAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "status": "NEW",
- "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||
required | object (attachment.Attachment) The template for picking properties. | ||||||||||||||||
| |||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||
required | object | ||||||||||||||||
| |||||||||||||||||
| name required | string Value: "AttachmentCreated" | ||||||||||||||||
| source required | string Value: "zanshin.attachment" | ||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AttachmentCreated",
- "source": "zanshin.attachment",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||
required | object (attachment.Attachment) The template for picking properties. | ||||||||||||||||
| |||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||
required | object | ||||||||||||||||
| |||||||||||||||||
| name required | string Value: "AttachmentUpdated" | ||||||||||||||||
| source required | string Value: "zanshin.attachment" | ||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "AttachmentUpdated",
- "source": "zanshin.attachment",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}required | object (document.EventParams) | ||||||||||
| |||||||||||
| type required | string Value: "EVENT" | ||||||||||
{- "type": "EVENT",
- "params": {
- "filter": {
- "name": "string",
- "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z"
}
}
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object (questionnaire.Element) | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "ElementCreated" | ||||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.questionnaire.element" | ||||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ElementCreated",
- "source": "zanshin.questionnaire.element",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object (questionnaire.Element) | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "ElementDeleted" | ||||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.questionnaire.element" | ||||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ElementDeleted",
- "source": "zanshin.questionnaire.element",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object (questionnaire.Element) | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "ElementUpdated" | ||||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.questionnaire.element" | ||||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ElementUpdated",
- "source": "zanshin.questionnaire.element",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||
required | object (follow.FollowRequest) The template for picking properties. | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| name required | string Value: "FollowerAccepted" | ||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.follower" | ||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowerAccepted",
- "source": "zanshin.follower",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followingShare": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||
required | object (follow.FollowRequest) The template for picking properties. | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| name required | string Value: "FollowerDeclined" | ||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.follower" | ||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowerDeclined",
- "source": "zanshin.follower",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followingShare": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||
required | object (follow.Follower) | ||||||||||||||||||||
| |||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||
required | object | ||||||||||||||||||||
| |||||||||||||||||||||
| name required | string Value: "FollowerDeleted" | ||||||||||||||||||||
| source required | string Value: "zanshin.follower" | ||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowerDeleted",
- "source": "zanshin.follower",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "status": "ACTIVE",
- "score": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||
required | object (follow.FollowRequest) The template for picking properties. | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| name required | string Value: "FollowerRequested" | ||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.follower" | ||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowerRequested",
- "source": "zanshin.follower",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followingShare": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||
required | object (follow.Follower) | ||||||||||||||||||||
| |||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||
required | object | ||||||||||||||||||||
| |||||||||||||||||||||
| name required | string Value: "FollowerUpdated" | ||||||||||||||||||||
| source required | string Value: "zanshin.follower" | ||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowerUpdated",
- "source": "zanshin.follower",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "status": "ACTIVE",
- "score": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||
required | object (follow.FollowRequest) The template for picking properties. | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| name required | string Value: "FollowingAccepted" | ||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.following" | ||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowingAccepted",
- "source": "zanshin.following",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followingShare": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||
required | object (follow.FollowRequest) The template for picking properties. | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| name required | string Value: "FollowingDeclined" | ||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.following" | ||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowingDeclined",
- "source": "zanshin.following",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followingShare": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||
required | object (follow.Following) | ||||||||||||||||||||
| |||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||
required | object | ||||||||||||||||||||
| |||||||||||||||||||||
| name required | string Value: "FollowingDeleted" | ||||||||||||||||||||
| source required | string Value: "zanshin.following" | ||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowingDeleted",
- "source": "zanshin.following",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "tags": [
- "string"
], - "score": 0,
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "followerBusinessImpact": "SEVERE",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||
required | object (follow.FollowRequest) The template for picking properties. | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| name required | string Value: "FollowingRequested" | ||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.following" | ||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowingRequested",
- "source": "zanshin.following",
- "version": 0,
- "data": {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followingShare": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||
required | object (follow.Following) | ||||||||||||||||||||
| |||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||
required | object | ||||||||||||||||||||
| |||||||||||||||||||||
| name required | string Value: "FollowingUpdated" | ||||||||||||||||||||
| source required | string Value: "zanshin.following" | ||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "FollowingUpdated",
- "source": "zanshin.following",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "tags": [
- "string"
], - "score": 0,
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "followerBusinessImpact": "SEVERE",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||
required | object (member.Member) The template for picking properties. | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| name required | string Value: "MemberCreated" | ||||||||||||||||||||||||
| source required | string Value: "zanshin.member" | ||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberCreated",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||
required | object (member.Member) The template for picking properties. | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| name required | string Value: "MemberDeleted" | ||||||||||||||||||||||||
| source required | string Value: "zanshin.member" | ||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberDeleted",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||
required | object (member.MemberInvite) The template for picking properties. | ||||||||||||
| |||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||
required | object | ||||||||||||
| |||||||||||||
| name required | string Value: "MemberInviteAccepted" | ||||||||||||
| source required | string Value: "zanshin.member" | ||||||||||||
| version required | integer <uint32> | ||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberInviteAccepted",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||
required | object (member.MemberInvite) The template for picking properties. | ||||||||||||
| |||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||
required | object | ||||||||||||
| |||||||||||||
| name required | string Value: "MemberInviteCreated" | ||||||||||||
| source required | string Value: "zanshin.member" | ||||||||||||
| version required | integer <uint32> | ||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberInviteCreated",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||
required | object (member.MemberInvite) The template for picking properties. | ||||||||||||
| |||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||
required | object | ||||||||||||
| |||||||||||||
| name required | string Value: "MemberInviteDeleted" | ||||||||||||
| source required | string Value: "zanshin.member" | ||||||||||||
| version required | integer <uint32> | ||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberInviteDeleted",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||
required | object (member.MemberInvite) The template for picking properties. | ||||||||||||
| |||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||
required | object | ||||||||||||
| |||||||||||||
| name required | string Value: "MemberInviteResent" | ||||||||||||
| source required | string Value: "zanshin.member" | ||||||||||||
| version required | integer <uint32> | ||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberInviteResent",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||
required | object (member.Member) The template for picking properties. | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| name required | string Value: "MemberMfaResetRequested" | ||||||||||||||||||||||||
| source required | string Value: "zanshin.member" | ||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberMfaResetRequested",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||
required | object (member.Member) The template for picking properties. | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| name required | string Value: "MemberPasswordResetRequested" | ||||||||||||||||||||||||
| source required | string Value: "zanshin.member" | ||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberPasswordResetRequested",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||
required | object (member.Member) The template for picking properties. | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||
| |||||||||||||||||||||||||
| name required | string Value: "MemberUpdated" | ||||||||||||||||||||||||
| source required | string Value: "zanshin.member" | ||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "MemberUpdated",
- "source": "zanshin.member",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||
required | object (organization.Organization) The template for picking properties. | ||||||||||||||||||
| |||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||
required | object | ||||||||||||||||||
| |||||||||||||||||||
| name required | string Value: "OrganizationCreated" | ||||||||||||||||||
| source required | string Value: "zanshin.organization" | ||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "OrganizationCreated",
- "source": "zanshin.organization",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "email": "string",
- "features": [
- "string"
], - "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "score": 0
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||
required | object (organization.Organization) The template for picking properties. | ||||||||||||||||||
| |||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||
required | object | ||||||||||||||||||
| |||||||||||||||||||
| name required | string Value: "OrganizationDeleted" | ||||||||||||||||||
| source required | string Value: "zanshin.organization" | ||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "OrganizationDeleted",
- "source": "zanshin.organization",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "email": "string",
- "features": [
- "string"
], - "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "score": 0
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||
required | object (organization.Organization) The template for picking properties. | ||||||||||||||||||
| |||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||
required | object | ||||||||||||||||||
| |||||||||||||||||||
| name required | string Value: "OrganizationUpdated" | ||||||||||||||||||
| source required | string Value: "zanshin.organization" | ||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "OrganizationUpdated",
- "source": "zanshin.organization",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "email": "string",
- "features": [
- "string"
], - "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "score": 0
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object (questionnaire.Question) | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "QuestionCreated" | ||||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.questionnaire.question" | ||||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionCreated",
- "source": "zanshin.questionnaire.question",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object (questionnaire.Question) | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "QuestionDeleted" | ||||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.questionnaire.question" | ||||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionDeleted",
- "source": "zanshin.questionnaire.question",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||
required | object (questionnaire.Questionnaire) | ||||||||||||||||
| |||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||
required | object | ||||||||||||||||
| |||||||||||||||||
| name required | string Value: "QuestionnaireCreated" | ||||||||||||||||
| source required | string Value: "zanshin.questionnaire" | ||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionnaireCreated",
- "source": "zanshin.questionnaire",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||
required | object (questionnaire.Questionnaire) | ||||||||||||||||
| |||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||
required | object | ||||||||||||||||
| |||||||||||||||||
| name required | string Value: "QuestionnairePublished" | ||||||||||||||||
| source required | string Value: "zanshin.questionnaire" | ||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionnairePublished",
- "source": "zanshin.questionnaire",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||
required | object (questionnaire.Questionnaire) | ||||||||||||||||
| |||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||
required | object | ||||||||||||||||
| |||||||||||||||||
| name required | string Value: "QuestionnaireSent" | ||||||||||||||||
| source required | string Value: "zanshin.questionnaire" | ||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionnaireSent",
- "source": "zanshin.questionnaire",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||
required | object (questionnaire.Questionnaire) | ||||||||||||||||
| |||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||
required | object | ||||||||||||||||
| |||||||||||||||||
| name required | string Value: "QuestionnaireUpdated" | ||||||||||||||||
| source required | string Value: "zanshin.questionnaire" | ||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionnaireUpdated",
- "source": "zanshin.questionnaire",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object (questionnaire.Question) | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "QuestionUpdated" | ||||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.questionnaire.question" | ||||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "QuestionUpdated",
- "source": "zanshin.questionnaire.question",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||
required | object (scan.Scan) The template for picking properties. | ||||||||||||||||||
| |||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||
required | object | ||||||||||||||||||
| |||||||||||||||||||
| name required | string Value: "ScanCreated" | ||||||||||||||||||
| source required | string Value: "zanshin.scan" | ||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ScanCreated",
- "source": "zanshin.scan",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "slot": "2019-08-24T14:15:22Z",
- "status": "RUNNING",
- "summary": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object (scantarget.ScanTarget) The template for picking properties. | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "ScanTargetCreated" | ||||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.scanTarget" | ||||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ScanTargetCreated",
- "source": "zanshin.scanTarget",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object (scantarget.ScanTarget) The template for picking properties. | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "ScanTargetDeleted" | ||||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.scanTarget" | ||||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ScanTargetDeleted",
- "source": "zanshin.scanTarget",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object (scantarget.ScanTarget) The template for picking properties. | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
| name required | string Value: "ScanTargetUpdated" | ||||||||||||||||||||||||||||||||||||||||||||||||
| source required | string Value: "zanshin.scanTarget" | ||||||||||||||||||||||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ScanTargetUpdated",
- "source": "zanshin.scanTarget",
- "version": 0,
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||
required | object (scan.Scan) The template for picking properties. | ||||||||||||||||||
| |||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||
required | object | ||||||||||||||||||
| |||||||||||||||||||
| name required | string Value: "ScanUpdated" | ||||||||||||||||||
| source required | string Value: "zanshin.scan" | ||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "ScanUpdated",
- "source": "zanshin.scan",
- "version": 0,
- "data": {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "slot": "2019-08-24T14:15:22Z",
- "status": "RUNNING",
- "summary": { },
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||
required | object (webhook.Webhook) Webhook | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| name required | string Value: "WebhookCreated" | ||||||||||||||||||||||||||||
| source required | string Value: "zanshin.webhook" | ||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "WebhookCreated",
- "source": "zanshin.webhook",
- "version": 0,
- "data": {
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "id": "00000000-0000-4000-a000-000000000002",
- "name": "Security Alerts Webhook",
- "description": "Webhook for receiving security alerts and notifications",
- "authorizationType": "API_KEY",
- "events": [
- "WebhookCreated",
- "WebhookUpdated"
], - "status": "ACTIVE",
- "metadata": {
- "department": "security",
- "priority": "high"
}, - "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||
required | object (webhook.Webhook) Webhook | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| name required | string Value: "WebhookDeleted" | ||||||||||||||||||||||||||||
| source required | string Value: "zanshin.webhook" | ||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "WebhookDeleted",
- "source": "zanshin.webhook",
- "version": 0,
- "data": {
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "id": "00000000-0000-4000-a000-000000000002",
- "name": "Security Alerts Webhook",
- "description": "Webhook for receiving security alerts and notifications",
- "authorizationType": "API_KEY",
- "events": [
- "WebhookCreated",
- "WebhookUpdated"
], - "status": "ACTIVE",
- "metadata": {
- "department": "security",
- "priority": "high"
}, - "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}| createdAt required | string <date-time> (common.UTCDateTime) | ||||||||||||||||||||||||||||
required | object (webhook.Webhook) Webhook | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| id required | string <uuid> (common.EventId) | ||||||||||||||||||||||||||||
required | object | ||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||
| name required | string Value: "WebhookUpdated" | ||||||||||||||||||||||||||||
| source required | string Value: "zanshin.webhook" | ||||||||||||||||||||||||||||
| version required | integer <uint32> | ||||||||||||||||||||||||||||
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "WebhookUpdated",
- "source": "zanshin.webhook",
- "version": 0,
- "data": {
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "id": "00000000-0000-4000-a000-000000000002",
- "name": "Security Alerts Webhook",
- "description": "Webhook for receiving security alerts and notifications",
- "authorizationType": "API_KEY",
- "events": [
- "WebhookCreated",
- "WebhookUpdated"
], - "status": "ACTIVE",
- "metadata": {
- "department": "security",
- "priority": "high"
}, - "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z"
}, - "metadata": { },
- "createdAt": "2019-08-24T14:15:22Z"
}Accept follower request
Permission required: followingOrganizations: FULL_ACCESS
| followerId required | string <uuid> (organization.OrganizationId) Follower organization unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/followers/{followerId}/requests/accept \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "createdAt": "2019-08-24T14:15:22Z"
}Create follower request
Permission required: followerOrganizations: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Follower request data
| followerBusinessImpact | string (follow.BusinessImpact) Enum: "SEVERE" "SIGNIFICANT" "MODERATE" "MINOR" "MINIMAL" "NOT_DEFINED" | ||||||
| followingId | string <uuid> (organization.OrganizationId) | ||||||
| followMode | string (follow.FollowMode) Enum: "COOPERATIVE" "ANONYMOUS" | ||||||
| followTags | Array of strings (follow.FollowTag) | ||||||
object (organization.OrganizationCreate) The template for picking properties. | |||||||
| |||||||
Array of objects (scantarget.ScanTargetSuggestionCreate) | |||||||
Array
| |||||||
Array of objects (user.UserContact) | |||||||
Array
| |||||||
{- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followMode": "COOPERATIVE",
- "followTags": [
- "string"
], - "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
], - "organizationInformation": {
- "name": "string",
- "pictureId": "7d230a48-4a94-485b-82e1-57a6bf2e0a16",
- "email": "string"
}, - "scanTargetSuggestions": [
- {
- "account": "tenchisecurity.com",
- "kind": "DOMAIN"
}
], - "followerBusinessImpact": "SEVERE"
}{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Decline follower request
Permission required: followingOrganizations: FULL_ACCESS
| followerId required | string <uuid> (organization.OrganizationId) Follower organization unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/followers/{followerId}/requests/decline \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "createdAt": "2019-08-24T14:15:22Z"
}Delete follower relationship
Permission required: followerOrganizations: FULL_ACCESSs
| followerId required | string <uuid> (organization.OrganizationId) Follower organization unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/followers/{followerId} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Delete follower request by token
Permission required: followerOrganizations: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| token required | string Request token |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/followers/requests/{token} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Get follower by ID
Permission required: followerOrganizations: READ_ONLY
| followerId required | string <uuid> (organization.OrganizationId) Follower organization unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/followers/{followerId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "status": "ACTIVE",
- "score": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}Get follower request info by token
Permission required: followerOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| token required | string Request token |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/followers/requests/{token} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "createdAt": "2019-08-24T14:15:22Z"
}Get all follower requests
Permission required: followerOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/followers/requests \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followingShare": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
]
}
]Get all cooperation followers
Permission required: followerOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/followers \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "status": "ACTIVE",
- "score": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}
]Update follower
Permission required: followerOrganizations: FULL_ACCESS
| followerId required | string <uuid> (organization.OrganizationId) Follower organization unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Updated follower data
object (share.ShareScanTargetTags) | |||||
| |||||
{- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "share": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "status": "ACTIVE",
- "score": 0,
- "createdAt": "2019-08-24T14:15:22Z"
}Accept following request
Permission required: followerOrganizations: FULL_ACCESS
| followingId required | string <uuid> (organization.OrganizationId) Following organization unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/following/requests/{followingId}/accept \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Create following request
Permission required: followingOrganizations: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Following request data
| followerBusinessImpact | string (follow.BusinessImpact) Enum: "SEVERE" "SIGNIFICANT" "MODERATE" "MINOR" "MINIMAL" "NOT_DEFINED" | ||||||
| followingId | string <uuid> (organization.OrganizationId) | ||||||
| followMode | string (follow.FollowMode) Enum: "COOPERATIVE" "ANONYMOUS" | ||||||
| followTags | Array of strings (follow.FollowTag) | ||||||
object (organization.OrganizationCreate) The template for picking properties. | |||||||
| |||||||
Array of objects (scantarget.ScanTargetSuggestionCreate) | |||||||
Array
| |||||||
Array of objects (user.UserContact) | |||||||
Array
| |||||||
{- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followMode": "COOPERATIVE",
- "followTags": [
- "string"
], - "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
], - "organizationInformation": {
- "name": "string",
- "pictureId": "7d230a48-4a94-485b-82e1-57a6bf2e0a16",
- "email": "string"
}, - "scanTargetSuggestions": [
- {
- "account": "tenchisecurity.com",
- "kind": "DOMAIN"
}
], - "followerBusinessImpact": "SEVERE"
}{- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followingShare": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
]
}Decline following request
Permission required: followerOrganizations: FULL_ACCESS
| followingId required | string <uuid> (organization.OrganizationId) Following organization unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/following/requests/{followingId}/decline \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Delete following relationship
Permission required: followingOrganizations: FULL_ACCESS
| followingId required | string <uuid> (organization.OrganizationId) Following organization unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/following/{followingId} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Get following organization by ID
Permission required: followingOrganizations: READ_ONLY
| followingId required | string <uuid> (organization.OrganizationId) Following organization unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/following/{followingId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "tags": [
- "string"
], - "score": 0,
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "followerBusinessImpact": "SEVERE",
- "createdAt": "2019-08-24T14:15:22Z"
}Get following request token
Permission required: followingOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/following/requests/token \ --header 'Authorization: Bearer {TOKEN}'
{- "token": "string"
}Get all following tags
Permission required: followingOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/following/tags \ --header 'Authorization: Bearer {TOKEN}'
[- "string"
]Get all following organizations
Permission required: followingOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/following \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "tags": [
- "string"
], - "score": 0,
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "followerBusinessImpact": "SEVERE",
- "createdAt": "2019-08-24T14:15:22Z"
}
]Get all following requests
Permission required: followingOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/following/requests \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "followingId": "6338e9fd-6a02-4721-9c37-b1e04d194fe9",
- "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0",
- "followingShare": {
- "mode": "SCAN_TARGET_TAGS",
- "scanTargetTags": [
- "string"
]
}, - "updatedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "userContacts": [
- {
- "email": "string",
- "name": "string",
- "phone": "string"
}
]
}
]Update following organization
Permission required: followingOrganizations: FULL_ACCESS
| followingId required | string <uuid> (organization.OrganizationId) Following organization unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Updated following data
| followerBusinessImpact | string (follow.BusinessImpact) Enum: "SEVERE" "SIGNIFICANT" "MODERATE" "MINOR" "MINIMAL" "NOT_DEFINED" |
| followMode | string (follow.FollowMode) Enum: "COOPERATIVE" "ANONYMOUS" |
| tags | Array of strings (follow.FollowTag) |
{- "tags": [
- "string"
], - "followMode": "COOPERATIVE",
- "followerBusinessImpact": "SEVERE"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "status": "ACTIVE",
- "tags": [
- "string"
], - "score": 0,
- "followMode": "COOPERATIVE",
- "requestedBy": "FOLLOWER",
- "followerBusinessImpact": "SEVERE",
- "createdAt": "2019-08-24T14:15:22Z"
}Create member invite
Permission required: organizationMembers: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Invite data
| email required | string (common.Email) |
| roles required | Array of strings (member.MemberRole) Items Value: "ADMIN" |
{- "email": "string",
- "roles": [
- "ADMIN"
]
}{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}Delete member invite
Permission required: organizationMembers: FULL_ACCESS
| email required | string (common.Email) Member email address |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/invites/{email} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Get member invite by email
Permission required: organizationMembers: READ_ONLY
| email required | string (common.Email) Member email address |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/invites/{email} \ --header 'Authorization: Bearer {TOKEN}'
{- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}Get all member invites
Permission required: organizationMembers: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/invites \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "organizationName": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "expiredAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z"
}
]Get all members
Permission required: organizationMembers: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/members \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "name": "string",
- "email": "string",
- "roles": [
- "ADMIN"
], - "identityProvider": "string",
- "lastIp": "string",
- "lastLogin": "string",
- "loginsCount": 0,
- "picture": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]Remove member from organization
Permission required: organizationMembers: FULL_ACCESS
| memberId required | string <uuid> (user.UserId) Member unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/members/{memberId} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Resend member invite
Permission required: organizationMembers: FULL_ACCESS
| email required | string (common.Email) Member email address |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/invites/{email}/resend \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Reset member MFA
Permission required: organizationMembers: FULL_ACCESS
| memberId required | string <uuid> (user.UserId) Member unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/members/{memberId}/mfa/reset \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Reset member password
Permission required: organizationMembers: FULL_ACCESS
| memberId required | string <uuid> (user.UserId) Member unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/members/{memberId}/password/reset \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Update member
Permission required: organizationMembers: FULL_ACCESS
| memberId required | string <uuid> (user.UserId) Member unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Updated member data
| roles | Array of strings (member.MemberRole) Items Value: "ADMIN" |
{- "roles": [
- "ADMIN"
]
}{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Get Organization
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "email": "string",
- "features": [
- "string"
], - "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "score": 0
}List Organizations
| cursor | string |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations?size={INTEGER}&cursor={STRING}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "picture": "string",
- "email": "string",
- "features": [
- "string"
], - "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "score": 0
}
], - "cursor": "string"
}Clone questionnaire version
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| questionnaireVersion required | integer (questionnaire.QuestionnaireVersion) Questionnaire version |
Clone data
| name required | string |
{- "name": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Create a new questionnaire
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Questionnaire data
Array of objects (questionnaire.AssessmentContactInformation) | |||||||
Array
| |||||||
| description required | string (questionnaire.QuestionnaireDescription) | ||||||
| name required | string | ||||||
{- "name": "string",
- "description": "string",
- "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Create element for questionnaire
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
Element data
| description required | string (questionnaire.QuestionDescription) | ||||
required | questionnaire.QuestionTextParams (object) or questionnaire.QuestionSingleChoiceParams (object) or questionnaire.QuestionMultipleChoiceParams (object) or questionnaire.QuestionFileParams (object) | ||||
Any of
| |||||
| title required | string (questionnaire.QuestionTitle) | ||||
{- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}Create question for questionnaire (deprecated)
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
Question data
| description required | string (questionnaire.QuestionDescription) | ||||
required | questionnaire.QuestionTextParams (object) or questionnaire.QuestionSingleChoiceParams (object) or questionnaire.QuestionMultipleChoiceParams (object) or questionnaire.QuestionFileParams (object) | ||||
Any of
| |||||
| title required | string (questionnaire.QuestionTitle) | ||||
{- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}Create questionnaire schedule
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
Schedule data
Array of objects (questionnaire.AssessmentContactInformation) | |||||||
Array
| |||||||
| dueDays required | integer | ||||||
| frequency required | string (questionnaire.QuestionnaireScheduleFrequency) Enum: "MONTHLY" "QUARTERLY" "SEMESTRAL" "ANNUALLY" | ||||||
| name required | string | ||||||
| receiverTags required | Array of strings (common.Tag) | ||||||
{- "name": "string",
- "frequency": "MONTHLY",
- "dueDays": 0,
- "receiverTags": [
- "string"
], - "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "frequency": "MONTHLY",
- "dueDays": 0,
- "receiverTags": [
- "string"
], - "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Delete element
Permission required: followingQuestionnaires: FULL_ACCESS
| elementId required | string <uuid> (questionnaire.ElementId) Element unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/elements/{elementId} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Delete question
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionId required | string <uuid> (questionnaire.ElementId) Question unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/questions/{questionId} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Delete questionnaire schedule
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| questionnaireScheduleId required | string <uuid> (questionnaire.QuestionnaireScheduleId) Schedule unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/schedules/{questionnaireScheduleId} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Get questionnaire by ID
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Get element by ID
Permission required: followingQuestionnaires: READ_ONLY
| elementId required | string <uuid> (questionnaire.ElementId) Element unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/elements/{elementId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}Get question by ID
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionId required | string <uuid> (questionnaire.ElementId) Question unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/questions/{questionId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}Get questionnaire schedule by ID
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| questionnaireScheduleId required | string <uuid> (questionnaire.QuestionnaireScheduleId) Schedule unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/schedules/{questionnaireScheduleId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "frequency": "MONTHLY",
- "dueDays": 0,
- "receiverTags": [
- "string"
], - "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Get specific questionnaire version
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| questionnaireVersion required | integer (questionnaire.QuestionnaireVersion) Questionnaire version |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/versions/{questionnaireVersion} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Get all elements for questionnaire
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/elements?size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}
]
}Get all questions for questionnaire
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| page | integer <uint16> >= 1 Default: 1 |
| required | boolean Filter by required status |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
| title | string Filter by title |
| type | string (questionnaire.QuestionType) Enum: "TEXT" "SINGLE_CHOICE" "MULTIPLE_CHOICE" "FILE" Filter by question type |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/questions?required=SOME_BOOLEAN_VALUE&title={STRING}&type={STRING}&size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}
]
}List questionnaire schedules
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/schedules?size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "frequency": "MONTHLY",
- "dueDays": 0,
- "receiverTags": [
- "string"
], - "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Get elements for specific questionnaire version
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| questionnaireVersion required | integer (questionnaire.QuestionnaireVersion) Questionnaire version |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/versions/{questionnaireVersion}/elements?size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}
]
}Get questions for specific questionnaire version
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| questionnaireVersion required | integer (questionnaire.QuestionnaireVersion) Questionnaire version |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/versions/{questionnaireVersion}/questions?size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}
]
}Get questionnaire versions
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/versions?size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}List questionnaires
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| name | string Filter by name |
| order | string Sort order |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
| sort | string Sort field |
| status | string (questionnaire.QuestionnaireStatus) Enum: "ACTIVE" "INACTIVE" Filter by status |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires?order={STRING}&sort={STRING}&name={STRING}&status={STRING}&size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Publish questionnaire
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/questionnaires/{questionnaireId}/publish \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Send questionnaire
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
Send questionnaire data
required | Array of objects (questionnaire.AssessmentContactInformation) | ||||||
Array
| |||||||
| dueDate required | string <date-time> (common.UTCDateTime) | ||||||
| receiverId required | string <uuid> (organization.OrganizationId) | ||||||
{- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "dueDate": "2019-08-24T14:15:22Z",
- "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
]
}{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Update questionnaire
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
Updated questionnaire data
Array of objects (questionnaire.AssessmentContactInformation) | |||||||
Array
| |||||||
| description | string (questionnaire.QuestionnaireDescription) | ||||||
| name | string | ||||||
{- "name": "string",
- "description": "string",
- "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Update element
Permission required: followingQuestionnaires: FULL_ACCESS
| elementId required | string <uuid> (questionnaire.ElementId) Element unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
Updated element data
| description required | string (questionnaire.QuestionDescription) | ||||
required | questionnaire.QuestionTextParams (object) or questionnaire.QuestionSingleChoiceParams (object) or questionnaire.QuestionMultipleChoiceParams (object) or questionnaire.QuestionFileParams (object) | ||||
Any of
| |||||
| title required | string (questionnaire.QuestionTitle) | ||||
{- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}Update question
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionId required | string <uuid> (questionnaire.ElementId) Question unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
Updated question data
| description required | string (questionnaire.QuestionDescription) | ||||
required | questionnaire.QuestionTextParams (object) or questionnaire.QuestionSingleChoiceParams (object) or questionnaire.QuestionMultipleChoiceParams (object) or questionnaire.QuestionFileParams (object) | ||||
Any of
| |||||
| title required | string (questionnaire.QuestionTitle) | ||||
{- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}Update questionnaire schedule
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
| questionnaireScheduleId required | string <uuid> (questionnaire.QuestionnaireScheduleId) Schedule unique identifier |
Updated schedule data
Array of objects (questionnaire.AssessmentContactInformation) | |||||||
Array
| |||||||
| dueDays | integer | ||||||
| frequency | string (questionnaire.QuestionnaireScheduleFrequency) Enum: "MONTHLY" "QUARTERLY" "SEMESTRAL" "ANNUALLY" | ||||||
| name | string | ||||||
| receiverTags | Array of strings (common.Tag) | ||||||
{- "name": "string",
- "frequency": "MONTHLY",
- "dueDays": 0,
- "receiverTags": [
- "string"
], - "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "frequency": "MONTHLY",
- "dueDays": 0,
- "receiverTags": [
- "string"
], - "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Update questionnaire status
Permission required: followingQuestionnaires: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionnaireId required | string <uuid> (questionnaire.QuestionnaireId) Questionnaire unique identifier |
Status update data
| status required | string (questionnaire.QuestionnaireStatus) Enum: "ACTIVE" "INACTIVE" |
{- "status": "ACTIVE"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "version": 0,
- "name": "string",
- "description": "string",
- "status": "ACTIVE",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Create assessment comment
Permission required: followingQuestionnaires: FULL_ACCESS
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Comment data
| attachmentIds | Array of strings <uuid> (attachment.AttachmentId) [ items <uuid > ] |
| content required | string (common.Markdown) |
{- "content": "string",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "content": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}Create answer for question
Permission required: followingQuestionnaires: FULL_ACCESS
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionId required | string <uuid> (questionnaire.ElementId) Question unique identifier |
Answer data
| attachmentIds | Array of strings <uuid> (attachment.AttachmentId) [ items <uuid > ] | ||
required | questionnaire.AnswerEmptyContent (object) or questionnaire.AnswerTextContent (object) or questionnaire.AnswerSingleChoiceContent (object) or questionnaire.AnswerMultipleChoiceContent (object) or questionnaire.AnswerFileContent (object) | ||
Any of
| |||
{- "content": {
- "type": "EMPTY"
}, - "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "content": [
- {
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
], - "content": {
- "type": "EMPTY"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Create question comment
Permission required: followingQuestionnaires: FULL_ACCESS
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionId required | string <uuid> (questionnaire.ElementId) Question unique identifier |
Comment data
| attachmentIds | Array of strings <uuid> (attachment.AttachmentId) [ items <uuid > ] |
| content required | string (common.Markdown) |
{- "content": "string",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "content": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}Get assessment by ID
Permission required: followingQuestionnaires: READ_ONLY
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/assessments/{assessmentId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "dueDate": "2019-08-24T14:15:22Z",
- "firstRequestedReviewAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "status": "NEW",
- "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Get assessment element by ID
Permission required: followingQuestionnaires: READ_ONLY
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| elementId required | string <uuid> (questionnaire.ElementId) Element unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/assessments/{assessmentId}/elements/{elementId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Gets assessment history
Permission required: followingQuestionnaires: READ_ONLY
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| cursor | string |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/assessments/{assessmentId}/history?size={INTEGER}&cursor={STRING}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "type": "ASSESSMENT_SENT",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "content": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}, - "metadata": {
- "principalId": "0a52818d-1e0c-4e64-848e-4d04f9e914e5",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}Gets assessment question history
Permission required: followingQuestionnaires: READ_ONLY
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| cursor | string |
| questionId | string <uuid> (questionnaire.ElementId) Question unique identifier filter |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/assessments/{assessmentId}/history/questions?questionId={STRING}&size={INTEGER}&cursor={STRING}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "type": "ASSESSMENT_SENT",
- "data": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "content": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}, - "metadata": {
- "principalId": "0a52818d-1e0c-4e64-848e-4d04f9e914e5",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}Get question answer by ID
Permission required: followingQuestionnaires: READ_ONLY
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionId required | string <uuid> (questionnaire.ElementId) Question unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/assessments/{assessmentId}/questions/{questionId} \ --header 'Authorization: Bearer {TOKEN}'
{- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "answer": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "content": [
- {
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
], - "content": {
- "type": "EMPTY"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "question": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}
}Get all assessment comments
Permission required: followingQuestionnaires: READ_ONLY
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/assessments/{assessmentId}/comments?size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "content": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}
]
}Get all assessment elements
Permission required: followingQuestionnaires: READ_ONLY
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/assessments/{assessmentId}/elements?size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]
}Get all question answers for assessment
Permission required: followingQuestionnaires: READ_ONLY
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| order | string Sort order |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
| sort | string Sort field |
| status | string (questionnaire.AnswerStatus) Enum: "NEW" "REQUESTED_REVIEW" "REQUESTED_CLARIFICATION" "APPROVED" "REJECTED" "SKIPPED" Filter by answer status |
| title | string Filter by question title |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/assessments/{assessmentId}/questions?order={STRING}&sort={STRING}&status={STRING}&title={STRING}&size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "answer": {
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "content": [
- {
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
], - "content": {
- "type": "EMPTY"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}, - "question": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "order": "string",
- "type": "QUESTION",
- "props": {
- "title": "string",
- "description": "string",
- "params": {
- "type": "TEXT",
- "required": true
}
}, - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}
}
]
}List assessments
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
Filter criteria
| createdAfterEnd | string (common.UTCDate) |
| createdAfterStart | string (common.UTCDate) |
| dueDateAfterEnd | string (common.UTCDate) |
| dueDateAfterStart | string (common.UTCDate) |
| order | string (common.Sort) Enum: "DESC" "ASC" |
| questionnaireName | string |
| receiverName | string |
| senderName | string |
| sort | string |
| status | string (questionnaire.AssessmentStatus) Enum: "NEW" "REQUESTED_REVIEW" "REQUESTED_CLARIFICATION" "APPROVED" "REJECTED" |
{- "order": "DESC",
- "sort": "string",
- "questionnaireName": "string",
- "status": "NEW",
- "senderName": "string",
- "receiverName": "string",
- "createdAfterStart": "string",
- "createdAfterEnd": "string",
- "dueDateAfterStart": "string",
- "dueDateAfterEnd": "string"
}{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "dueDate": "2019-08-24T14:15:22Z",
- "firstRequestedReviewAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "status": "NEW",
- "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}Get all question comments
Permission required: followingQuestionnaires: READ_ONLY
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionId required | string <uuid> (questionnaire.ElementId) Question unique identifier |
| page | integer <uint16> >= 1 Default: 1 |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/assessments/{assessmentId}/questions/{questionId}/comments?size={INTEGER}&page={INTEGER}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "content": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
]
}
]
}Get assessment dashboard summary
Permission required: followingQuestionnaires: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| createdAfterEnd | string (common.UTCDate) Filter by created date end |
| createdAfterStart | string (common.UTCDate) Filter by created date start |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/summary/assessments?createdAfterStart={STRING}&createdAfterEnd={STRING}' \ --header 'Authorization: Bearer {TOKEN}'
{- "totalAssessments": 0,
- "assessmentsByStatus": { },
- "assessmentsByMonth": { }
}Update answer status
Permission required: followingQuestionnaires: FULL_ACCESS
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| questionId required | string <uuid> (questionnaire.ElementId) Question unique identifier |
Answer status update data
| status required | string (questionnaire.AnswerStatus) Enum: "NEW" "REQUESTED_REVIEW" "REQUESTED_CLARIFICATION" "APPROVED" "REJECTED" "SKIPPED" |
{- "status": "NEW"
}{- "assessmentId": "673a0734-83cc-415f-a672-f8ef54b2727c",
- "questionId": "ffa0420e-f70b-4e5b-99a0-434bff860467",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "content": [
- {
- "attachmentIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "attachments": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "fileName": "string",
- "contentLength": 0,
- "contentType": "string",
- "contentMD5": "string",
- "url": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "expiresAt": "2019-08-24T14:15:22Z"
}
], - "content": {
- "type": "EMPTY"
}, - "createdAt": "2019-08-24T14:15:22Z"
}
], - "status": "NEW",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Update assessment status
Permission required: followingQuestionnaires: FULL_ACCESS
| assessmentId required | string <uuid> (questionnaire.AssessmentId) Assessment unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Status update data
| status required | string (questionnaire.AssessmentStatus) Enum: "NEW" "REQUESTED_REVIEW" "REQUESTED_CLARIFICATION" "APPROVED" "REJECTED" |
{- "status": "NEW"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33",
- "questionnaireVersion": 0,
- "senderId": "6b2f63ba-164c-48c9-87b1-690cee2b3da3",
- "receiverId": "2ec2e5a9-5968-4568-baf3-a525f7f8b9a6",
- "dueDate": "2019-08-24T14:15:22Z",
- "firstRequestedReviewAt": "2019-08-24T14:15:22Z",
- "name": "string",
- "description": "string",
- "status": "NEW",
- "contactInformation": [
- {
- "name": "string",
- "email": "string",
- "phone": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Create Role
Creates a new custom role within the specified organization. Roles define permission sets that can be assigned to organization members, controlling their access to various features and resources.
Permission required: organizationMembers: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Role data to create
| description required | string |
| followerAssessments required | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| followerOrganizations required | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| followingAlerts required | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| followingAssessments required | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| followingOrganizations required | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| followingOrganizationsTags | Array of strings |
| followingQuestionnaires required | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| landingPage required | string (role.RoleLandingPage) Enum: "ORGANIZATION_DASHBOARD" "ORGANIZATION_MEMBERS" "ORGANIZATION_SETTINGS" "FOLLOWING_DASHBOARD" "FOLLOWERS_DASHBOARD" |
| name required | string |
| organizationAlerts required | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| organizationMembers required | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| organizationScanTargets required | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| organizationScanTargetsTags | Array of strings |
| organizationSettings required | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
{- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}Delete Role
Permanently removes a custom role from the organization. This action cannot be undone. Members assigned to this role will lose the associated permissions.
Permission required: organizationMembers: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| roleId required | string <uuid> (common.Id) Role unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/roles/{roleId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}Get Role
Retrieves detailed information about a specific organization role, including its permissions, settings, and configuration.
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| roleId required | string <uuid> (common.Id) Role unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/roles/{roleId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}List Roles
Retrieves all custom roles available within the specified organization. This includes both built-in and custom-created roles.
Permission required: organizationMembers: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/roles \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}
]Update Role
Modifies an existing organization role's settings, permissions, and properties. Changes will affect all members currently assigned to this role.
Permission required: organizationMembers: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| roleId required | string <uuid> (common.Id) Role unique identifier |
Role data to update
| description | string |
| followerAssessments | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| followerOrganizations | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| followingAlerts | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| followingAssessments | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| followingOrganizations | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| followingOrganizationsTags | Array of strings |
| followingQuestionnaires | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| landingPage | string (role.RoleLandingPage) Enum: "ORGANIZATION_DASHBOARD" "ORGANIZATION_MEMBERS" "ORGANIZATION_SETTINGS" "FOLLOWING_DASHBOARD" "FOLLOWERS_DASHBOARD" |
| name | string |
| organizationAlerts | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| organizationMembers | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| organizationScanTargets | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
| organizationScanTargetsTags | Array of strings |
| organizationSettings | string (role.RolePermission) Enum: "FULL_ACCESS" "READ_ONLY" "NO_ACCESS" |
{- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "description": "string",
- "landingPage": "ORGANIZATION_DASHBOARD",
- "organizationSettings": "FULL_ACCESS",
- "organizationMembers": "FULL_ACCESS",
- "organizationAlerts": "FULL_ACCESS",
- "organizationScanTargets": "FULL_ACCESS",
- "organizationScanTargetsTags": [
- "string"
], - "followingAlerts": "FULL_ACCESS",
- "followingQuestionnaires": "FULL_ACCESS",
- "followingAssessments": "FULL_ACCESS",
- "followingOrganizations": "FULL_ACCESS",
- "followingOrganizationsTags": [
- "string"
], - "followerAssessments": "FULL_ACCESS",
- "followerOrganizations": "FULL_ACCESS"
}Create scan target
Permission required: organizationScanTargets: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Scan target data
object DEPRECATED (replace by metadata) - Credentials | |||||
| |||||
| groupId | string <uuid> Scan Target Group unique identifier, which this scan target belongs | ||||
| kind required | string Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" "SENTINEL_ONE" The type of resource this scan target represents, either a cloud service provider or external attack surface asset | ||||
| name required | string The scan target display name as chosen during onboarding | ||||
| notification | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" List of alert severities that should send a notification when occur | ||||
object Configuration specific for the scan target kind, for now handles ASM scan modes | |||||
| |||||
object How frequently this scan target will be scheduled for scanning | |||||
| |||||
required | share.ShareAll (object) or share.ShareNone (object) or share.ShareFollowers (object) Scan Target sharing and visibility configuration | ||||
Any of
| |||||
| tags required | Array of strings (scantarget.ScanTargetTag) List of identification tags added to this scan target, can be used for specific sharing modes | ||||
{- "name": "string",
- "kind": "AWS",
- "options": {
- "scanMode": "BACKGROUND"
}, - "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "notification": [
- "CRITICAL"
], - "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}Delete scan target
Permission required: organizationScanTargets: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| scanTargetId required | string <uuid> (scantarget.ScanTargetId) Scan target unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets/{scanTargetId} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Get scan target by ID
Permission required: organizationScanTargets: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| scanTargetId required | string <uuid> (scantarget.ScanTargetId) Scan target unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets/{scanTargetId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}Get scan target tags
Permission required: organizationScanTargets: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets/tags \ --header 'Authorization: Bearer {TOKEN}'
[- "string"
]Get all scan targets
Permission required: organizationScanTargets: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargets \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}
]Update scan target
Permission required: organizationScanTargets: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| scanTargetId required | string <uuid> (scantarget.ScanTargetId) Scan target unique identifier |
Updated scan target data
| account | string DEPRECATED (will be on metadata) - The main identifier of the resource this scan target represents, such as an AWS account ID, Azure tenant ID, GCP project name or DNS domain; the format will depend on which kind of scan target this is | ||||
object DEPRECATED (replace by metadata) - Credentials | |||||
| |||||
| groupId | string <uuid> Scan Target Group unique identifier, which this scan target belongs | ||||
| name | string The scan target display name as chosen during onboarding | ||||
| notification | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" List of alert severities that should send a notification when occur | ||||
object Configuration specific for the scan target kind, for now handles ASM scan modes | |||||
| |||||
object How frequently this scan target will be scheduled for scanning | |||||
| |||||
share.ShareAll (object) or share.ShareNone (object) or share.ShareFollowers (object) Scan Target sharing and visibility configuration | |||||
Any of
| |||||
| status | string Enum: "NEW" "ACTIVE" "SUSPENDED" "RUNNING" "ERROR" "INVALID_CREDENTIAL" The current status of the scan target | ||||
| tags | Array of strings (scantarget.ScanTargetTag) List of identification tags added to this scan target, can be used for specific sharing modes | ||||
{- "name": "string",
- "options": {
- "scanMode": "BACKGROUND"
}, - "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "status": "NEW",
- "notification": [
- "CRITICAL"
], - "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}Create scan target group
Permission required: organizationScanTargets: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Scan target group data
object (scantarget.ScanTargetGroupCredential) | |||||
| |||||
| kind required | string (scantarget.ScanTargetGroupKind) Enum: "ORACLE" "BITBUCKET" "GITLAB" "MONGODB_ATLAS" "CLOUDFLARE" "IBM_CLOUD" | ||||
| name required | string | ||||
| notification | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" | ||||
object (scantarget.ScanTargetSchedule) | |||||
| |||||
{- "name": "string",
- "kind": "ORACLE",
- "credential": { },
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "notification": [
- "CRITICAL"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "kind": "ORACLE",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "notification": [
- "CRITICAL"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Create scan targets by compartments in a group
Permission required: organizationScanTargets: FULL_ACCESS
| groupId required | string <uuid> (scantarget.ScanTargetGroupId) Scan target group unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Scan targets creation data
required | Array of scantarget.BitbucketTarget (object) or scantarget.OracleTarget (object) or scantarget.GitlabTarget (object) or scantarget.MongoDBAtlasTarget (object) or scantarget.CloudflareTarget (object) or scantarget.IbmCloudTarget (object) | ||||||||
Array Any of
| |||||||||
{- "scanTargets": [
- {
- "workspaceName": "string",
- "workspaceId": "string",
- "tags": [
- "string"
], - "share": {
- "mode": "ALL"
}
}
]
}[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}
]Delete scan target group
Permission required: organizationScanTargets: FULL_ACCESS
| groupId required | string <uuid> (scantarget.ScanTargetGroupId) Scan target group unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| deleteScanTargets | boolean Whether to delete associated scan targets |
curl --request DELETE \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargetgroups/{groupId}?deleteScanTargets=SOME_BOOLEAN_VALUE' \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Get scan target group by ID
Permission required: organizationScanTargets: READ_ONLY
| groupId required | string <uuid> (scantarget.ScanTargetGroupId) Scan target group unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargetgroups/{groupId} \ --header 'Authorization: Bearer {TOKEN}'
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "kind": "ORACLE",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "notification": [
- "CRITICAL"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Get scan target group script
Permission required: organizationScanTargets: READ_ONLY
| groupId required | string <uuid> (scantarget.ScanTargetGroupId) Scan target group unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargetgroups/{groupId}/scripts \ --header 'Authorization: Bearer {TOKEN}'
{- "script": "string"
}List scan target compartments by kind in a group
Permission required: organizationScanTargets: READ_ONLY
| groupId required | string <uuid> (scantarget.ScanTargetGroupId) Scan target group unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargetgroups/{groupId}/targets \ --header 'Authorization: Bearer {TOKEN}'
[- { }
]Get all scan target groups
Permission required: organizationScanTargets: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargetgroups \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "kind": "ORACLE",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "notification": [
- "CRITICAL"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]Get all scan targets in a group
Permission required: organizationScanTargets: READ_ONLY
| groupId required | string <uuid> (scantarget.ScanTargetGroupId) Scan target group unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/scantargetgroups/{groupId}/scantargets \ --header 'Authorization: Bearer {TOKEN}'
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "name": "string",
- "kind": "AWS",
- "groupId": "eb54e96e-21b8-4f54-9cd4-80fccbd06f55",
- "account": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "credential": { },
- "status": "NEW",
- "notification": [
- "CRITICAL"
], - "lastScan": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "currentScanSlot": "2019-08-24T14:15:22Z",
- "lastScanSlot": "2019-08-24T14:15:22Z",
- "share": {
- "mode": "ALL"
}, - "tags": [
- "string"
]
}
]Sign scan target group
Permission required: organizationScanTargets: FULL_ACCESS
| groupId required | string <uuid> (scantarget.ScanTargetGroupId) Scan target group unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Signing data
required | object (scantarget.ScanTargetGroupCredential) | ||
| |||
{- "credential": { }
}{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Update scan target group
Permission required: organizationScanTargets: FULL_ACCESS
| groupId required | string <uuid> (scantarget.ScanTargetGroupId) Scan target group unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Updated scan target group data
| name required | string | ||||
| notification | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" | ||||
object (scantarget.ScanTargetSchedule) | |||||
| |||||
{- "name": "string",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "notification": [
- "CRITICAL"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "kind": "ORACLE",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "schedule": {
- "frequency": "string",
- "timeOfDay": "string"
}, - "notification": [
- "CRITICAL"
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Update scan target group credential
Permission required: organizationScanTargets: FULL_ACCESS
| groupId required | string <uuid> (scantarget.ScanTargetGroupId) Scan target group unique identifier |
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Credential data
required | object (scantarget.ScanTargetGroupCredential) | ||
| |||
{- "credential": { }
}{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Get compliance detail summary
Permission required: organizationScanTargets: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for compliance detail summary
required | object (summary.Compliance) | ||||
| |||||
| includeEmptyScanTargetTags | boolean (common.IncludeEmptyScanTargetTags) (Optional) Return objects without any ScanTarget tags. | ||||
| scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] | ||||
| scanTargetTags | Array of strings (scantarget.ScanTargetTag) | ||||
| severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" | ||||
{- "compliance": {
- "id": "string",
- "version": "string"
}, - "scanTargetTags": [
- "string"
], - "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "severities": [
- "CRITICAL"
], - "includeEmptyScanTargetTags": true
}{- "data": [
- {
- "complianceId": "string",
- "complianceVersion": "string",
- "complianceItem": "string",
- "complianceTitle": "string",
- "alertResolved": 0,
- "alertDiscovered": 0,
- "alertRemaining": 0,
- "alertTimely": 0,
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}Get compliance overtime summary
Permission required: organizationScanTargets: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for compliance overtime summary
required | object (summary.Compliance) | ||||
| |||||
| dates required | Array of strings (common.UTCDate) | ||||
| includeEmptyScanTargetTags | boolean (common.IncludeEmptyScanTargetTags) (Optional) Return objects without any ScanTarget tags. | ||||
| scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ items <uuid > ] | ||||
| scanTargetTags | Array of strings (scantarget.ScanTargetTag) | ||||
| severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" | ||||
{- "compliance": {
- "id": "string",
- "version": "string"
}, - "dates": [
- "string"
], - "scanTargetTags": [
- "string"
], - "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "severities": [
- "CRITICAL"
], - "includeEmptyScanTargetTags": true
}{- "data": [
- {
- "date": "string",
- "organizationTotal": 0,
- "scanTargetTotal": 0,
- "complianceTotal": 0,
- "complianceCovered": 0,
- "compliancePassed": 0,
- "complianceFailed": 0
}
], - "cursor": "string"
}Get compliance detail summary for followed organizations
Permission required: followingAlerts: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for following compliance detail summary
required | object (summary.Compliance) | ||||
| |||||
| followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] | ||||
| followingTags | Array of strings (follow.FollowTag) | ||||
| includeEmptyFollowingTags | boolean (common.IncludeEmptyFollowingTags) (Optional) Return objects without any Following tags. | ||||
| severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" | ||||
{- "compliance": {
- "id": "string",
- "version": "string"
}, - "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "followingTags": [
- "string"
], - "severities": [
- "CRITICAL"
], - "includeEmptyFollowingTags": true
}{- "data": [
- {
- "complianceId": "string",
- "complianceVersion": "string",
- "complianceItem": "string",
- "complianceTitle": "string",
- "alertResolved": 0,
- "alertDiscovered": 0,
- "alertRemaining": 0,
- "alertTimely": 0,
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}Get compliance overtime summary for followed organizations
Permission required: followingAlerts: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for following compliance overtime summary
required | object (summary.Compliance) | ||||
| |||||
| dates required | Array of strings (common.UTCDate) | ||||
| followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] | ||||
| followingTags | Array of strings (follow.FollowTag) | ||||
| includeEmptyFollowingTags | boolean (common.IncludeEmptyFollowingTags) (Optional) Return objects without any Following tags. | ||||
| severities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" | ||||
{- "compliance": {
- "id": "string",
- "version": "string"
}, - "dates": [
- "string"
], - "followingTags": [
- "string"
], - "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "severities": [
- "CRITICAL"
], - "includeEmptyFollowingTags": true
}{- "data": [
- {
- "date": "string",
- "organizationTotal": 0,
- "scanTargetTotal": 0,
- "complianceTotal": 0,
- "complianceCovered": 0,
- "compliancePassed": 0,
- "complianceFailed": 0
}
], - "cursor": "string"
}Get scan target detail summary for followed organizations
Permission required: followingOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for scan target detail summary
| alertSeverities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
| followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] |
| followingTags | Array of strings (follow.FollowTag) |
| includeEmptyFollowingTags | boolean |
| scanTargetKinds | Array of strings (scantarget.ScanTargetKind) Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" "SENTINEL_ONE" |
{- "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "followingTags": [
- "string"
], - "scanTargetKinds": [
- "AWS"
], - "alertSeverities": [
- "CRITICAL"
], - "includeEmptyFollowingTags": true
}{- "data": [
- {
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetKind": "AWS",
- "scanTargetTotal": 0,
- "alertSummary": { },
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}Get scan target overtime summary for followed organizations
Permission required: followingOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for scan target overtime summary
| alertSeverities | Array of strings (alert.AlertSeverity) Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
| dates required | Array of strings (common.UTCDate) |
| followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] |
| followingTags | Array of strings (follow.FollowTag) |
| includeEmptyFollowingTags | boolean |
| scanTargetKinds | Array of strings (scantarget.ScanTargetKind) Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" "SENTINEL_ONE" |
{- "dates": [
- "string"
], - "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "followingTags": [
- "string"
], - "scanTargetKinds": [
- "AWS"
], - "alertSeverities": [
- "CRITICAL"
], - "includeEmptyFollowingTags": true
}{- "data": [
- {
- "date": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "scanTargetKind": "AWS",
- "scanTargetTotal": 0,
- "alertSummary": { },
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}Get score detail summary for followed organizations
Permission required: followingOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for following score detail summary
| followerId | string <uuid> (organization.OrganizationId) |
| followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] |
| followingTags | Array of strings (follow.FollowTag) |
{- "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "followingTags": [
- "string"
], - "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0"
}{- "data": [
- {
- "date": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "score": 0
}
], - "cursor": "string"
}Get score overtime summary for followed organizations
Permission required: followingOrganizations: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for following score overtime summary
| dates required | Array of strings (common.UTCDate) |
| followerId | string <uuid> (organization.OrganizationId) |
| followingIds | Array of strings <uuid> (organization.OrganizationId) [ items <uuid > ] |
| followingTags | Array of strings (follow.FollowTag) |
{- "dates": [
- "string"
], - "followingIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "followingTags": [
- "string"
], - "followerId": "62213f7a-f0bf-47a0-a6dd-74e2885412b0"
}{- "data": [
- {
- "date": "string",
- "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
- "score": 0
}
], - "cursor": "string"
}Get scan target detail summary
Permission required: organizationScanTargets: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for scan target detail summary
| alertSeverities | Array of strings (alert.AlertSeverity) non-empty Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
| includeEmptyScanTargetTags | boolean |
| scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ 1 .. 10 ] items [ items <uuid > ] |
| scanTargetKinds | Array of strings (scantarget.ScanTargetKind) non-empty Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" "SENTINEL_ONE" |
| scanTargetTags | Array of strings (scantarget.ScanTargetTag) non-empty |
{- "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "scanTargetTags": [
- "string"
], - "scanTargetKinds": [
- "AWS"
], - "alertSeverities": [
- "CRITICAL"
], - "includeEmptyScanTargetTags": true
}{- "data": [
- {
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "scanTargetKind": "AWS",
- "alertSummary": { },
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}Get scan target overtime summary
Permission required: organizationScanTargets: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for scan target overtime summary
| alertSeverities | Array of strings (alert.AlertSeverity) non-empty Items Enum: "CRITICAL" "HIGH" "MEDIUM" "LOW" "INFO" |
| dates required | Array of strings (common.UTCDate) |
| includeEmptyScanTargetTags | boolean |
| scanTargetIds | Array of strings <uuid> (scantarget.ScanTargetId) [ 1 .. 10 ] items [ items <uuid > ] |
| scanTargetKinds | Array of strings (scantarget.ScanTargetKind) non-empty Items Enum: "AWS" "AZURE" "BITBUCKET" "DOMAIN" "GCP" "GITHUB" "GITLAB" "GWORKSPACE" "HUAWEI" "JIRA" "MONGODB_ATLAS" "MS365" "ORACLE" "SALESFORCE" "SLACK" "ZENDESK" "CLOUDFLARE" "CROWDSTRIKE_FALCON" "BITDEFENDER" "SENTINEL_ONE" |
| scanTargetTags | Array of strings (scantarget.ScanTargetTag) non-empty |
{- "dates": [
- "string"
], - "scanTargetIds": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "scanTargetTags": [
- "string"
], - "scanTargetKinds": [
- "AWS"
], - "alertSeverities": [
- "CRITICAL"
], - "includeEmptyScanTargetTags": true
}{- "data": [
- {
- "date": "string",
- "scanTargetId": "32633caa-78f8-40bd-b819-2deeb6a14790",
- "scanTargetKind": "AWS",
- "alertSummary": { },
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "cursor": "string"
}Get score detail summary
Permission required: organizationSettings: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for score detail summary
{ }{- "data": [
- {
- "date": "string",
- "overallScore": 0,
- "publicScore": 0
}
], - "cursor": "string"
}Get score overtime summary
Permission required: organizationSettings: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Filter criteria for score overtime summary
| dates required | Array of strings (common.UTCDate) |
{- "dates": [
- "string"
]
}{- "data": [
- {
- "date": "string",
- "overallScore": 0,
- "publicScore": 0
}
], - "cursor": "string"
}Create Webhook
Permission required: organizationSettings: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
Webhook Data to create
webhook.WebhookAuthorizationBasic (object) or webhook.WebhookAuthorizationApiKey (object) or webhook.WebhookAuthorizationNone (object) The authorization configuration for the webhook | |||||||
Any of
| |||||||
| description required | string The webhook description | ||||||
required | Array of alert.AlertEventName (string) or alert.AlertCommentEventName (string) or questionnaire.AnswerEventName (string) or questionnaire.AssessmentEventName (string) or questionnaire.AssessmentCommentEventName (string) or follow.FollowerEventName (string) or follow.FollowingEventName (string) or member.MemberEventName (string) or organization.OrganizationEventName (string) or questionnaire.QuestionEventName (string) or questionnaire.QuestionnaireEventName (string) or scan.ScanEventName (string) or scantarget.ScanTargetEventName (string) or webhook.WebhookEventName (string) List of events that trigger this webhook | ||||||
Array Any of string (alert.AlertEventName) Enum: "AlertCreated" "AlertUpdated" "AlertFollowingCreated" "AlertFollowingUpdated" | |||||||
| name required | string The webhook name | ||||||
| url required | string The webhook URL endpoint | ||||||
{- "name": "Security Alerts Webhook",
- "description": "Webhook for receiving security alerts and notifications",
- "events": [
- "WebhookCreated",
- "WebhookUpdated"
]
}{- "organizationId": "00000000-0000-4000-a000-000000000001",
- "id": "00000000-0000-4000-a000-000000000002",
- "name": "Security Alerts Webhook",
- "description": "Webhook for receiving security alerts and notifications",
- "authorizationType": "API_KEY",
- "events": [
- "WebhookCreated",
- "WebhookUpdated"
], - "status": "ACTIVE",
- "metadata": {
- "department": "security",
- "priority": "high"
}, - "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z"
}Delete Webhook
Permission required: organizationSettings: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| webhookId required | string <uuid> (webhook.WebhookId) Webhook unique identifier |
curl --request DELETE \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/webhooks/{webhookId} \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Get Webhook
Permission required: organizationSettings: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| webhookId required | string <uuid> (webhook.WebhookId) Webhook unique identifier |
curl --request GET \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/webhooks/{webhookId} \ --header 'Authorization: Bearer {TOKEN}'
{- "organizationId": "00000000-0000-4000-a000-000000000001",
- "id": "00000000-0000-4000-a000-000000000002",
- "name": "Security Alerts Webhook",
- "description": "Webhook for receiving security alerts and notifications",
- "authorizationType": "API_KEY",
- "events": [
- "WebhookCreated",
- "WebhookUpdated"
], - "status": "ACTIVE",
- "metadata": {
- "department": "security",
- "priority": "high"
}, - "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z"
}An endpoint to get the usage metrics of a specific webhook.
Permission required: organizationSettings: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| webhookId required | string <uuid> (webhook.WebhookId) Webhook unique identifier |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/webhooks/{webhookId}/metrics \ --header 'Authorization: Bearer {TOKEN}'
{- "invocations": {
- "timestamps": [
- "2019-08-24T14:15:22Z"
], - "values": [
- 0
]
}, - "failedInvocations": {
- "timestamps": [
- "2019-08-24T14:15:22Z"
], - "values": [
- 0
]
}
}List Webhooks
Permission required: organizationSettings: READ_ONLY
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| cursor | string |
| size | integer <uint16> [ 1 .. 1000 ] Default: 25 |
curl --request GET \ --url 'https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/webhooks?size={INTEGER}&cursor={STRING}' \ --header 'Authorization: Bearer {TOKEN}'
{- "data": [
- {
- "organizationId": "00000000-0000-4000-a000-000000000001",
- "id": "00000000-0000-4000-a000-000000000002",
- "name": "Security Alerts Webhook",
- "description": "Webhook for receiving security alerts and notifications",
- "authorizationType": "API_KEY",
- "events": [
- "WebhookCreated",
- "WebhookUpdated"
], - "status": "ACTIVE",
- "metadata": {
- "department": "security",
- "priority": "high"
}, - "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z"
}
], - "cursor": "string"
}Send a ping event to test the webhook.
Permission required: organizationSettings: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| webhookId required | string <uuid> (webhook.WebhookId) Webhook unique identifier |
curl --request POST \ --url https://api.zanshin.tenchisecurity.com/organizations/{organizationId}/webhooks/{webhookId}/ping \ --header 'Authorization: Bearer {TOKEN}'
{- "statusCode": 400,
- "error": "BadRequest",
- "message": "BadRequest"
}Update Webhook
Permission required: organizationSettings: FULL_ACCESS
| organizationId required | string <uuid> (organization.OrganizationId) Organization unique identifier |
| webhookId required | string <uuid> (webhook.WebhookId) Webhook unique identifier |
Webhook Data to update
webhook.WebhookAuthorizationBasic (object) or webhook.WebhookAuthorizationApiKey (object) or webhook.WebhookAuthorizationNone (object) The authorization configuration for the webhook | |||||||
Any of
| |||||||
| description | string The webhook description | ||||||
Array of alert.AlertEventName (string) or alert.AlertCommentEventName (string) or questionnaire.AnswerEventName (string) or questionnaire.AssessmentEventName (string) or questionnaire.AssessmentCommentEventName (string) or follow.FollowerEventName (string) or follow.FollowingEventName (string) or member.MemberEventName (string) or organization.OrganizationEventName (string) or questionnaire.QuestionEventName (string) or questionnaire.QuestionnaireEventName (string) or scan.ScanEventName (string) or scantarget.ScanTargetEventName (string) or webhook.WebhookEventName (string) List of events that trigger this webhook | |||||||
Array Any of string (alert.AlertEventName) Enum: "AlertCreated" "AlertUpdated" "AlertFollowingCreated" "AlertFollowingUpdated" | |||||||
| name | string The webhook name | ||||||
| url | string The webhook URL endpoint | ||||||
{- "name": "Security Alerts Webhook",
- "description": "Webhook for receiving security alerts and notifications",
- "events": [
- "WebhookCreated",
- "WebhookUpdated"
]
}{- "organizationId": "00000000-0000-4000-a000-000000000001",
- "id": "00000000-0000-4000-a000-000000000002",
- "name": "Security Alerts Webhook",
- "description": "Webhook for receiving security alerts and notifications",
- "authorizationType": "API_KEY",
- "events": [
- "WebhookCreated",
- "WebhookUpdated"
], - "status": "ACTIVE",
- "metadata": {
- "department": "security",
- "priority": "high"
}, - "createdAt": "2023-01-01T00:00:00.000Z",
- "updatedAt": "2023-01-15T10:30:00.000Z"
}