Get alert schedules

GET/projects/{projectId}/entities/{entityId}/alertSchedules

Base URL: https://api.tinkermode.com

Get a list of alert schedules for this entity.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain the key of a user or service account with permissions to read alert schedules of the entity or a project API key.

Path parameters

NameTypeRequiredConstraintsDescription
projectIdintegerYesThe unique ID for a specified project.
entityIdstringYesEntity ID (unique within project)

Query parameters

NameTypeRequiredConstraintsDescription
includeDescendantsbooleanNoIf true, the result also includes alert schedules attached to the entity's descendants. Alert schedules of descendants that the requesting user has no permission to view are excluded. Defaults to false.
limitintegerNodefault: 25; min: 1; max: 100Maximum number of alert schedules to return.
skipintegerNodefault: 0; min: 0Number of alert schedules to skip over.

Responses

200 Successfully retrieved the alert schedules.

Content type: application/json

Represents an alert schedule

An array of objects with the following shape:

PropertyTypeRequiredConstraintsDescription
descriptionstringNodefault: ""Optional description for the alert schedule
entityIdstringNoOptional entity ID if the schedule is associated with a specific entity
namestringNoThe name of the alert schedule
projectIdintegerNoThe unique identifier for the project the alert rule belongs to
timeZonestringNoThe time zone to use for the schedule (IANA time zone database format, e.g. 'America/New_York')
weeklySchedulesobjectNoWeekly schedule configuration

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.