Zenduty is a cutting edge platform for incident management. With high level automation, Zenduty enables faster and better incident resolution keeping developers first.
Javascript Libraries: https://github.com/Zenduty/zenduty-js
Ruby Libraries: https://github.com/Zenduty/zenduty-ruby
Python Libraries: https://github.com/Zenduty/zenduty-python-sdk
Postman Collection for Zenduty API: https://github.com/Zenduty/zenduty-api-postman.git
Account-level roles and permissions: https://docs.zenduty.com/docs/users#account-level-roles-and-permissions
Team-level roles and permissions: https://docs.zenduty.com/docs/users#team-level-roles-and-permissions
This object represents a user of the account. Each account member object has a role, which can be owner, admin, or user. Each account has a single owner, but the admins and users can be multiple.
Returns an Account Member object.
Request body parameters to create the Account Member object
team required | string A system-generated string that represents the Team object's unique_id |
required | object User object schema |
{- "team": "db61f7ed-ba78-4536-9b2d-256b135a731d",
- "user_detail": {
- "first_name": "Michael",
- "last_name": "Scott",
- "email": "michaelscott@zenduty.com",
- "role": 3
}
}
{- "unique_id": "e6931b6d-55d7-45e4-9f30-4dbf72bbcf06",
- "team": "db61f7ed-ba78-4536-9b2d-256b135a731d",
- "user": {
- "username": "39f4dedd-2754-4ee1-9c0c-1",
- "first_name": "Michael",
- "last_name": "Scott",
- "email": "michaelscott@zenduty.com"
}, - "joining_date": "2022-09-20T14:29:05.997454Z",
- "role": 2
}
Returns a list of Account Member objects. The Account Member objects are sorted by joining_date, with the most recent Account Member object appearing last.
[- {
- "unique_id": "96f437aa-ae86-46cc-a01a-b2ede620d25a",
- "time_zone": "UTC",
- "user": {
- "username": "216bba3d-7268-4a8e-89e9-6",
- "first_name": "Anshul",
- "last_name": "Rajput",
- "email": "anshulrajput229@gmail.com"
}, - "joining_date": "2022-07-08T10:28:36.804578Z",
- "role": 1,
- "is_verified": false
}, - {
- "unique_id": "49868e5e-aa68-471b-82e2-10b6238f42f6",
- "time_zone": "UTC",
- "user": {
- "username": "507dfda0-a1fd-40e5-943a-e",
- "first_name": "Mary",
- "last_name": "Jane",
- "email": "maryjane@sharklasers.com"
}, - "joining_date": "2022-07-08T10:31:56.830785Z",
- "role": 3,
- "is_verified": false
}, - {
- "unique_id": "ab188a19-7f5c-4f6f-b7cd-d1bfa0725dcd",
- "time_zone": "UTC",
- "user": {
- "username": "85b563c8-18d0-4668-9462-9",
- "first_name": "Vishwa",
- "last_name": "Krishnakumar",
- "email": "vishwa@yellowant.com"
}, - "joining_date": "2022-07-08T10:32:42.191552Z",
- "role": 2,
- "is_verified": false
}
]
Retrieve the specified Account Member object.
username required | string A system-generated string that represents the User object's username |
{- "unique_id": "ab188a19-7f5c-4f6f-b7cd-d1bfa0725dcd",
- "time_zone": "UTC",
- "user": {
- "username": "85b563c8-18d0-4668-9462-9",
- "first_name": "Vishwa",
- "last_name": "Krishnakumar",
- "email": "vishwa@yellowant.com"
}, - "joining_date": "2022-07-08T10:32:42.191552Z",
- "role": 2,
- "is_verified": false
}
Updates the specified Account Member object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
username required | string A system-generated string that represents the User object's username |
Request body parameters to update the Account Member object
time_zone | string Default: "UTC" A formatted string that represents the Account Member object's time zone. You can check out the time zone list here https://timezonedb.com/time-zones |
required | object (User) User object schema |
role | integer Default: 3 An integer that represents the Account Member object's role. 1 is owner, 2 is admin and 3 is user |
{- "user": {
- "username": "507dfda0-a1fd-40e5-943a-e",
- "first_name": "Mary",
- "last_name": "Jane"
}, - "role": 2
}
{- "unique_id": "49868e5e-aa68-471b-82e2-10b6238f42f6",
- "time_zone": "UTC",
- "user": {
- "username": "507dfda0-a1fd-40e5-943a-e",
- "first_name": "Mary",
- "last_name": "Jane",
- "email": "maryjane@sharklasers.com"
}, - "joining_date": "2022-07-08T10:31:56.830785Z",
- "role": 2,
- "is_verified": false
}
Delete the specified Account Member object
Request body parameters to create the Account Member object
username required | string A system-generated string that represents the User object's username |
{- "username": "6b2af4db-8b31-4bfb-9742-4"
}
{- "detail": "This request can not be processed."
}
This object represents a custom role of the account. Each custom role object has custom permissions, which the account admin can set from account level permissions and assign this custom role to a particular user.
Create the Account Custom Role object by setting the values of all the required parameters passed in the request body.
Request body parameters to create the Account Custom Role object
name | string A string that represents the unique name for Account Custom Role object |
description | string A string that represents the description for Account Custom Role object |
permissions required | Array of strings An array of account level permissions |
{- "name": "Role 1",
- "description": "Role 1 Description",
- "permissions": [
- "sla_read"
]
}
{- "unique_id": "97208d3e-e45d-409a-b951-4eae928a59b9",
- "name": "Role 1",
- "description": "Role 1 Description"
}
Returns a list of Account Custom Role objects.
[- {
- "unique_id": "ddf61a4d-6489-4665-bee6-7e21205f9d6f",
- "name": "Role 1 Updated",
- "description": "Role 1 Description",
- "permissions": [
- "member_read",
- "schedule_read",
- "team_read"
]
}, - {
- "unique_id": "97208d3e-e45d-409a-b951-4eae928a59b9",
- "name": "Role 2",
- "description": "Role 1 Description",
- "permissions": [
- "member_read",
- "sla_read",
- "team_read"
]
}, - {
- "unique_id": "0d087386-cebf-47ee-8dd3-c52f05c43128",
- "name": "w4e5rty",
- "description": "ew4rtyg",
- "permissions": [
- "escalation_policy_read",
- "incident_read",
- "incident_role_read",
- "member_read",
- "priority_read",
- "schedule_read",
- "service_read",
- "sla_read",
- "tag_read",
- "task_template_read",
- "team_read"
]
}
]
Retrieve the specified Account Custom Role object.
custom_role_id required | string unique_id of the Account Custom Role object |
{- "unique_id": "ddf61a4d-6489-4665-bee6-7e21205f9d6f",
- "name": "Role 1 Updated",
- "description": "Role 1 Description",
- "permissions": [
- "member_read",
- "schedule_read",
- "team_read"
]
}
Updates the specified Account Custom Role object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
custom_role_id required | string unique_id of the Account Custom Role object |
Request body parameters to update the Account Custom Role object
name | string A string that represents the unique name for Account Custom Role object |
description | string A string that represents the description for Account Custom Role object |
permissions required | Array of strings An array of account level permissions |
{- "name": "Role Updated",
- "permissions": [
- "sla_read"
]
}
{- "unique_id": "ddf61a4d-6489-4665-bee6-7e21205f9d6f",
- "name": "Role Updated",
- "description": "Role 1 Description"
}
Delete the specified Account Custom Role object permanently.
custom_role_id required | string unique_id of the Account Custom Role object |
{- "detail": "This request can not be processed."
}
This object represents a user's custom role. Each user can be assigned to only one custom role.
Create the User Custom Role object by setting the values of all the required parameters passed in the request body.
username required | string username of the User object |
Request body parameters to create the User Custom Role object
custom_role required | string A system-generated string that represents the User Custom Role object's unique_id |
{- "custom_role": "ddf61a4d-6489-4665-bee6-7e21205f9d6f"
}
{- "user": "6278fd1d-7e7c-486a-80e3-5",
- "custom_role": "ddf61a4d-6489-4665-bee6-7e21205f9d6f",
- "custom_role_details": {
- "name": "Role Updated"
}
}
Returns a list of User Custom Role objects.
username required | string username of the User object |
{- "user": "6278fd1d-7e7c-486a-80e3-5",
- "custom_role": "ddf61a4d-6489-4665-bee6-7e21205f9d6f",
- "custom_role_details": {
- "name": "Role Updated"
}
}
This object represents a user's notification rules. A user can have notification rules for high urgency and low urgency incidents.
Create the User Notification Rules object by setting the values of all the required parameters passed in the request body.
username required | string username of the User object |
Request body parameters to create the User Notification Rule object
contact required | string A system-generated string that represents the User Contact Method object's unique_id |
start_delay | integer An integer that represents the User Notification Rules object's delay field in minutes. |
urgency | integer An integer that represents the User Notification Rules object's urgency field. 1 is for high urgency incidents and 0 is for low urgency incidents. |
{- "start_delay": 0,
- "contact": "caabda03-5e15-4cf1-b293-fab41b688ac7",
- "urgency": 1
}
{- "creation_date": "2023-03-01T15:28:35.582391Z",
- "start_delay": 0,
- "type": "",
- "unique_id": "3433edb5-f589-4227-baa5-a6646d93e76b",
- "contact": "caabda03-5e15-4cf1-b293-fab41b688ac7",
- "urgency": 1
}
Returns a list of User Notification Rule objects.
username required | string username of the User object |
[- {
- "creation_date": "2023-03-01T15:20:45.565595Z",
- "start_delay": 0,
- "type": "",
- "unique_id": "1d757ec0-39d3-4cd0-9536-7e0bb3e2665c",
- "contact": "374d3e48-b4bd-438d-8e18-d69ddeadd183",
- "urgency": 1
}, - {
- "creation_date": "2023-03-01T15:20:45.922128Z",
- "start_delay": 0,
- "type": "",
- "unique_id": "68ed337e-8481-4cca-81da-b35342660377",
- "contact": "caabda03-5e15-4cf1-b293-fab41b688ac7",
- "urgency": 1
}, - {
- "creation_date": "2023-03-01T15:28:35.582391Z",
- "start_delay": 5,
- "type": "",
- "unique_id": "3433edb5-f589-4227-baa5-a6646d93e76b",
- "contact": "caabda03-5e15-4cf1-b293-fab41b688ac7",
- "urgency": 1
}
]
Retrieve the specified User's Notification Rule object.
username required | string username of the User object |
notification_rule_id required | string unique_id of the User Notification Rule object |
{- "creation_date": "2023-03-01T15:20:45.565595Z",
- "start_delay": 5,
- "type": "",
- "unique_id": "1d757ec0-39d3-4cd0-9536-7e0bb3e2665c",
- "contact": "374d3e48-b4bd-438d-8e18-d69ddeadd183",
- "urgency": 1
}
Delete the specified User Notification Rules object permanently.
username required | string username of the User object |
notification_rule_id required | string unique_id of the User Notification Rule object |
{- "detail": "This request can not be processed."
}
This object represents a user's forwarding rules. A user can forward his notifications to the other account members in case an incident occurs.
Create the User's Forwarding Rules object by setting the values of all the required parameters passed in the request body.
username required | string username of the User object |
Request body parameters to create the User Forwarding Rules object
from_date required | string <date-time> A formatted string that represents the User Forwarding Rule object's from_date field |
to_date required | string <date-time> A formatted string that represents the User Forwarding Rule object's to_date field |
time_zone | string A formatted string that represents the User Forwarding Rule object's time zone. You can check out the time zone list here https://timezonedb.com/time-zones |
to_user required | string A system-generated string that represents the User object's username |
{- "from_date": "2023-03-01T16:37:58.654Z",
- "to_date": "2023-03-01T16:37:58.654Z",
- "time_zone": "UTC",
- "to_user": "7e26fed1-f11c-4e78-afc6-a"
}
{- "creation_date": "2023-03-01T16:43:00.031310Z",
- "unique_id": "8bd02ac2-07fe-4d32-a37f-e1def9673746",
- "time_zone": "UTC",
- "from_date": "2023-03-01T16:37:58.654000Z",
- "to_date": "2023-03-01T16:37:58.654000Z",
- "to_user": "7e26fed1-f11c-4e78-afc6-a",
- "created_by": "7e26fed1-f11c-4e78-afc6-a",
- "user": "4f9f41eb-4252-462e-9e33-6"
}
Returns a list of User Forwarding Rule objects.
username required | string username of the User object |
[- {
- "creation_date": "2023-03-01T16:38:22.540374Z",
- "unique_id": "a6011d7c-3a44-4cab-8580-a410881f4ff9",
- "time_zone": "UTC",
- "from_date": "2023-03-01T16:37:58.654000Z",
- "to_date": "2023-03-01T16:37:58.654000Z",
- "to_user": "7e26fed1-f11c-4e78-afc6-a",
- "created_by": "7e26fed1-f11c-4e78-afc6-a",
- "user": "4f9f41eb-4252-462e-9e33-6"
}, - {
- "creation_date": "2023-03-01T16:44:31.446633Z",
- "unique_id": "e2c523b9-af2b-4e66-a3fd-338bd7ffc641",
- "time_zone": "UTC",
- "from_date": "2023-03-01T16:44:22.757000Z",
- "to_date": "2023-03-01T16:44:22.757000Z",
- "to_user": "25692874-e54d-4101-bbfc-7",
- "created_by": "7e26fed1-f11c-4e78-afc6-a",
- "user": "4f9f41eb-4252-462e-9e33-6"
}
]
Retrieve the specified User's Forwarding Rules object.
username required | string username of the User object |
forwarding_rule_id required | string unique_id of the User Forwarding Rules object |
{- "creation_date": "2023-03-01T16:38:22.540374Z",
- "unique_id": "a6011d7c-3a44-4cab-8580-a410881f4ff9",
- "time_zone": "UTC",
- "from_date": "2023-03-01T16:37:58.654000Z",
- "to_date": "2023-03-01T16:37:58.654000Z",
- "to_user": "7e26fed1-f11c-4e78-afc6-a",
- "created_by": "7e26fed1-f11c-4e78-afc6-a",
- "user": "4f9f41eb-4252-462e-9e33-6"
}
Delete the specified User's Forwarding Rules object permanently.
username required | string username of the User object |
forwarding_rule_id required | string unique_id of the User Forwarding Rules object |
{- "detail": "This request can not be processed."
}
This object represents one of the following communication channels(Email, SMS, Phone Call, Slack, Microsoft Team, Google Chat). A user can add multiple contacts methods.
Create the User Contact Methods object by setting the values of all the required parameters passed in the request body. A user can only create email Contact Methods through API.
username required | string username of the User object |
Request body parameters to create the User Contact Methods object
name required | string A string that represents the User Contact Method object's name field |
value required | string A formatted string that represents the User Contact Method object's value field. value can be Email ID, Phone Number, Slack ID, Microsoft ID, Google Chat ID. |
contact_type required | integer An integer that represents the User Contact Method object's contact_type field. 1 is for Email, 2 is for SMS, 3 is for Phone Call, 4 is for Slack, 5 is for MS Teams and 6 is for Google Chat |
{- "name": "Secondary Email",
- "value": "anshulrajput229@gmail.com",
- "contact_type": 1
}
{- "name": "Secondary Email",
- "creation_date": "2023-03-02",
- "contact_type": 1,
- "value": "anshulrajput229@gmail.com",
- "unique_id": "8a862f18-9332-4d08-90ad-06c070803c05"
}
Returns a list of User Contact Method objects.
username required | string username of the User object |
[- {
- "name": "Primary Email",
- "creation_date": "2023-02-14",
- "contact_type": 1,
- "value": "user@three.com",
- "unique_id": "374d3e48-b4bd-438d-8e18-d69ddeadd183"
}, - {
- "name": "Primary",
- "creation_date": "2023-03-01",
- "contact_type": 2,
- "value": "+91 86993 62839",
- "unique_id": "caabda03-5e15-4cf1-b293-fab41b688ac7"
}, - {
- "name": "Secondary Email",
- "creation_date": "2023-03-02",
- "contact_type": 1,
- "value": "anshulrajput229@gmail.com",
- "unique_id": "8a862f18-9332-4d08-90ad-06c070803c05"
}
]
Retrieve the specified User's Contact Methods object.
username required | string username of the User object |
contact_id required | string unique_id of the User Contact Methods object |
{- "name": "Primary Email",
- "creation_date": "2023-02-14",
- "contact_type": 1,
- "value": "user@three.com",
- "unique_id": "374d3e48-b4bd-438d-8e18-d69ddeadd183"
}
Delete the specified User's Contact Methods object permanently.
username required | string username of the User object |
contact_id required | string unique_id of the User Contact Methods object |
{- "detail": "This request can not be processed."
}
This object represents a team of the account. It lets you create different independent operational units in the account. You can check out the team docs here https://docs.zenduty.com/docs/teams.
Create the Team object by setting the values of all the required parameters passed in the request body.
Request body parameters to create the Team object
name required | string A that represents the Team object's name |
{- "name": "Production Team"
}
{- "unique_id": "61010821-08aa-4098-94f8-f88f1990b54a",
- "name": "Production Team",
- "account": "0713dc12-40b0-46ff-b0f9-c6b126399277",
- "creation_date": "2022-07-08",
- "members": [
- {
- "unique_id": "d916157c-ff8b-43be-8e99-4b63699fdf72",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "user": {
- "username": "216bba3d-7268-4a8e-89e9-6",
- "first_name": "Anshul",
- "last_name": "Rajput",
- "email": "anshulrajput229@gmail.com"
}, - "joining_date": "2022-07-08T10:41:36.600148Z",
- "role": 1
}
], - "owner": "216bba3d-7268-4a8e-89e9-6",
- "roles": [
- {
- "unique_id": "89752b4a-43df-401d-9dc0-a446690a7a0e",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "title": "Incident Commander",
- "description": "The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.",
- "creation_date": "2022-07-08T10:41:36.623257Z",
- "rank": 1
}
]
}
Returns a list of Team objects. The Team objects are sorted by creation_date, with the most recent Team object appearing last.
[- {
- "unique_id": "1f1b4d79-ed32-44fc-926d-f794b975200c",
- "name": "Operation Team",
- "account": "0713dc12-40b0-46ff-b0f9-c6b126399277",
- "creation_date": "2022-07-08",
- "members": [
- {
- "unique_id": "90a97f10-d290-4bd0-9f83-525f130c6399",
- "team": "1f1b4d79-ed32-44fc-926d-f794b975200c",
- "user": {
- "username": "216bba3d-7268-4a8e-89e9-6",
- "first_name": "Anshul",
- "last_name": "Rajput",
- "email": "anshulrajput229@gmail.com"
}, - "joining_date": "2022-07-08T10:29:36.408864Z",
- "role": 1
}, - {
- "unique_id": "4af52265-b69e-4cd0-948a-fba33933588d",
- "team": "1f1b4d79-ed32-44fc-926d-f794b975200c",
- "user": {
- "username": "507dfda0-a1fd-40e5-943a-e",
- "first_name": "Mary",
- "last_name": "Jane",
- "email": "maryjane@sharklasers.com"
}, - "joining_date": "2022-07-08T10:31:56.849950Z",
- "role": 2
}, - {
- "unique_id": "76e76d20-2c82-49be-b987-244c8c6af57b",
- "team": "1f1b4d79-ed32-44fc-926d-f794b975200c",
- "user": {
- "username": "85b563c8-18d0-4668-9462-9",
- "first_name": "Vishwa",
- "last_name": "Krishnakumar",
- "email": "vishwa@yellowant.com"
}, - "joining_date": "2022-07-08T10:32:42.213487Z",
- "role": 2
}
], - "owner": "216bba3d-7268-4a8e-89e9-6",
- "roles": [
- {
- "unique_id": "ce2e4fec-7fb9-440c-b400-9a33639d8ba3",
- "team": "1f1b4d79-ed32-44fc-926d-f794b975200c",
- "title": "Incident Commander",
- "description": "The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.",
- "creation_date": "2022-07-08T10:29:36.431801Z",
- "rank": 1
}
]
}, - {
- "unique_id": "61010821-08aa-4098-94f8-f88f1990b54a",
- "name": "Production Team",
- "account": "0713dc12-40b0-46ff-b0f9-c6b126399277",
- "creation_date": "2022-07-08",
- "members": [
- {
- "unique_id": "d916157c-ff8b-43be-8e99-4b63699fdf72",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "user": {
- "username": "216bba3d-7268-4a8e-89e9-6",
- "first_name": "Anshul",
- "last_name": "Rajput",
- "email": "anshulrajput229@gmail.com"
}, - "joining_date": "2022-07-08T10:41:36.600148Z",
- "role": 1
}
], - "owner": "216bba3d-7268-4a8e-89e9-6",
- "roles": [
- {
- "unique_id": "89752b4a-43df-401d-9dc0-a446690a7a0e",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "title": "Incident Commander",
- "description": "The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.",
- "creation_date": "2022-07-08T10:41:36.623257Z",
- "rank": 1
}
]
}
]
Retrieve the specified Team object.
team_id required | string unique_id of the Team object |
{- "unique_id": "1f1b4d79-ed32-44fc-926d-f794b975200c",
- "name": "Operation Team",
- "account": "0713dc12-40b0-46ff-b0f9-c6b126399277",
- "creation_date": "2022-07-08",
- "members": [
- {
- "unique_id": "90a97f10-d290-4bd0-9f83-525f130c6399",
- "team": "1f1b4d79-ed32-44fc-926d-f794b975200c",
- "user": {
- "username": "216bba3d-7268-4a8e-89e9-6",
- "first_name": "Anshul",
- "last_name": "Rajput",
- "email": "anshulrajput229@gmail.com"
}, - "joining_date": "2022-07-08T10:29:36.408864Z",
- "role": 1
}, - {
- "unique_id": "4af52265-b69e-4cd0-948a-fba33933588d",
- "team": "1f1b4d79-ed32-44fc-926d-f794b975200c",
- "user": {
- "username": "507dfda0-a1fd-40e5-943a-e",
- "first_name": "Mary",
- "last_name": "Jane",
- "email": "maryjane@sharklasers.com"
}, - "joining_date": "2022-07-08T10:31:56.849950Z",
- "role": 2
}, - {
- "unique_id": "76e76d20-2c82-49be-b987-244c8c6af57b",
- "team": "1f1b4d79-ed32-44fc-926d-f794b975200c",
- "user": {
- "username": "85b563c8-18d0-4668-9462-9",
- "first_name": "Vishwa",
- "last_name": "Krishnakumar",
- "email": "vishwa@yellowant.com"
}, - "joining_date": "2022-07-08T10:32:42.213487Z",
- "role": 2
}
], - "owner": "216bba3d-7268-4a8e-89e9-6",
- "roles": [
- {
- "unique_id": "ce2e4fec-7fb9-440c-b400-9a33639d8ba3",
- "team": "1f1b4d79-ed32-44fc-926d-f794b975200c",
- "title": "Incident Commander",
- "description": "The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.",
- "creation_date": "2022-07-08T10:29:36.431801Z",
- "rank": 1
}
]
}
Updates the specified Team object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
Request body parameters to update the Team object
name required | string A that represents the Team object's name |
{- "name": "Modified Production Team"
}
{- "unique_id": "61010821-08aa-4098-94f8-f88f1990b54a",
- "name": "Modified Production Team",
- "account": "0713dc12-40b0-46ff-b0f9-c6b126399277",
- "creation_date": "2022-07-08",
- "members": [
- {
- "unique_id": "d916157c-ff8b-43be-8e99-4b63699fdf72",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "user": {
- "username": "216bba3d-7268-4a8e-89e9-6",
- "first_name": "Anshul",
- "last_name": "Rajput",
- "email": "anshulrajput229@gmail.com"
}, - "joining_date": "2022-07-08T10:41:36.600148Z",
- "role": 1
}
], - "owner": "216bba3d-7268-4a8e-89e9-6",
- "roles": [
- {
- "unique_id": "89752b4a-43df-401d-9dc0-a446690a7a0e",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "title": "Incident Commander",
- "description": "The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.",
- "creation_date": "2022-07-08T10:41:36.623257Z",
- "rank": 1
}
]
}
This object represents the users of a team. Each team member has a role which can be a manager or a user. You can checkout the team member docs here https://docs.zenduty.com/docs/users
Create the Team Member object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to create the Team Member object
user required | string A string that represents the User's username |
role | integer Default: 2 An integer that represents the Team Member object's role. 1 is manager and 2 is user |
{- "user": "507dfda0-a1fd-40e5-943a-e"
}
{- "unique_id": "828e4a7b-bb12-4ffc-baa5-7681634d4f7f",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "user": "507dfda0-a1fd-40e5-943a-e",
- "joining_date": "2022-07-08T11:09:38.230395Z",
- "role": 2
}
Returns a list of Team Member objects. The Team Member objects are sorted by joining_date, with the most recent Team Member object appearing last.
team_id required | string unique_id of the Team object |
[- {
- "unique_id": "d916157c-ff8b-43be-8e99-4b63699fdf72",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "user": {
- "username": "216bba3d-7268-4a8e-89e9-6",
- "first_name": "Anshul",
- "last_name": "Rajput",
- "email": "anshulrajput229@gmail.com"
}, - "joining_date": "2022-07-08T10:41:36.600148Z",
- "role": 1
}, - {
- "unique_id": "828e4a7b-bb12-4ffc-baa5-7681634d4f7f",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "user": {
- "username": "507dfda0-a1fd-40e5-943a-e",
- "first_name": "Mary",
- "last_name": "Jane",
- "email": "maryjane@sharklasers.com"
}, - "joining_date": "2022-07-08T11:09:38.230395Z",
- "role": 2
}
]
Retrieve the specified Team Member object.
team_id required | string unique_id of the Team object |
member_id required | string unique_id of the Team Member object |
{- "unique_id": "828e4a7b-bb12-4ffc-baa5-7681634d4f7f",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "user": {
- "username": "507dfda0-a1fd-40e5-943a-e",
- "first_name": "Mary",
- "last_name": "Jane",
- "email": "maryjane@sharklasers.com"
}, - "joining_date": "2022-07-08T11:09:38.230395Z",
- "role": 2
}
Updates the specified Team Member object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
member_id required | string unique_id of the Team Member object |
Request body parameters to update the Team Member object
user required | string A string that represents the User's username |
role | integer Default: 2 An integer that represents the Team Member object's role. 1 is manager and 2 is user |
{- "user": "507dfda0-a1fd-40e5-943a-e",
- "role": 1
}
{- "unique_id": "828e4a7b-bb12-4ffc-baa5-7681634d4f7f",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "user": "507dfda0-a1fd-40e5-943a-e",
- "joining_date": "2022-07-08T11:09:38.230395Z",
- "role": 1
}
Delete the specified Team Member object permanently.
team_id required | string unique_id of the Team object |
member_id required | string unique_id of the Team Member object |
{- "detail": "This request can not be processed."
}
This object represents the permissions of a team. It lets you access the particular team elements that the team has given permissions to use.
Returns a particular Team Permission object.
team_id required | string unique_id of the Team object |
{- "unique_id": "5f9a92c2-ddf2-4e71-862c-b4bbe959df24",
- "account_permissions": [
- "schedule_read",
- "member_read",
- "team_read",
- "sla_read",
- "incident_read",
- "incident_role_read",
- "escalation_policy_read",
- "tag_read",
- "service_read",
- "task_template_read",
- "priority_read"
]
}
Update the Team Permission object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to update the Team Permission object
account_permissions required | Array of strings An array of team level permissions |
{- "account_permissions": [
- "member_read",
- "schedule_read",
- "team_read",
- "sla_read",
- "incident_read"
]
}
{- "unique_id": "5f9a92c2-ddf2-4e71-862c-b4bbe959df24",
- "account_permissions": [
- "schedule_read",
- "member_read",
- "team_read",
- "sla_read",
- "incident_read",
- "incident_role_read",
- "escalation_policy_read",
- "tag_read",
- "service_read",
- "task_template_read",
- "priority_read"
]
}
This object represents the schedule of a team. You can checkout the schedule docs here https://docs.zenduty.com/docs/schedules
Create the Schedule object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to create the Schedule object
name required | string A string that represents the Schedule object's name |
summary | string A string that represents the Schedule object's summary |
description | string A string that represents the Schedule object's description |
time_zone | string A formatted string that represents the Schedule object's time zone. You can check out the time zone list here https://timezonedb.com/time-zones |
Array of objects (ScheduleLayerPayload) An array of Schedule Layer objects | |
Array of objects (ScheduleOverridePayload) An array of Schedule Overrides objects |
{- "name": "Daily Schedule",
- "summary": "Daily on call schedule for modified production team",
- "time_zone": "Asia/Kolkata"
}
{- "name": "Daily Schedule",
- "summary": "Daily on call schedule for modified production team",
- "description": "",
- "time_zone": "Asia/Kolkata",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "layers": [ ],
- "overrides": [ ],
- "unique_id": "dadcec8e-e4d7-4e76-8a24-d8d6c1278d1f"
}
Returns a list of Schedule objects.
team_id required | string unique_id of the Team object |
[- {
- "name": "Weekly Schedule",
- "summary": "Weekly on call schedule for modified production team.",
- "description": "",
- "time_zone": "Asia/Calcutta",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "layers": [
- {
- "shift_length": 604800,
- "restrictions": [
- {
- "duration": 14400,
- "start_day_of_week": 7,
- "start_time_of_day": "00:00:00",
- "unique_id": "35199b5e-a4ce-4456-8b97-2f3ee2083a85"
}
], - "name": "Schedule Layer 1",
- "users": [
- {
- "user": "216bba3d-7268-4a8e-89e9-6",
- "position": 1,
- "unique_id": "d8772886-1812-4a03-9a48-051d34547cf4"
}, - {
- "user": "507dfda0-a1fd-40e5-943a-e",
- "position": 2,
- "unique_id": "8c3c8573-3e3c-442d-accd-4a62fee485e9"
}
], - "rotation_start_time": "2022-07-08T11:26:33Z",
- "rotation_end_time": "2023-07-15T11:26:33Z",
- "unique_id": "a5ec8d44-572b-4ecd-9935-078aef6a2837",
- "last_edited": "2022-07-08T11:28:47.218341Z",
- "restriction_type": 1,
- "is_active": true
}
], - "overrides": [
- {
- "name": "Override for Anshul",
- "user": "507dfda0-a1fd-40e5-943a-e",
- "start_time": "2022-07-09T05:57:14Z",
- "end_time": "2022-07-10T05:57:14Z",
- "unique_id": "b4492ce7-7d6e-4ed1-8f41-e7c8bf4f4dfe"
}
], - "unique_id": "4a3025f3-836f-4d18-8923-7adfe5690d17"
}, - {
- "name": "Daily Schedule",
- "summary": "Daily on call schedule for modified production team",
- "description": "",
- "time_zone": "Asia/Kolkata",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "layers": [ ],
- "overrides": [ ],
- "unique_id": "dadcec8e-e4d7-4e76-8a24-d8d6c1278d1f"
}
]
Retrieve the specified Schedule object.
team_id required | string unique_id of the Team object |
schedule_id required | string unique_id of the Schedule object |
{- "name": "Weekly Schedule",
- "summary": "Weekly on call schedule for modified production team.",
- "description": "",
- "time_zone": "Asia/Calcutta",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "layers": [
- {
- "shift_length": 604800,
- "restrictions": [
- {
- "duration": 14400,
- "start_day_of_week": 7,
- "start_time_of_day": "00:00:00",
- "unique_id": "35199b5e-a4ce-4456-8b97-2f3ee2083a85"
}
], - "name": "Schedule Layer 1",
- "users": [
- {
- "user": "216bba3d-7268-4a8e-89e9-6",
- "position": 1,
- "unique_id": "d8772886-1812-4a03-9a48-051d34547cf4"
}, - {
- "user": "507dfda0-a1fd-40e5-943a-e",
- "position": 2,
- "unique_id": "8c3c8573-3e3c-442d-accd-4a62fee485e9"
}
], - "rotation_start_time": "2022-07-08T11:26:33Z",
- "rotation_end_time": "2023-07-15T11:26:33Z",
- "unique_id": "a5ec8d44-572b-4ecd-9935-078aef6a2837",
- "last_edited": "2022-07-08T11:28:47.218341Z",
- "restriction_type": 1,
- "is_active": true
}
], - "overrides": [
- {
- "name": "Override for Anshul",
- "user": "507dfda0-a1fd-40e5-943a-e",
- "start_time": "2022-07-09T05:57:14Z",
- "end_time": "2022-07-10T05:57:14Z",
- "unique_id": "b4492ce7-7d6e-4ed1-8f41-e7c8bf4f4dfe"
}
], - "unique_id": "4a3025f3-836f-4d18-8923-7adfe5690d17"
}
Updates the specified Schedule object by setting the values of the parameters passed in the request body.
team_id required | string unique_id of the Team object |
schedule_id required | string unique_id of the Schedule object |
Schedule update payload
name required | string A string that represents the Schedule object's name |
summary | string A string that represents the Schedule object's summary |
description | string A string that represents the Schedule object's description |
time_zone | string A formatted string that represents the Schedule object's time zone. You can check out the time zone list here https://timezonedb.com/time-zones |
Array of objects (ScheduleLayerPayload) An array of Schedule Layer objects | |
Array of objects (ScheduleOverridePayload) An array of Schedule Overrides objects |
{- "name": "Modified weekly Schedule"
}
{- "name": "Modified daily Schedule",
- "summary": "Daily on call schedule for modified production team",
- "description": "",
- "time_zone": "Asia/Kolkata",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "layers": [ ],
- "overrides": [ ],
- "unique_id": "dadcec8e-e4d7-4e76-8a24-d8d6c1278d1f"
}
Delete the specified Schedule object permanently.
team_id required | string unique_id of the Team object |
schedule_id required | string unique_id of the Schedule object |
{- "detail": "This request can not be processed."
}
This object represents the Override of a Schedule. You can checkout the Schedule Override docs here https://docs.zenduty.com/docs/schedules/#schedule-override
Create the Schedule Override object by setting the values of all the required parameters passed in the request body. (Note - Rate limits are 1/sec and 20/minute)
team_id required | string unique_id of the Team object |
schedule_id required | string unique_id of the Schedule object |
Request body parameters to create the Schedule Overrides object
name | string A string that represents the Schedule Overrides object's name |
user | string A string that represents the User object's username |
start_time | string A fromatted string that represents the Schedule Overrides object's start_time |
end_time | string A fromatted string that represents the Schedule Overrides object's end_time |
{- "name": "Override for Michael",
- "user": "507dfda0-a1fd-40e5-943a-e",
- "start_time": "2022-07-09T05:57:14Z",
- "end_time": "2022-07-10T05:57:14Z"
}
{- "name": "Override for Michael",
- "user": "507dfda0-a1fd-40e5-943a-e",
- "start_time": "2022-07-09T05:57:14Z",
- "end_time": "2022-07-10T05:57:14Z",
- "unique_id": "b4492ce7-7d6e-4ed1-8f41-e7c8bf4f4dfe"
}
Returns a list of Schedule override objects with overridden users and their respective start and end times. refer to overridden_details object key (Note - Rate limits are 1/sec and 20/minute)
team_id required | string unique_id of the Team object |
schedule_id required | string unique_id of the Schedule object |
[- {
- "name": "Override for Michael",
- "user": "507dfda0-a1fd-40e5-943a-e",
- "start_time": "2022-07-09T05:57:14Z",
- "end_time": "2022-07-10T05:57:14Z",
- "unique_id": "b4492ce7-7d6e-4ed1-8f41-e7c8bf4f4dfe",
- "overridden_details": {
- "-"1e57f783-cbd6-4021-811f-e"": [
- {
- "start_time": 1725349884,
- "end_time": 1725388199
}
]
}
}
]
This object represents the escalation policy of a team. You can checkout the escalation policy docs here https://docs.zenduty.com/docs/escalationpolicies
Create the Escalation Policy object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to create the Escalation Policy object
name required | string A string that represents the Escalation Policy object's name |
summary | string A string that represents the Escalation Policy object's summary |
description | string A string that represents the Escalation Policy object's description |
required | object (EP_RulePayload) Escalation Policy Rule Payload object schema |
{- "name": "Production Escalation Policy",
- "rules": [
- {
- "delay": 2,
- "targets": [
- {
- "target_type": 2,
- "target_id": "85b563c8-18d0-4668-9462-9"
}
], - "position": 1
}
]
}
{- "name": "Production Escalation Policy",
- "summary": "",
- "description": "",
- "rules": [
- {
- "delay": 2,
- "targets": [
- {
- "target_type": 2,
- "target_id": "85b563c8-18d0-4668-9462-9"
}
], - "position": 1,
- "unique_id": "32b594ec-72f6-4eeb-8024-ef25a8b9f97e"
}
], - "unique_id": "904cfcad-9fe1-4dc7-b578-ad0f5a2950fd",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "repeat_policy": 0,
- "move_to_next": true,
- "global_ep": false
}
Returns a list of Escalation Policy objects.
team_id required | string unique_id of the Team object |
[- {
- "name": "Default Escalation Policy",
- "summary": "This is the default escalation policy for this team",
- "description": "",
- "rules": [
- {
- "delay": 0,
- "targets": [
- {
- "target_type": 2,
- "target_id": "216bba3d-7268-4a8e-89e9-6"
}
], - "position": 1,
- "unique_id": "a857eb8b-28bf-4503-a1d5-a1d737c48fdc"
}
], - "unique_id": "19fdd4c3-0d4a-4a6e-9885-8c8d33ef1488",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "repeat_policy": 0,
- "move_to_next": true,
- "global_ep": false
}, - {
- "name": "Infra Escalation Policy",
- "summary": "",
- "description": "",
- "rules": [
- {
- "delay": 0,
- "targets": [
- {
- "target_type": 1,
- "target_id": "4a3025f3-836f-4d18-8923-7adfe5690d17"
}, - {
- "target_type": 2,
- "target_id": "507dfda0-a1fd-40e5-943a-e"
}, - {
- "target_type": 2,
- "target_id": "85b563c8-18d0-4668-9462-9"
}
], - "position": 1,
- "unique_id": "23077ffc-8529-4848-89d0-1a37bdf63d4e"
}, - {
- "delay": 4,
- "targets": [
- {
- "target_type": 2,
- "target_id": "216bba3d-7268-4a8e-89e9-6"
}
], - "position": 2,
- "unique_id": "5298ba34-f23d-49a6-a4a2-814a7beb4b54"
}
], - "unique_id": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "repeat_policy": 2,
- "move_to_next": true,
- "global_ep": false
}, - {
- "name": "Production Escalation Policy",
- "summary": "",
- "description": "",
- "rules": [
- {
- "delay": 2,
- "targets": [
- {
- "target_type": 2,
- "target_id": "85b563c8-18d0-4668-9462-9"
}
], - "position": 1,
- "unique_id": "32b594ec-72f6-4eeb-8024-ef25a8b9f97e"
}
], - "unique_id": "904cfcad-9fe1-4dc7-b578-ad0f5a2950fd",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "repeat_policy": 0,
- "move_to_next": true,
- "global_ep": false
}
]
team_id required | string unique_id of the Team object |
escalation_policy_id required | string unique_id of the Escalation Policy object |
{- "name": "Production Escalation Policy",
- "summary": "",
- "description": "",
- "rules": [
- {
- "delay": 2,
- "targets": [
- {
- "target_type": 2,
- "target_id": "85b563c8-18d0-4668-9462-9"
}
], - "position": 1,
- "unique_id": "32b594ec-72f6-4eeb-8024-ef25a8b9f97e"
}
], - "unique_id": "904cfcad-9fe1-4dc7-b578-ad0f5a2950fd",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "repeat_policy": 0,
- "move_to_next": true,
- "global_ep": false
}
Updates the specified Escalation Policy object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
escalation_policy_id required | string unique_id of the Escalation Policy object |
Request body parameters to update the Escalation Policy object
name required | string A string that represents the Escalation Policy object's name |
summary | string A string that represents the Escalation Policy object's summary |
description | string A string that represents the Escalation Policy object's description |
required | object (EP_RulePayload) Escalation Policy Rule Payload object schema |
{- "name": "Modified Production Escalation Policy",
- "rules": [
- {
- "delay": 2,
- "targets": [
- {
- "target_type": 2,
- "target_id": "85b563c8-18d0-4668-9462-9"
}
], - "position": 1
}
]
}
{- "name": "Modified Production Escalation Policy",
- "summary": "",
- "description": "",
- "rules": [
- {
- "delay": 2,
- "targets": [
- {
- "target_type": 2,
- "target_id": "85b563c8-18d0-4668-9462-9"
}
], - "position": 1,
- "unique_id": "f15f0044-25a1-4c60-888a-c7f1a6b7d4ce"
}
], - "unique_id": "904cfcad-9fe1-4dc7-b578-ad0f5a2950fd",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "repeat_policy": 0,
- "move_to_next": true,
- "global_ep": false
}
Delete the specified Escalation Policy object permanently.
team_id required | string unique_id of the Team object |
escalation_policy_id required | string unique_id of the Escalation Policy object |
{- "detail": "This request can not be processed."
}
This object represents the services associated with a team. You can checkout the services docs here https://docs.zenduty.com/docs/services
Create the Service object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to create the Service object
name | string A string that represents the Service object's name |
summary | string A string that represents the Service object's summary |
description | string A string that represents the Service object's description |
auto_resolve_timeout | integer Default: 0 An integer that represents the timeout for automatically resolving an Incident |
team_priority required | string A system-generated string that represents the Priority object's unique_id |
task_template | string A system-generated string that represents the Task Template object's unique_id |
acknowledgement_timeout_enabled | boolean Default: false An boolean flag that represents whether a service has acknowledgement timeout is enabled. If true, the "acknowledgement_timeout" field value needs to be set |
acknowledgement_timeout | integer Default: 600 An integer that represents the acknowledgement timeout value in seconds. If an incident is acknowledged and unresolved within this time window, the incident will be retriggered. This value must be above 600 seconds. |
status | integer Default: 1 An integer that represents the Service object's status 0 is disabled, 1 is active, 2 is a warning, 3 is critical, and 4 is under maintenance |
escalation_policy required | string A system-generated string that represents the Escalation Policy object's unique_id |
sla required | string A system-generated string that represents the SLA object's unique_id |
under_maintenance | boolean Default: false A boolean flag that represents whether the service object is under maintenance or not |
collation | integer Default: 0 An integer that represents the Service object's collation type. 0 is off, 1 is time-based. |
collation_time | integer Default: 0 An integer that represents the Service object's collation_time. When collation is turned on it needs to be greater than 1 minute & less than 1440 minutes. |
{- "name": "Production Service",
- "description": "This is the description for Production Service",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c"
}
{- "name": "Production Service",
- "creation_date": "2022-07-08T12:38:50.511179Z",
- "summary": "",
- "description": "This is the description for Production Service",
- "unique_id": "3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e",
- "auto_resolve_timeout": 0,
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "acknowledgement_timeout": 0,
- "acknowledgement_timeout_enabled": false,
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "collation_time": 0,
- "collation": 0,
- "under_maintenance": false
}
team_id required | string unique_id of the Team object |
[- {
- "name": "Infra Service",
- "creation_date": "2022-07-08T12:31:37.429973Z",
- "summary": "",
- "description": "This is the description for Infra Service",
- "unique_id": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "auto_resolve_timeout": 0,
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "acknowledgement_timeout": 0,
- "acknowledgement_timeout_enabled": false,
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "under_maintenance": false,
- "collation": 1,
- "collation_time": 2
}, - {
- "name": "Production Service",
- "creation_date": "2022-07-08T12:38:50.511179Z",
- "summary": "",
- "description": "This is the description for Production Service",
- "unique_id": "3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e",
- "auto_resolve_timeout": 0,
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "acknowledgement_timeout": 0,
- "acknowledgement_timeout_enabled": false,
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "under_maintenance": false,
- "collation": 0,
- "collation_time": 0
}
]
Retrieve the specified Service object.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
{- "name": "Production Service",
- "creation_date": "2022-07-08T12:38:50.511179Z",
- "summary": "",
- "description": "This is the description for Production Service",
- "unique_id": "3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e",
- "auto_resolve_timeout": 0,
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "acknowledgement_timeout": 0,
- "acknowledgement_timeout_enabled": false,
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "under_maintenance": false,
- "collation": 0,
- "collation_time": 0
}
Updates the specified Service object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
Request body parameters to update the Service object
name | string A string that represents the Service object's name |
summary | string A string that represents the Service object's summary |
description | string A string that represents the Service object's description |
auto_resolve_timeout | integer Default: 0 An integer that represents the timeout for automatically resolving an Incident |
team_priority required | string A system-generated string that represents the Priority object's unique_id |
task_template | string A system-generated string that represents the Task Template object's unique_id |
acknowledgement_timeout_enabled | boolean Default: false An boolean flag that represents whether a service has acknowledgement timeout is enabled. If true, the "acknowledgement_timeout" field value needs to be set |
acknowledgement_timeout | integer Default: 600 An integer that represents the acknowledgement timeout value in seconds. If an incident is acknowledged and unresolved within this time window, the incident will be retriggered. This value must be above 600 seconds. |
status | integer Default: 1 An integer that represents the Service object's status 0 is disabled, 1 is active, 2 is a warning, 3 is critical, and 4 is under maintenance |
escalation_policy required | string A system-generated string that represents the Escalation Policy object's unique_id |
sla required | string A system-generated string that represents the SLA object's unique_id |
under_maintenance | boolean Default: false A boolean flag that represents whether the service object is under maintenance or not |
collation | integer Default: 0 An integer that represents the Service object's collation type. 0 is off, 1 is time-based. |
collation_time | integer Default: 0 An integer that represents the Service object's collation_time. When collation is turned on it needs to be greater than 1 minute & less than 1440 minutes. |
{- "name": "Modified Production Service",
- "description": "This is the description for Production Service",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c"
}
{- "name": "Modified Production Service",
- "creation_date": "2022-07-08T12:38:50.511179Z",
- "summary": "",
- "description": "This is the description for Production Service",
- "unique_id": "3605fdfb-07fb-4a6c-bd05-9e557dc4ec6e",
- "auto_resolve_timeout": 0,
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "acknowledgement_timeout": 0,
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "collation_time": 0,
- "collation": 0,
- "under_maintenance": false
}
Delete the specified Service object permanently.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
{- "detail": "This request can not be processed."
}
This object represents the integrations associated with a service. You can checkout the integration docs here https://docs.zenduty.com/docs/integrations
Create the Integration object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
Request body parameters to create the Integration object
name | string A string that represents the Integration object's name |
summary | string A string that represents the Integration object's summary |
application required | string A system-generated string that represents the Application object's unique_id. To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application. |
is_enabled | boolean Default: true A boolean flag that represents whether an Integration is enabled or not |
create_incidents_for | integer Default: 1 An integer that represents the type of the Incidents this Integration object will create. 0 is do not create incidents. 1 is critical, 2 is critical and errors, and 3 is critical, errors and warnings. |
integration_type | integer Default: 0 An integer that represents the Integration object's integration_type. 0 is alert and 1 is outbound. |
default_urgency | integer Default: 1 An integer that represents the Integration object's default_urgency. 0 is low and 1 is high. |
{- "name": "Infra custom Integration",
- "summary": "This is the summary for Infra custom Integration",
- "application": "07c84d47-7e71-49ec-b781-1cc81a78086e"
}
{- "name": "Infra custom Integration",
- "creation_date": "2022-07-08T12:52:22.906327Z",
- "summary": "This is the summary for Infra custom Integration",
- "unique_id": "72da1133-a471-4e70-95f3-ce3a5650e9fd",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "application": "07c84d47-7e71-49ec-b781-1cc81a78086e",
- "application_reference": {
- "name": "Cloudwatch V2",
- "icon_url": "Cloudwatch V2",
- "summary": "Cloudwatch V2",
- "description": "Cloudwatch V2",
- "unique_id": "07c84d47-7e71-49ec-b781-1cc81a78086e",
- "availability_plan_id": 1,
- "setup_instructions": "<IntegrationURL/>",
- "extension": "cloudwatch_v2",
- "application_type": 0,
- "categories": "API,Analytics",
- "documentation_link": "Cloudwatch V2"
}, - "integration_key": "5f306dae-b327-4ba9-8f3a-ab4cffd57645",
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "is_enabled": true,
- "create_incidents_for": 1,
- "integration_type": 0,
- "default_urgency": 1,
}
Returns a list of Integration objects. The Integration objects are sorted by creation_date, with the most recent Integration object appearing last.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
[- {
- "name": "Cloudwatch V2",
- "creation_date": "2022-07-08T12:31:37.435711Z",
- "summary": "Edit summary for this integration",
- "unique_id": "de8830c5-8596-4ab6-937e-8d5df08499d8",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "application": "07c84d47-7e71-49ec-b781-1cc81a78086e",
- "application_reference": {
- "name": "Cloudwatch V2",
- "icon_url": "Cloudwatch V2",
- "summary": "Cloudwatch V2",
- "description": "Cloudwatch V2",
- "unique_id": "07c84d47-7e71-49ec-b781-1cc81a78086e",
- "availability_plan_id": 1,
- "setup_instructions": "<IntegrationURL/>",
- "extension": "cloudwatch_v2",
- "application_type": 0,
- "categories": "API,Analytics",
- "documentation_link": "Cloudwatch V2"
}, - "integration_key": "bf167d3d-93dc-43b6-9066-a10b0bafcc09",
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "is_enabled": true,
- "create_incidents_for": 1,
- "integration_type": 0,
- "default_urgency": 1,
}, - {
- "name": "Conference bridge",
- "creation_date": "2022-07-08T12:31:37.441939Z",
- "summary": "Edit summary for this integration",
- "unique_id": "38d5f0f9-a2d4-44dd-bc8c-4f2fdeea284e",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "application": "bbfdaa85-a1c1-4d0a-b59a-0e24f081d237",
- "application_reference": {
- "name": "Conference bridge",
- "summary": "Conference bridge",
- "description": "Conference bridge",
- "unique_id": "bbfdaa85-a1c1-4d0a-b59a-0e24f081d237",
- "availability_plan_id": 1,
- "setup_instructions": "Conference bridge",
- "extension": "conf",
- "application_type": 1,
- "categories": "API,Analytics,Collaboration",
}, - "integration_key": "9efb306f-49b2-4b76-a428-845c7782deed",
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "is_enabled": true,
- "create_incidents_for": 1,
- "integration_type": 0,
- "default_urgency": 1,
}, - {
- "name": "Jira (2-way)",
- "creation_date": "2022-07-08T12:31:37.448374Z",
- "summary": "Edit summary for this integration",
- "unique_id": "c6a8fdf5-51a5-42a2-b3c9-c2d74b870e71",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "application": "0625ca3a-b064-45d0-9438-ff09953ba7c2",
- "application_reference": {
- "name": "Jira (2-way)",
- "summary": "Sample jira 2way integration",
- "description": "Sample jira 2way integration",
- "unique_id": "0625ca3a-b064-45d0-9438-ff09953ba7c2",
- "availability_plan_id": 1,
- "extension": "jiracloud",
- "application_type": 1,
- "categories": "API,Popular",
}, - "integration_key": "5eb0fd9b-da65-4f36-8dff-f32fdd4dfdc9",
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "is_enabled": true,
- "create_incidents_for": 1,
- "integration_type": 0,
- "default_urgency": 1,
}, - {
- "name": "Zoom",
- "creation_date": "2022-07-08T12:31:37.453423Z",
- "summary": "Edit summary for this integration",
- "unique_id": "faa5594e-aea5-4c5a-9d2b-846c02bd8cf9",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "application": "41dc6d06-b33e-406d-a11f-efb11b74243c",
- "application_reference": {
- "name": "Zoom",
- "summary": "Zoom Outgoing",
- "description": "Zoom Outgoing",
- "unique_id": "41dc6d06-b33e-406d-a11f-efb11b74243c",
- "availability_plan_id": 1,
- "setup_instructions": "Some setup instructions",
- "extension": "zoom",
- "application_type": 1,
- "categories": "Popular,APM",
}, - "integration_key": "181c2f90-a04a-41e5-a7ca-a16d68296e82",
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "is_enabled": true,
- "create_incidents_for": 1,
- "integration_type": 0,
- "default_urgency": 1,
}, - {
- "name": "Infra custom Integration",
- "creation_date": "2022-07-08T12:52:22.906327Z",
- "summary": "This is the summary for Infra custom Integration",
- "unique_id": "72da1133-a471-4e70-95f3-ce3a5650e9fd",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "application": "07c84d47-7e71-49ec-b781-1cc81a78086e",
- "application_reference": {
- "name": "Cloudwatch V2",
- "icon_url": "Cloudwatch V2",
- "summary": "Cloudwatch V2",
- "description": "Cloudwatch V2",
- "unique_id": "07c84d47-7e71-49ec-b781-1cc81a78086e",
- "availability_plan_id": 1,
- "setup_instructions": "<IntegrationURL/>",
- "extension": "cloudwatch_v2",
- "application_type": 0,
- "categories": "API,Analytics",
- "documentation_link": "Cloudwatch V2"
}, - "integration_key": "5f306dae-b327-4ba9-8f3a-ab4cffd57645",
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "is_enabled": true,
- "create_incidents_for": 1,
- "integration_type": 0,
- "default_urgency": 1,
}
]
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
integration_id required | string unique_id of the Integration object |
{- "name": "Infra custom Integration",
- "creation_date": "2022-07-08T12:52:22.906327Z",
- "summary": "This is the summary for Infra custom Integration",
- "unique_id": "72da1133-a471-4e70-95f3-ce3a5650e9fd",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "application": "07c84d47-7e71-49ec-b781-1cc81a78086e",
- "application_reference": {
- "name": "Cloudwatch V2",
- "icon_url": "Cloudwatch V2",
- "summary": "Cloudwatch V2",
- "description": "Cloudwatch V2",
- "unique_id": "07c84d47-7e71-49ec-b781-1cc81a78086e",
- "availability_plan_id": 1,
- "setup_instructions": "<IntegrationURL/>",
- "extension": "cloudwatch_v2",
- "application_type": 0,
- "categories": "API,Analytics",
- "documentation_link": "Cloudwatch V2"
}, - "integration_key": "5f306dae-b327-4ba9-8f3a-ab4cffd57645",
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "is_enabled": true,
- "create_incidents_for": 1,
- "integration_type": 0,
- "default_urgency": 1,
}
Updates the specified Integration object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
integration_id required | string unique_id of the Integration object |
Request body parameters to update the Integration object
name | string A string that represents the Integration object's name |
summary | string A string that represents the Integration object's summary |
application required | string A system-generated string that represents the Application object's unique_id. To get application id, vist https://www.zenduty.com/api/account/applications/ and get unique_id of the application. |
is_enabled | boolean Default: true A boolean flag that represents whether an Integration is enabled or not |
create_incidents_for | integer Default: 1 An integer that represents the type of the Incidents this Integration object will create. 0 is do not create incidents. 1 is critical, 2 is critical and errors, and 3 is critical, errors and warnings. |
integration_type | integer Default: 0 An integer that represents the Integration object's integration_type. 0 is alert and 1 is outbound. |
default_urgency | integer Default: 1 An integer that represents the Integration object's default_urgency. 0 is low and 1 is high. |
{- "name": "Modified Infra custom Integration",
- "application": "07c84d47-7e71-49ec-b781-1cc81a78086e"
}
{- "name": "Modified Infra custom Integration",
- "creation_date": "2022-07-08T12:52:22.906327Z",
- "summary": "This is the summary for Infra custom Integration",
- "unique_id": "72da1133-a471-4e70-95f3-ce3a5650e9fd",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "application": "07c84d47-7e71-49ec-b781-1cc81a78086e",
- "application_reference": {
- "name": "Cloudwatch V2",
- "icon_url": "Cloudwatch V2",
- "summary": "Cloudwatch V2",
- "description": "Cloudwatch V2",
- "unique_id": "07c84d47-7e71-49ec-b781-1cc81a78086e",
- "availability_plan_id": 1,
- "setup_instructions": "<IntegrationURL/>",
- "extension": "cloudwatch_v2",
- "application_type": 0,
- "categories": "API,Analytics",
- "documentation_link": "Cloudwatch V2"
}, - "integration_key": "5f306dae-b327-4ba9-8f3a-ab4cffd57645",
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "is_enabled": true,
- "create_incidents_for": 1,
- "integration_type": 0,
- "default_urgency": 1,
}
Delete the specified Integration object permanently
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
integration_id required | string unique_id of the Integration object |
{- "detail": "This request can not be processed."
}
Regenerates the integration key.
The integration's unique ID
integration_unique_id | string A string that represents the relevant Integration's unique ID |
{- "integration_unique_id": "84753076-129d-4706-a957-a7c751ca7ab1"
}
{- "name": "AWS GuardDuty",
- "creation_date": "2024-07-01T10:16:32.036085Z",
- "summary": "AWS GuardDuty Integration",
- "unique_id": "84753076-129d-4706-a957-a7c751ca7ab1",
- "service": "34da0237-9825-454a-9297-3a23a4b78795",
- "application": "bb399bc6-9098-4afd-91d7-3cec4d8282eb",
- "application_reference": {
- "name": "AWS GuardDuty",
- "summary": "AWS GuardDuty Integration",
- "description": "AWS GuardDuty Integration",
- "unique_id": "bb399bc6-9098-4afd-91d7-3cec4d8282eb",
- "availability_plan_id": 4,
- "setup_instructions": "To integrate Zenduty with AWS GuardDuty, follow the steps below...",
- "extension": "guardduty",
- "application_type": 0,
- "categories": "Cloud Monitoring,Server/Network Monitoring",
- "is_active": 1
}, - "integration_key": "c89e320f-a975-47e4-8437-1169e91eeed7",
- "created_by": "39569d4b-6540-4b64-a086-6",
- "is_enabled": true,
- "create_incidents_for": 1,
- "integration_type": 0,
- "default_urgency": 1,
}
This object represents the incidents of the account. You can checkout the incident docs here https://docs.zenduty.com/docs/incidents
Returns a list of filtered Incident objects. The Incident objects are sorted by creation_date, with the most recent Incident object appearing last. for pagination please use 'next' and 'previous' links in the response.
page | integer pagination page number. example - |
Request body parameters to filter the Incident objects
all_teams | integer Default: 1 This query parameter can be |
escalation_policy_ids | Array of strings A list of escalation policy unique ids |
from_date | string Default: [] Represents from_date and filters incidents whose creation_date is greater than the specified from_date. example - |
postmortem_filter | integer Default: -1 An integer that represents weather the postmortem is attached to the incident or not |
priority_ids | Array of strings A list of Team Priority unique ids |
priority_name | string Name of the Team priroty object |
service_ids | Array of strings A list of Service unique ids |
sla_ids | Array of strings A list of Team SLA unique ids |
status | integer Default: 1 Status of the Incident object. For open incidents(triggered and acknowledged) use |
tag_ids | Array of strings A list of Team Tag unique ids |
team_ids | Array of strings A list of Team unique ids |
to_date | string Default: [] Represents to_date and filters incidents whose creation_date is lesser than the specified to_date. example - |
user_ids | Array of strings A list of User usernames |
{- "status": 1,
- "team_ids": [
- "4cce18ea-57c5-4beb-bca8-60dc7a68ae3a",
- "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
], - "all_teams": 1,
- "service_ids": [
- "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
], - "user_ids": [
- "7e26fed1-f11c-4e78-afc6-a"
], - "priority_name": "",
- "priority_ids": [
- "7064efff-55f2-448b-92e5-a3a53179aa76"
], - "tag_ids": [
- "bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4"
], - "sla_ids": [
- "f14a16aa-15d1-49a1-be27-0c266b15c7fa"
], - "from_date": [ ],
- "to_date": [ ],
- "postmortem_filter": -1,
- "escalation_policy_ids": [
- "52fe68d3-cead-40b3-b0ac-d616d38d8e32"
]
}
{- "results": [
- {
- "incident_number": 255,
- "creation_date": "2023-10-26T14:22:56.338690Z",
- "status": 1,
- "unique_id": "aYfQPqqEUGvoMPftRAMSaB",
- "sla": "f14a16aa-15d1-49a1-be27-0c266b15c7fa",
- "service_object": {
- "name": "Main",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888",
- "team": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c",
- "team_name": "Backend"
}, - "title": "[P-21041]Browser monitor global outage",
- "assigned_to_name": "Michael Scott",
- "tags": [
- {
- "unique_id": "4b2634c6-2c7c-40ea-9a30-020dfddee187",
- "incident": 255,
- "creation_date": "2023-10-26T14:22:56.475799Z",
- "name": "TAG",
- "color": "magenta",
- "tag_id": "bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4",
- "team_tag": "bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4"
}
], - "sla_object": {
- "unique_id": "f14a16aa-15d1-49a1-be27-0c266b15c7fa",
- "name": "SLA",
- "is_active": true,
- "acknowledge_time": 5,
- "resolve_time": 30,
- "creation_date": "2022-10-11T11:42:46.438776Z"
}, - "team_priority_object": {
- "unique_id": "7064efff-55f2-448b-92e5-a3a53179aa76",
- "name": "P1",
- "description": "P1 - high priority incidents",
- "color": "magenta"
}, - "is_child_incident": false,
- "postmortems": [ ],
- "is_parent_incident": false,
- "assigned_to": "7e26fed1-f11c-4e78-afc6-a",
- "acknowledged_date": null,
- "resolved_date": null,
- "snooze_time": null,
- "snoozed_till": null
}, - {
- "incident_number": 254,
- "creation_date": "2023-10-26T14:21:28.828936Z",
- "status": 1,
- "unique_id": "7ze6Q9YAgvVTUAkQntrViC",
- "sla": "f14a16aa-15d1-49a1-be27-0c266b15c7fa",
- "service_object": {
- "name": "Main",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888",
- "team": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c",
- "team_name": "Backend"
}, - "title": "[P-21041]Browser monitor global outage",
- "assigned_to_name": "Michael Scott",
- "tags": [
- {
- "unique_id": "93f008cf-f55d-4348-9091-f1e70e3a92a6",
- "incident": 254,
- "creation_date": "2023-10-26T14:21:29.017156Z",
- "name": "TAG",
- "color": "magenta",
- "tag_id": "bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4",
- "team_tag": "bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4"
}
], - "sla_object": {
- "unique_id": "f14a16aa-15d1-49a1-be27-0c266b15c7fa",
- "name": "SLA",
- "is_active": true,
- "acknowledge_time": 5,
- "resolve_time": 30,
- "creation_date": "2022-10-11T11:42:46.438776Z"
}, - "team_priority_object": {
- "unique_id": "7064efff-55f2-448b-92e5-a3a53179aa76",
- "name": "P1",
- "description": "P1 - high priority incidents",
- "color": "magenta"
}, - "is_child_incident": false,
- "postmortems": [ ],
- "is_parent_incident": false,
- "assigned_to": "7e26fed1-f11c-4e78-afc6-a",
- "acknowledged_date": null,
- "resolved_date": null,
- "snooze_time": null,
- "snoozed_till": null
}, - {
- "incident_number": 253,
- "creation_date": "2023-10-26T14:20:18.980264Z",
- "status": 1,
- "unique_id": "fAe5HrVSR8JfigxvB5p9eF",
- "sla": "f14a16aa-15d1-49a1-be27-0c266b15c7fa",
- "service_object": {
- "name": "Main",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888",
- "team": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c",
- "team_name": "Backend"
}, - "title": "[P-21041]Browser monitor global outage",
- "assigned_to_name": "Michael Scott",
- "tags": [
- {
- "unique_id": "6d2dadec-69a7-45f7-a2fb-99cc32a38419",
- "incident": 253,
- "creation_date": "2023-10-26T14:20:19.168974Z",
- "name": "TAG",
- "color": "magenta",
- "tag_id": "bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4",
- "team_tag": "bc56a5d1-3ec3-4802-9f6a-3f93519ec2a4"
}
], - "sla_object": {
- "unique_id": "f14a16aa-15d1-49a1-be27-0c266b15c7fa",
- "name": "SLA",
- "is_active": true,
- "acknowledge_time": 5,
- "resolve_time": 30,
- "creation_date": "2022-10-11T11:42:46.438776Z"
}, - "team_priority_object": {
- "unique_id": "7064efff-55f2-448b-92e5-a3a53179aa76",
- "name": "P1",
- "description": "P1 - high priority incidents",
- "color": "magenta"
}, - "is_child_incident": false,
- "postmortems": [ ],
- "is_parent_incident": false,
- "assigned_to": "7e26fed1-f11c-4e78-afc6-a",
- "acknowledged_date": null,
- "resolved_date": null,
- "snooze_time": null,
- "snoozed_till": null
}
]
}
Create the Incident object by setting the values of all the required parameters passed in the request body.
Request body parameters to create the Incident object
summary | string A string that represents the Incident object's summary |
status | integer Default: 1 An integer that represents the Incident object's status. 1 is triggered, 2 is acknowledged and 3 is resolved |
title required | string A string that represents the Incident object's title |
service required | string A system-generated string that represents the Service object's unique_id |
assigned_to | string A system-generated string that represents the User object's username |
escalation_policy | string A system-generated string that represents the Escalation Policy object's unique_id |
sla | string A system-generated string that represents the SLA object's unique_id |
team_priority | string A system-generated string that represents the Priority object's unique_id |
{- "title": "Production Incident",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f"
}
{- "summary": "",
- "incident_number": 3,
- "creation_date": "2022-07-08T13:21:25.846623Z",
- "status": 1,
- "unique_id": "uJVWfdAeoPDm3pk2gG2URn",
- "service_object": {
- "name": "Infra Service",
- "creation_date": "2022-07-08T12:31:37.429973Z",
- "summary": "",
- "description": "This is the description for Infra Service",
- "unique_id": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "auto_resolve_timeout": 0,
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "acknowledgement_timeout": 0,
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "collation_time": 2,
- "collation": 1,
- "under_maintenance": false
}, - "title": "Production Incident",
- "incident_key": "Q5NmEbsgc4ZjLknsw97VZJ",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "urgency": 1,
- "merged_with": null,
- "assigned_to": null,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "escalation_policy_object": {
- "unique_id": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "name": "Infra Escalation Policy"
}, - "assigned_to_name": "",
- "resolved_date": null,
- "acknowledged_date": null,
- "context_window_start": null,
- "context_window_end": null,
- "tags": [ ],
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "sla_object": {
- "unique_id": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "name": "Infra SLA",
- "is_active": true,
- "acknowledge_time": 30,
- "resolve_time": 60,
- "creation_date": "2022-07-08T12:29:08.545605Z"
}, - "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "team_priority_object": {
- "unique_id": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "name": "Infra Priority",
- "description": "This is the description for Infra Priority",
- "color": "orange"
}
}
Updates the specified Incident object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
unique_id required | string A system-generated string that represents the Incident object's unique ID |
Request body parameters to update the Incident object
summary | string A string that represents the Incident object's summary |
status | integer Default: 1 An integer that represents the Incident object's status. 1 is triggered, 2 is acknowledged and 3 is resolved |
title required | string A string that represents the Incident object's title |
service required | string A system-generated string that represents the Service object's unique_id |
assigned_to | string A system-generated string that represents the User object's username |
escalation_policy | string A system-generated string that represents the Escalation Policy object's unique_id |
sla | string A system-generated string that represents the SLA object's unique_id |
team_priority | string A system-generated string that represents the Priority object's unique_id |
{- "status": 2
}
{- "summary": "",
- "incident_number": 3,
- "creation_date": "2022-07-08T13:21:25.846623Z",
- "status": 2,
- "unique_id": "uJVWfdAeoPDm3pk2gG2URn",
- "service_object": {
- "name": "Infra Service",
- "creation_date": "2022-07-08T12:31:37.429973Z",
- "summary": "",
- "description": "This is the description for Infra Service",
- "unique_id": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "auto_resolve_timeout": 0,
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "acknowledgement_timeout": 0,
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "collation_time": 2,
- "collation": 1,
- "under_maintenance": false
}, - "title": "Modified Production Incident",
- "incident_key": "Q5NmEbsgc4ZjLknsw97VZJ",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "urgency": 1,
- "merged_with": null,
- "assigned_to": "507dfda0-a1fd-40e5-943a-e",
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "escalation_policy_object": {
- "unique_id": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "name": "Infra Escalation Policy"
}, - "assigned_to_name": "Mary Jane",
- "resolved_date": null,
- "acknowledged_date": null,
- "context_window_start": null,
- "context_window_end": null,
- "tags": [ ],
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "sla_object": {
- "unique_id": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "name": "Infra SLA",
- "is_active": true,
- "acknowledge_time": 30,
- "resolve_time": 60,
- "creation_date": "2022-07-08T12:29:08.545605Z"
}, - "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "team_priority_object": {
- "unique_id": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "name": "Infra Priority",
- "description": "This is the description for Infra Priority",
- "color": "orange"
}
}
These endpoints are deprecated and will no longer receive maintenance. Please use the new endpoints, which utilize the Incident ID.
Retrieves the specified Incident object.
incident_number required | string incident_number of the Incident object |
{- "summary": "",
- "incident_number": 3,
- "creation_date": "2022-07-08T13:21:25.846623Z",
- "status": 1,
- "unique_id": "uJVWfdAeoPDm3pk2gG2URn",
- "service_object": {
- "name": "Infra Service",
- "creation_date": "2022-07-08T12:31:37.429973Z",
- "summary": "",
- "description": "This is the description for Infra Service",
- "unique_id": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "auto_resolve_timeout": 0,
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "acknowledgement_timeout": 0,
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "collation_time": 2,
- "collation": 1,
- "under_maintenance": false
}, - "title": "Production Incident",
- "incident_key": "Q5NmEbsgc4ZjLknsw97VZJ",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "urgency": 1,
- "merged_with": null,
- "assigned_to": "507dfda0-a1fd-40e5-943a-e",
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "escalation_policy_object": {
- "unique_id": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "name": "Infra Escalation Policy"
}, - "assigned_to_name": "Mary Jane",
- "resolved_date": null,
- "acknowledged_date": null,
- "context_window_start": null,
- "context_window_end": null,
- "tags": [ ],
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "sla_object": {
- "unique_id": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "name": "Infra SLA",
- "is_active": true,
- "acknowledge_time": 30,
- "resolve_time": 60,
- "creation_date": "2022-07-08T12:29:08.545605Z"
}, - "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "team_priority_object": {
- "unique_id": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "name": "Infra Priority",
- "description": "This is the description for Infra Priority",
- "color": "orange"
}
}
Updates the specified Incident object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
incident_number required | string incident_number of the Incident object |
Request body parameters to update the Incident object
summary | string A string that represents the Incident object's summary |
status | integer Default: 1 An integer that represents the Incident object's status. 1 is triggered, 2 is acknowledged and 3 is resolved |
title required | string A string that represents the Incident object's title |
service required | string A system-generated string that represents the Service object's unique_id |
assigned_to | string A system-generated string that represents the User object's username |
escalation_policy | string A system-generated string that represents the Escalation Policy object's unique_id |
sla | string A system-generated string that represents the SLA object's unique_id |
team_priority | string A system-generated string that represents the Priority object's unique_id |
{- "title": "Modified Production Incident",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f"
}
{- "summary": "",
- "incident_number": 3,
- "creation_date": "2022-07-08T13:21:25.846623Z",
- "status": 1,
- "unique_id": "uJVWfdAeoPDm3pk2gG2URn",
- "service_object": {
- "name": "Infra Service",
- "creation_date": "2022-07-08T12:31:37.429973Z",
- "summary": "",
- "description": "This is the description for Infra Service",
- "unique_id": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "auto_resolve_timeout": 0,
- "created_by": "216bba3d-7268-4a8e-89e9-6",
- "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "task_template": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "acknowledgement_timeout": 0,
- "status": 1,
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "collation_time": 2,
- "collation": 1,
- "under_maintenance": false
}, - "title": "Modified Production Incident",
- "incident_key": "Q5NmEbsgc4ZjLknsw97VZJ",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "urgency": 1,
- "merged_with": null,
- "assigned_to": "507dfda0-a1fd-40e5-943a-e",
- "escalation_policy": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "escalation_policy_object": {
- "unique_id": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "name": "Infra Escalation Policy"
}, - "assigned_to_name": "Mary Jane",
- "resolved_date": null,
- "acknowledged_date": null,
- "context_window_start": null,
- "context_window_end": null,
- "tags": [ ],
- "sla": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "sla_object": {
- "unique_id": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "name": "Infra SLA",
- "is_active": true,
- "acknowledge_time": 30,
- "resolve_time": 60,
- "creation_date": "2022-07-08T12:29:08.545605Z"
}, - "team_priority": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "team_priority_object": {
- "unique_id": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "name": "Infra Priority",
- "description": "This is the description for Infra Priority",
- "color": "orange"
}
}
This object represents the incident roles of an incident. You can checkout the incident role docs here https://docs.zenduty.com/docs/incidentroles
Create the Incident Role object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to create the Incident Role object
title required | string An arbitary string that represents the Incident Role object's title |
description | string An arbitary string that represents the Incident Role object's description |
rank | integer Default: 1 An integer that represents the Incident Role object's rank |
{- "title": "Infra Incident Role",
- "rank": 1
}
{- "unique_id": "33994f75-c917-46c4-a367-e05ad7f893a9",
- "title": "Infra Incident Role",
- "description": "",
- "creation_date": "2022-07-08T13:37:07.405199Z",
- "rank": 1
}
Returns a list of Incident Role objects. The Incident Role objects are sorted by creation_date, with the most recent Incident Role object appearing last.
team_id required | string unique_id of the Team object |
[- {
- "unique_id": "89752b4a-43df-401d-9dc0-a446690a7a0e",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "title": "Incident Commander",
- "description": "The incident commander is the person responsible for all aspects of the incident response, including quickly developing incident objectives, managing all incident operations, application of resources as well as responsibility for all persons involved. The incident commander sets priorities and defines the organization of the incident response teams and the overall incident action plan.",
- "creation_date": "2022-07-08T10:41:36.623257Z",
- "rank": 1
}, - {
- "unique_id": "33994f75-c917-46c4-a367-e05ad7f893a9",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "title": "Infra Incident Role",
- "description": "",
- "creation_date": "2022-07-08T13:37:07.405199Z",
- "rank": 1
}
]
Retrieve the specified Incident Role object.
team_id required | string unique_id of the Team object |
incident_role_id required | string unique_id of the Incident Role object |
{- "unique_id": "33994f75-c917-46c4-a367-e05ad7f893a9",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "title": "Infra Incident Role",
- "description": "",
- "creation_date": "2022-07-08T13:37:07.405199Z",
- "rank": 1
}
Updates the specified Incident Role object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
incident_role_id required | string unique_id of the Incident Role object |
Request body parameters to update the Incident Role object
title required | string An arbitary string that represents the Incident Role object's title |
description | string An arbitary string that represents the Incident Role object's description |
rank | integer Default: 1 An integer that represents the Incident Role object's rank |
{- "title": "Modified Infra Incident Role"
}
{- "unique_id": "33994f75-c917-46c4-a367-e05ad7f893a9",
- "title": "Modified Infra Incident Role",
- "description": "",
- "creation_date": "2022-07-08T13:37:07.405199Z",
- "rank": 1
}
Delete the specified Incident Role object permanently.
team_id required | string unique_id of the Team object |
incident_role_id required | string unique_id of the Incident Role object |
{- "detail": "This request can not be processed."
}
Create the Incident Note object by setting the values of all the required parameters passed in the request body.
incident_number required | string incident_number of the Incident object |
Request body parameters to create the Incident Note object
note | string A string that represents the Incident Note object's note data |
{- "note": "This is new Infra Incident Note data"
}
{- "unique_id": "KCfA6tgiQTQrQVYuLVx2AK",
- "incident": 1,
- "user": "216bba3d-7268-4a8e-89e9-6",
- "note": "This is new Infra Incident Note data",
- "user_name": "Anshul Rajput",
- "creation_date": "2022-07-08T13:50:37.581269Z"
}
Returns a list of Incident Note objects. The Incident Note objects are sorted by creation_date, with the most recent Incident Note object appearing last.
incident_number required | string incident_number of the Incident object |
[- {
- "unique_id": "sEeKz4WibyGzvLfoRUoMCk",
- "incident": 1,
- "user": "216bba3d-7268-4a8e-89e9-6",
- "note": "This is Infra Incident Note data",
- "user_name": "Anshul Rajput",
- "creation_date": "2022-07-08T12:33:02.593351Z"
}, - {
- "unique_id": "KCfA6tgiQTQrQVYuLVx2AK",
- "incident": 1,
- "user": "216bba3d-7268-4a8e-89e9-6",
- "note": "This is new Infra Incident Note data",
- "user_name": "Anshul Rajput",
- "creation_date": "2022-07-08T13:50:37.581269Z"
}
]
Retrieve the specified Incident Note object.
incident_number required | string incident_number of the Incident object |
note_unique_id required | string unique_id of the Incident Note object |
{- "unique_id": "KCfA6tgiQTQrQVYuLVx2AK",
- "incident": 1,
- "user": "216bba3d-7268-4a8e-89e9-6",
- "note": "This is new Infra Incident Note data",
- "user_name": "Anshul Rajput",
- "creation_date": "2022-07-08T13:50:37.581269Z"
}
Updates the specified Incident Note object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
incident_number required | string incident_number of the Incident object |
note_unique_id required | string unique_id of the Incident Note object |
Incident Note update payload
note | string A string that represents the Incident Note object's note data |
{- "note": "This is modified Infra Incident Note data"
}
{- "unique_id": "KCfA6tgiQTQrQVYuLVx2AK",
- "incident": 1,
- "user": "216bba3d-7268-4a8e-89e9-6",
- "note": "This is modified Infra Incident Note data",
- "user_name": "Anshul Rajput",
- "creation_date": "2022-07-08T13:50:37.581269Z"
}
Delete the specified Incident Note object permanently.
incident_number required | string incident_number of the Incident object |
note_unique_id required | string unique_id of the Incident Note object |
{- "detail": "This request can not be processed."
}
Returns a list of Incident Responders objects.
incident_number required | string Incident nmuber of the Incident object |
[- {
- "count": 0,
- "next": "string",
- "previous": "string",
- "results": [
- {
- "unique_id": "string",
- "incident": 0,
- "user": "string",
- "subject": "string",
- "message": "string",
- "user_name": "string",
- "creation_date": "2019-08-24T14:15:22Z"
}
]
}
]
Add an Incident Responder to the incident
incident_number required | string Incident nmuber of the Incident object |
Payload to add an Incident Responder
user | string Unique identifier of the User object |
{- "user": "85b563c8-18d0-4668-9462-9"
}
{- "unique_id": "k8Ds9iL768XMdGbdSWjthA",
- "incident": 4,
- "user": "85b563c8-18d0-4668-9462-9",
- "subject": null,
- "message": null,
- "user_name": "Vishwa Kirshnakumar",
- "creation_date": "2024-05-20T09:06:09.580Z"
}
Retrieve details of an Incident Responder
incident_number required | string Incident nmuber of the Incident object |
unique_id required | string unique_id of the Incident Responder Object |
{- "unique_id": "k8Ds9iL768XMdGbdSWjthA",
- "incident": 4,
- "user": "85b563c8-18d0-4668-9462-9",
- "subject": null,
- "message": null,
- "user_name": "Vishwa Kirshnakumar",
- "creation_date": "2024-05-20T09:06:09.580Z"
}
Create the Event object by setting the values of all the required parameters passed in the request body.
integration_key required | string integration_key of the Integration object |
Request body parameters to create the Event object
message required | string A string that represents the Event object's message |
summary | string A string that represents the Event object's summary |
alert_type required | string Default: "info" A pre-defined string that represents the Event object's alert_type. Choices - |
entity_id | string A unique id for the alert. If not provided, the Zenduty API will create one. |
payload | object A JSON payload containing additional information about the alert. |
urls | Array of strings An array containing JSON schema of urls related to alerts. |
{- "alert_type": "info",
- "message": "This is info alert",
- "summary": "This is the incident summary",
- "entity_id": 12345,
- "payload": {
- "status": "ACME Payments are failing",
- "severity": "1",
- "project": "kubeprod"
},
}
{- "integration_object": {
- "name": "API",
- "creation_date": "2022-11-14T14:08:56.089450Z",
- "summary": "Zenduty API integration",
- "unique_id": "828361de-681f-4f00-9420-07a185a83e46",
- "service": "1587103f-6ed2-4eac-8a56-866128df036f",
- "team": "db61f7ed-ba78-4536-9b2d-256b135a731d",
- "integration_key": "082a1af8-064c-40a2-a99c-bc9c27d2042d",
- "is_enabled": true,
- "integration_type": 0
}, - "summary": "This is the incident summary",
- "incident": null,
- "creation_date": "2023-04-05T12:40:35.405170Z",
- "message": "This is info alert",
- "integration": "828361de-681f-4f00-9420-07a185a83e46",
- "suppressed": false,
- "entity_id": "12345",
- "payload": { },
- "alert_type": "0",
- "unique_id": "hD5dKNDyFDVADEYdrLViM7",
- "images": [ ],
- "urls": [
- {
- "unique_id": "b7cc93a2-6f64-46c6-bed7-2dd0504917f6",
- "link_text": "Alert URL"
}
], - "notes": [ ],
- "incident_created": false
}
Create the Event object by setting the values of all the required parameters passed in the request body.
account_id required | string 5 character long account identifier |
integration_key required | string integration_key of the Integration object |
Request body parameters to create the Event object
message required | string A string that represents the Event object's message |
summary | string A string that represents the Event object's summary |
alert_type required | string Default: "info" A pre-defined string that represents the Event object's alert_type. Choices - |
entity_id | string A unique id for the alert. If not provided, the Zenduty API will create one. |
payload | object A JSON payload containing additional information about the alert. |
urls | Array of strings An array containing JSON schema of urls related to alerts. |
sla | string A unique id for the SLA object. If not provided or provided invalid unique_id, the Zenduty will ignore the provided value. |
escalation_policy | string A unique id for the alert. If not provided or provided invalid unique_id, the Zenduty will ignore the provided value. |
priority | string A unique id for the alert. If not provided or provided invalid unique_id, the Zenduty will ignore the provided value. |
tags | Array of strings An array containing unique_id for the tag objects. |
object (Stakeholder) Incident stakeholder object schema | |
object (StakeholderMessage) Stakeholder message object schema |
{- "alert_type": "info",
- "message": "This is info alert",
- "summary": "This is the incident summary",
- "entity_id": 12345,
- "payload": {
- "status": "ACME Payments are failing",
- "severity": "1",
- "project": "kubeprod"
}, - "sla": "cfb927ec-8316-4464-8770-deca07f75b49",
- "escalation_policy": "272841e2-2cbf-40a8-9a9a-64227fd3d722",
- "priority": "b535c8c0-7c75-4911-a9c6-27a3be2f2da9",
- "stakeholders": {
- "users": [
- "85e1569d-79a4-4205-850f-a",
- "b80daf25-8a47-4365-baa4-0"
], - "teams": [
- "4a106e05-09af-4aef-9439-40c6f4aaff0f",
- "c1de7905-352f-424a-b8d0-f84406f76314"
], - "emails": [
- "maryjane@sharklasers.com"
]
}, - "tags": [
- "bdb4f470-b04b-4036-b8a4-5b66d9097b25",
- "ee99cc9c-a8ef-4a69-937c-07379e99d853"
], - "stakeholder_comms": {
- "subject": "New incident #12345 triggered",
- "body": "We’re currently experiencing an incident affecting billing. Our team is actively working on it, and we’ll provide updates as soon as we have more information.",
- "timezone": "UTC",
- "created_by": "85e1569d-79a4-4205-850f-a"
}
}
{- "message": "success",
- "trace_id": "2f7c427c-3dd4-4bfc-84c5-74a1fb936df7"
}
Get the Alert object for specific trace id.
trace_id required | string trace id of the alert object |
{- "status": "completed",
- "alert": "JVPDBpGdpBQgRKdTGz2Qir",
- "integration": {
- "name": "API"
}, - "incident": {
- "incident_number": 123,
- "unique_id": "22cWPt3h3REvZCkHVHNsfm"
}, - "suppressed": false,
- "is_incident_created": false
}
Returns a list of Incident Alert objects. The Incident Alert objects are sorted by creation_date, with the most recent Incident Alert object appearing last.
incident_number required | string incident_number of the Incident object |
[- {
- "integration_object": {
- "name": "Modified Infra custom Integration",
- "creation_date": "2022-07-08T12:52:22.906327Z",
- "summary": "This is the summary for Infra custom Integration",
- "unique_id": "72da1133-a471-4e70-95f3-ce3a5650e9fd",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "integration_key": "5f306dae-b327-4ba9-8f3a-ab4cffd57645",
- "is_enabled": true,
- "integration_type": 0
}, - "summary": "",
- "incident": 2,
- "creation_date": "2022-07-08T13:14:31.300448Z",
- "message": "Infra Integration Alert",
- "integration": "72da1133-a471-4e70-95f3-ce3a5650e9fd",
- "suppressed": false,
- "entity_id": "de8cf7fc-08ee-4966-b8d3-b6b631da",
- "alert_type": "3",
- "unique_id": "xc6qbUftpzkQ28f2MxpRxh",
- "images": [ ],
- "urls": [ ],
- "notes": [ ]
}
]
This object represents the tags of an incident. You can checkout the tag docs here https://docs.zenduty.com/docs/incidenttags
This object represents the task templates of the team. You can checkout the task template docs here https://docs.zenduty.com/docs/tasktemplates
Create the Template object object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to create the Task Template object
name required | string A string that represents the Task Template object's name |
summary | string A string that represents the Task Template object's summary |
due_immediately | integer Default: 0 An integer that represents whether the Task Template object is due immediately or not. 0 is false and 1 is true. |
{- "name": "New Infra Task Template",
- "summary": "This is the summary for New Infra Task Template"
}
{- "unique_id": "94d836f1-4fda-4124-a339-ba7975a15559",
- "name": "New Infra Task Template",
- "creation_date": "2022-07-08T14:22:08.597518Z",
- "summary": "This is the summary for New Infra Task Template",
- "due_immediately": 0
}
Returns a list of Task Templat objects. The Task Templat objects are sorted by creation_date, with the most recent Task Templat object appearing last.
team_id required | string unique_id of the Team object |
[- {
- "unique_id": "8d2640ca-c6ef-45f0-be5f-61dedcf85032",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "name": "Infra Task Template",
- "creation_date": "2022-07-08T12:26:47.700733Z",
- "summary": "This is the summary for Infra Task Template",
- "due_immediately": 0
}, - {
- "unique_id": "94d836f1-4fda-4124-a339-ba7975a15559",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "name": "New Infra Task Template",
- "creation_date": "2022-07-08T14:22:08.597518Z",
- "summary": "This is the summary for New Infra Task Template",
- "due_immediately": 0
}
]
Retrieve the specified Task Template object.
team_id required | string unique_id of the Team object |
task_template_id required | string unique_id of the Task Template object |
{- "unique_id": "94d836f1-4fda-4124-a339-ba7975a15559",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "name": "New Infra Task Template",
- "creation_date": "2022-07-08T14:22:08.597518Z",
- "summary": "This is the summary for New Infra Task Template",
- "due_immediately": 0
}
team_id required | string unique_id of the Team object |
task_template_id required | string unique_id of the Task Template object |
Request body parameters to update the Task Template object
name required | string A string that represents the Task Template object's name |
summary | string A string that represents the Task Template object's summary |
due_immediately | integer Default: 0 An integer that represents whether the Task Template object is due immediately or not. 0 is false and 1 is true. |
{- "name": "Modified Infra Task Template",
- "summary": "This is the summary for Modified Infra Task Template"
}
{- "unique_id": "94d836f1-4fda-4124-a339-ba7975a15559",
- "name": "Modified Infra Task Template",
- "creation_date": "2022-07-08T14:22:08.597518Z",
- "summary": "This is the summary for Modified Infra Task Template",
- "due_immediately": 0
}
Delete the specified Task Template object permanently.
team_id required | string unique_id of the Team object |
task_template_id required | string unique_id of the Task Template object |
{- "detail": "This request can not be processed."
}
This object represents the priority of an incident. You can checkout the priority docs here https://docs.zenduty.com/docs/incidentpriority
Create the Priority object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to create the Priority object
name | string A string that represents the Priority object's name |
description | string A string that represents the Priority object's description |
color | string A string that represents the Priority object's color |
{- "name": "New Infra Priority"
}
{- "unique_id": "88519afe-3409-4f96-b9de-4464908f6e88",
- "name": "New Infra Priority",
- "description": "",
- "creation_date": "2022-07-08T14:33:05.609863Z",
- "color": "",
- "team": 3674
}
Returns a list of Priority objects. The Priority objects are sorted by creation_date, with the most recent Priority object appearing last.
team_id required | string unique_id of the Team object |
[- {
- "unique_id": "6d100d52-998b-41c8-8928-a7e3aa68e329",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "description": "This is the description for Infra Priority",
- "name": "Infra Priority",
- "creation_date": "2022-07-08T12:29:45.895959Z",
- "color": "orange"
}, - {
- "unique_id": "88519afe-3409-4f96-b9de-4464908f6e88",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "description": "",
- "name": "New Infra Priority",
- "creation_date": "2022-07-08T14:33:05.609863Z",
- "color": ""
}
]
Retrieve the specified Priority object.
team_id required | string unique_id of the Team object |
priority_id required | string unique_id of the Priority object |
{- "unique_id": "88519afe-3409-4f96-b9de-4464908f6e88",
- "team": "61010821-08aa-4098-94f8-f88f1990b54a",
- "description": "",
- "name": "New Infra Priority",
- "creation_date": "2022-07-08T14:33:05.609863Z",
- "color": ""
}
Updates the specified Priority object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
priority_id required | string unique_id of the Priority object |
Request body parameters to update the Priority object
name | string A string that represents the Priority object's name |
description | string A string that represents the Priority object's description |
color | string A string that represents the Priority object's color |
{- "name": "Modified Infra Priority"
}
{- "unique_id": "88519afe-3409-4f96-b9de-4464908f6e88",
- "name": "Modified Infra Priority",
- "description": "",
- "creation_date": "2022-07-08T14:33:05.609863Z",
- "color": "",
- "team": 3674
}
Delete the specified Priority object permanently.
team_id required | string unique_id of the Team object |
priority_id required | string unique_id of the Priority object |
{- "detail": "This request can not be processed."
}
This object represents the SLA of an incident. You can checkout the SLA docs here https://docs.zenduty.com/docs/incidentsla
Create the SLA object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to create the SLA object
name | string An arbitary string that represents the SLA object's name |
required | Array of objects (SLA_Escalation) An array of SLA Escalation objects |
is_active | boolean Default: true A boolean flag that represents whether the SLA object is active or not |
acknowledge_time | integer An integer that represents the SLA object's acknowledge_time |
resolve_time | integer An integer that represents the SLA object's resolve_time |
{- "name": "New Infra SLA",
- "escalations": [ ]
}
{- "escalations": [ ],
- "unique_id": "010bc17d-f688-403d-b762-f039fb6f5ad9",
- "name": "New Infra SLA",
- "description": "",
- "is_active": true,
- "conditions": "{}",
- "acknowledge_time": null,
- "resolve_time": null,
- "team": 3674
}
Returns a list of SLA objects.
team_id required | string unique_id of the Team object |
[- {
- "unique_id": "b3c6af23-2b9e-414e-9706-bbf3af76828c",
- "name": "Infra SLA",
- "is_active": true,
- "acknowledge_time": 30,
- "resolve_time": 60,
- "creation_date": "2022-07-08T12:29:08.545605Z"
}, - {
- "unique_id": "010bc17d-f688-403d-b762-f039fb6f5ad9",
- "name": "New Infra SLA",
- "is_active": true,
- "acknowledge_time": null,
- "resolve_time": null,
- "creation_date": "2022-07-08T14:45:21.096085Z"
}
]
Retrieve the specified SLA object.
team_id required | string unique_id of the Team object |
sla_id required | string unique_id of the SLA object |
{- "escalations": [ ],
- "unique_id": "010bc17d-f688-403d-b762-f039fb6f5ad9",
- "name": "New Infra SLA",
- "description": "",
- "is_active": true,
- "conditions": "{}",
- "acknowledge_time": null,
- "resolve_time": null,
- "team": 3674
}
Updates the specified SLA object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
sla_id required | string unique_id of the SLA object |
Request body parameters to update the SLA object
name | string An arbitary string that represents the SLA object's name |
required | Array of objects (SLA_Escalation) An array of SLA Escalation objects |
is_active | boolean Default: true A boolean flag that represents whether the SLA object is active or not |
acknowledge_time | integer An integer that represents the SLA object's acknowledge_time |
resolve_time | integer An integer that represents the SLA object's resolve_time |
{- "name": "Modified Infra SLA",
- "escalations": [ ]
}
{- "escalations": [ ],
- "unique_id": "010bc17d-f688-403d-b762-f039fb6f5ad9",
- "name": "Modified Infra SLA",
- "description": "",
- "is_active": true,
- "conditions": "{}",
- "acknowledge_time": null,
- "resolve_time": null,
- "team": 3674
}
Delete the specified SLA object permanently.
team_id required | string unique_id of the Team object |
sla_id required | string unique_id of the SLA object |
{- "detail": "This request can not be processed."
}
This object represents the maintenance mode of a team. You can checkout the team maintenance mode docs here https://docs.zenduty.com/docs/maintenancewindows
Create the Team Maintenance Mode object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to create the Team Maintenance Mode object
start_time required | string <date-time> A formatted string that represents the Team Maintenance Mode object's start_time |
end_time required | string <date-time> A formatted string that represents the Team Maintenance Mode object's end_time |
repeat_interval | integer Default: 0 An integer that represents the Team Maintenance Mode object's repeat_interval |
required | Array of objects Array of Service objects |
name | string A string that represents the Team Maintenance Mode object's name |
time_zone | string Default: "UTC" A formatted string that represents the Team Maintenance Mode object's time_zone. You can check out the time zone list here https://timezonedb.com/time-zones |
repeat_until | string <date-time> A formatted string that represents the Team Maintenance Mode object's repeat_until |
{- "name": "New Infra Team Maintenance",
- "services": [
- {
- "unique_id": "9b5a0301-3325-49b6-b54c-71d79a50c82d",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f"
}
], - "start_time": "2022-07-08T18:06:00Z",
- "end_time": "2022-07-15T18:06:00Z"
}
{- "unique_id": "162055d5-9646-43df-95cb-2ac511bf34ef",
- "start_time": "2022-07-08T18:06:00Z",
- "end_time": "2022-07-15T18:06:00Z",
- "repeat_interval": 0,
- "services": [
- {
- "unique_id": "5390bdd2-8e97-44cb-9d48-db32364511b1",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f"
}
], - "creation_date": "2022-07-08T14:55:46.681634Z",
- "name": "New Infra Team Maintenance",
- "time_zone": "UTC",
- "repeat_until": null
}
Returns a list of Team Maintenance Mode objects. The Team Maintenance Mode objects are sorted by creation_date, with the most recent Team Maintenance Mode object appearing last.
team_id required | string unique_id of the Team object |
[- {
- "unique_id": "de38ec19-283f-4501-90df-1e7eb74191cb",
- "start_time": "2022-07-08T18:06:00Z",
- "end_time": "2022-07-15T18:06:00Z",
- "repeat_interval": 4,
- "services": [
- {
- "unique_id": "9b5a0301-3325-49b6-b54c-71d79a50c82d",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f"
}
], - "creation_date": "2022-07-08T12:36:43.932588Z",
- "name": "Infra Team Maintenance",
- "time_zone": "UTC",
- "repeat_until": "2022-07-12T12:36:42.137000Z"
}, - {
- "unique_id": "162055d5-9646-43df-95cb-2ac511bf34ef",
- "start_time": "2022-07-08T18:06:00Z",
- "end_time": "2022-07-15T18:06:00Z",
- "repeat_interval": 0,
- "services": [
- {
- "unique_id": "5390bdd2-8e97-44cb-9d48-db32364511b1",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f"
}
], - "creation_date": "2022-07-08T14:55:46.681634Z",
- "name": "New Infra Team Maintenance",
- "time_zone": "UTC",
- "repeat_until": null
}
]
Retrieve the specified Team Maintenance Mode object.
team_id required | string unique_id of the Team object |
maintenance_id required | string unique_id of the Team Maintenance Mode object |
{- "unique_id": "162055d5-9646-43df-95cb-2ac511bf34ef",
- "start_time": "2022-07-08T18:06:00Z",
- "end_time": "2022-07-15T18:06:00Z",
- "repeat_interval": 0,
- "services": [
- {
- "unique_id": "5390bdd2-8e97-44cb-9d48-db32364511b1",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f"
}
], - "creation_date": "2022-07-08T14:55:46.681634Z",
- "name": "New Infra Team Maintenance",
- "time_zone": "UTC",
- "repeat_until": null
}
Updates the specified Team Maintenance Mode object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
maintenance_id required | string unique_id of the Team Maintenance Mode object |
Request body parameters to update the Team Maintenance Mode object
start_time required | string <date-time> A formatted string that represents the Team Maintenance Mode object's start_time |
end_time required | string <date-time> A formatted string that represents the Team Maintenance Mode object's end_time |
repeat_interval | integer Default: 0 An integer that represents the Team Maintenance Mode object's repeat_interval |
required | Array of objects Array of Service objects |
name | string A string that represents the Team Maintenance Mode object's name |
time_zone | string Default: "UTC" A formatted string that represents the Team Maintenance Mode object's time_zone. You can check out the time zone list here https://timezonedb.com/time-zones |
repeat_until | string <date-time> A formatted string that represents the Team Maintenance Mode object's repeat_until |
{- "name": "Modified Infra Team Maintenance",
- "services": [
- {
- "unique_id": "9b5a0301-3325-49b6-b54c-71d79a50c82d",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f"
}
], - "start_time": "2022-07-08T18:06:00Z",
- "end_time": "2022-07-15T18:06:00Z"
}
{- "unique_id": "162055d5-9646-43df-95cb-2ac511bf34ef",
- "start_time": "2022-07-08T18:06:00Z",
- "end_time": "2022-07-15T18:06:00Z",
- "repeat_interval": null,
- "services": [
- {
- "unique_id": "5390bdd2-8e97-44cb-9d48-db32364511b1",
- "service": "191f5e2c-515e-4ee0-b501-3a292f8dae2f"
}
], - "creation_date": "2022-07-08T14:55:46.681634Z",
- "name": "Modified Infra Team Maintenance",
- "time_zone": null,
- "repeat_until": null
}
Delete the specified Team Maintenance Mode object permanently.
team_id required | string unique_id of the Team object |
maintenance_id required | string unique_id of the Team Maintenance Mode object |
{- "detail": "This request can not be processed."
}
This object represents the postmortem of an incident. You can checkout the postmortem docs here https://docs.zenduty.com/docs/incidentpostmortem
Create the Postmortem object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
Request body parameters to create the Postmortem object
author required | string A system-generated string that represents the User object's username |
status | string A string that represents the Postmortem object's status |
postmortem_data | string A string that represents the Postmortem object's postmortem_data |
required | Array of objects An array of Postmortem Incident objects |
title | string A string that represents the Postmortem object's title |
download_status | integer Default: 0 An integer that represents the Postmortem object's download_status. 1 is uninitiated, 2 is initiated, 3 is finished and 4 is error |
{- "author": "85b563c8-18d0-4668-9462-9",
- "incidents": [
- {
- "incident": "U2gGkyJnLQLkX2zQnvkpLW"
}
], - "title": "New Infra Postmortem"
}
{- "unique_id": "f6778c71-eba2-49da-b226-ca27172d7303",
- "author": "85b563c8-18d0-4668-9462-9",
- "status": "",
- "incidents": [
- {
- "unique_id": "80673be0-aa18-4f70-ae92-dec403dfc32e",
- "incident": "U2gGkyJnLQLkX2zQnvkpLW"
}
], - "author_name": "Vishwa Krishnakumar",
- "title": "New Infra Postmortem",
- "postmortem_data": "",
- "download_status": 0
}
Returns a list of Postmortem objects.
team_id required | string unique_id of the Team object |
[- {
- "unique_id": "4d0726ca-664f-4d07-8005-a9ba2c654cc9",
- "author": "85b563c8-18d0-4668-9462-9",
- "status": "Critical",
- "postmortem_data": "<p>This is the Infra Postmortem data</p>",
- "incidents": [
- {
- "unique_id": "d86daf72-a2f2-4d54-adec-19f4380ada48",
- "incident": {
- "unique_id": "U2gGkyJnLQLkX2zQnvkpLW",
- "title": "Infra Incident",
- "incident_number": 1
}
}
], - "author_name": "Vishwa Krishnakumar",
- "title": "Infra Postmortem",
- "download_status": 1,
- "creation_date": "2022-07-08T12:35:38.234310Z"
}, - {
- "unique_id": "f6778c71-eba2-49da-b226-ca27172d7303",
- "author": "85b563c8-18d0-4668-9462-9",
- "status": "",
- "postmortem_data": "",
- "incidents": [
- {
- "unique_id": "80673be0-aa18-4f70-ae92-dec403dfc32e",
- "incident": {
- "unique_id": "U2gGkyJnLQLkX2zQnvkpLW",
- "title": "Infra Incident",
- "incident_number": 1
}
}
], - "author_name": "Vishwa Krishnakumar",
- "title": "New Infra Postmortem",
- "download_status": 0,
- "creation_date": "2022-07-08T15:08:01.521494Z"
}
]
Retrieve the specified Postmortem object.
team_id required | string unique_id of the Team object |
postmortem_id required | string unique_id of the Postmortem object |
{- "unique_id": "f6778c71-eba2-49da-b226-ca27172d7303",
- "author": "85b563c8-18d0-4668-9462-9",
- "status": "",
- "postmortem_data": "",
- "incidents": [
- {
- "unique_id": "80673be0-aa18-4f70-ae92-dec403dfc32e",
- "incident": {
- "unique_id": "U2gGkyJnLQLkX2zQnvkpLW",
- "title": "Infra Incident",
- "incident_number": 1
}
}
], - "author_name": "Vishwa Krishnakumar",
- "title": "New Infra Postmortem",
- "download_status": 0,
- "creation_date": "2022-07-08T15:08:01.521494Z"
}
Updates the specified Postmortem object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
postmortem_id required | string unique_id of the Postmortem object |
Request body parameters to update the Postmortem object
author required | string A system-generated string that represents the User object's username |
status | string A string that represents the Postmortem object's status |
postmortem_data | string A string that represents the Postmortem object's postmortem_data |
required | Array of objects An array of Postmortem Incident objects |
title | string A string that represents the Postmortem object's title |
download_status | integer Default: 0 An integer that represents the Postmortem object's download_status. 1 is uninitiated, 2 is initiated, 3 is finished and 4 is error |
{- "author": "85b563c8-18d0-4668-9462-9",
- "incidents": [
- {
- "incident": "U2gGkyJnLQLkX2zQnvkpLW"
}
], - "title": "Modified Infra Postmortem"
}
{- "unique_id": "f6778c71-eba2-49da-b226-ca27172d7303",
- "author": "85b563c8-18d0-4668-9462-9",
- "status": null,
- "incidents": [
- {
- "unique_id": "80673be0-aa18-4f70-ae92-dec403dfc32e",
- "incident": "U2gGkyJnLQLkX2zQnvkpLW"
}
], - "author_name": "Vishwa Krishnakumar",
- "title": "Modified Infra Postmortem",
- "postmortem_data": null,
- "download_status": 0
}
Delete the specified Postmortem object permanently.
team_id required | string unique_id of the Team object |
postmortem_id required | string unique_id of the Postmortem object |
{- "detail": "This request can not be processed."
}
Returns all OnCall Users of a Team Escalation Policies.
team_id required | string Unique ID of a Team |
[- {
- "escalation_policy": {
- "name": "Default Escalation Policy",
- "summary": "This is the default escalation policy for this team",
- "description": "",
- "unique_id": "19fdd4c3-0d4a-4a6e-9885-8c8d33ef1488",
- "repeat_policy": 0,
- "move_to_next": true,
- "global_ep": false
}, - "team": {
- "unique_id": "61010821-08aa-4098-94f8-f88f1990b54a",
- "name": "Modified Production Team"
}, - "users": [
- {
- "username": "216bba3d-7268-4a8e-89e9-6",
- "first_name": "Anshul",
- "email": "anshulrajput229@gmail.com",
- "last_name": "Rajput"
}
]
}, - {
- "escalation_policy": {
- "name": "Infra Escalation Policy",
- "summary": "",
- "description": "",
- "unique_id": "9ea1f98d-b5a3-4d72-8057-2f5f3d743a44",
- "repeat_policy": 2,
- "move_to_next": true,
- "global_ep": false
}, - "team": {
- "unique_id": "61010821-08aa-4098-94f8-f88f1990b54a",
- "name": "Modified Production Team"
}, - "users": [
- {
- "username": "216bba3d-7268-4a8e-89e9-6",
- "first_name": "Anshul",
- "email": "anshulrajput229@gmail.com",
- "last_name": "Rajput"
}, - {
- "username": "507dfda0-a1fd-40e5-943a-e",
- "first_name": "Mary",
- "email": "maryjane@sharklasers.com",
- "last_name": "Jane"
}, - {
- "username": "85b563c8-18d0-4668-9462-9",
- "first_name": "Vishwa",
- "email": "vishwa@yellowant.com",
- "last_name": "Krishnakumar"
}
]
}
]
Returns all OnCall Users of a Team Escalation Policies.
team_id required | string Unique ID of a Team |
[- {
- "unique_id": "0c9120eb-12a7-4daa-a23b-64e208dcb6a3",
- "name": "Default Escalation Policy",
- "oncalls": [
- {
- "ep_rule": "5bf14fc1-67a5-4f51-bc7b-33be2f4454c4",
- "position": 1,
- "delay": 0,
- "oncalls": [
- {
- "username": "d24b310c-b9b2-4cc7-aa4b-4",
- "first_name": "Nitin",
- "last_name": "Chavan",
- "email": "initinbc@gmail.com"
}
]
}, - {
- "ep_rule": "f433c672-fa4b-40c8-92cc-2641c0705f54",
- "position": 2,
- "delay": 2,
- "oncalls": [
- {
- "username": "b115be42-9c4f-4277-a885-9",
- "first_name": "Deepak .D",
- "last_name": "Kumar",
- "email": "deepakdx7@gmail.com"
}, - {
- "username": "fc02c22a-da4b-4807-bbf7-5",
- "first_name": "Ankur",
- "last_name": "Rawal",
- "email": "ankurrawalnitk@gmail.com"
}
]
}, - {
- "ep_rule": "a24ffd7e-adb9-4c2e-ac6a-6320988f8c98",
- "position": 3,
- "delay": 4,
- "oncalls": [
- {
- "username": "fc02c22a-da4b-4807-bbf7-5",
- "first_name": "Ankur",
- "last_name": "Rawal",
- "email": "ankurrawalnitk@gmail.com"
}
]
}
]
}, - {
- "unique_id": "77fefd9e-e96c-4992-a63b-8995f2740cf1",
- "name": "TEST DELAY",
- "oncalls": [
- {
- "ep_rule": "cee87bfb-85d4-420e-b7aa-25b9e25b53c7",
- "position": 1,
- "delay": 0,
- "oncalls": [
- {
- "username": "259d67f8-c975-4403-b9b8-8",
- "first_name": "Michael",
- "last_name": "Scott",
- "email": "dheerukreddy@gmail.com"
}, - {
- "username": "18e76e66-7c24-4daa-9c58-e",
- "first_name": "nithin",
- "last_name": " ",
- "email": "nithin@zenduty.com"
}, - {
- "username": "b115be42-9c4f-4277-a885-9",
- "first_name": "Deepak .D",
- "last_name": "Kumar",
- "email": "deepakdx7@gmail.com"
}
]
}, - {
- "ep_rule": "03dc65e5-268a-41df-aae4-6313cad3d8a6",
- "position": 2,
- "delay": 2,
- "oncalls": [
- {
- "username": "fc02c22a-da4b-4807-bbf7-5",
- "first_name": "Ankur",
- "last_name": "Rawal",
- "email": "ankurrawalnitk@gmail.com"
}
]
}, - {
- "ep_rule": "43ade01e-6443-4ab7-91c9-5d9061b509da",
- "position": 3,
- "delay": 5,
- "oncalls": [
- {
- "username": "b115be42-9c4f-4277-a885-9",
- "first_name": "Deepak .D",
- "last_name": "Kumar",
- "email": "deepakdx7@gmail.com"
}, - {
- "username": "fc02c22a-da4b-4807-bbf7-5",
- "first_name": "Ankur",
- "last_name": "Rawal",
- "email": "ankurrawalnitk@gmail.com"
}
]
}
]
}, - {
- "unique_id": "7c8e75dd-ad6a-46a8-98e4-70bd4416462a",
- "name": "Test schedule deletion",
- "oncalls": [
- {
- "ep_rule": "54c082b4-9a38-43d6-889f-2d2f70725af5",
- "position": 1,
- "delay": 0,
- "oncalls": [ ]
}, - {
- "ep_rule": "fb0fa91c-cc3d-4090-9c68-e1801b6318c7",
- "position": 2,
- "delay": 1,
- "oncalls": [
- {
- "username": "b115be42-9c4f-4277-a885-9",
- "first_name": "Deepak .D",
- "last_name": "Kumar",
- "email": "deepakdx7@gmail.com"
}, - {
- "username": "fc02c22a-da4b-4807-bbf7-5",
- "first_name": "Ankur",
- "last_name": "Rawal",
- "email": "ankurrawalnitk@gmail.com"
}
]
}
]
}, - {
- "unique_id": "83ea11e4-52cb-46f6-9f55-b0037c792078",
- "name": "test preserve resolve incident",
- "oncalls": [
- {
- "ep_rule": "e33daa6b-2814-4e5b-ac1d-0feef28c4aad",
- "position": 1,
- "delay": 0,
- "oncalls": [
- {
- "username": "08a4805c-8f07-4221-85c2-1",
- "first_name": "Test",
- "last_name": "Rajput",
- "email": "anshulrajput229@gmail.com"
}
]
}
]
}
]
Returns all OnCall Users of an Escalation Policy.
team_id required | string Unique ID of a Team |
ep_id required | string Unique ID of an Escalation Policy |
[- {
- "unique_id": "77fefd9e-e96c-4992-a63b-8995f2740cf1",
- "name": "TEST DELAY",
- "oncalls": [
- {
- "ep_rule": "cee87bfb-85d4-420e-b7aa-25b9e25b53c7",
- "position": 1,
- "delay": 0,
- "oncalls": [
- {
- "username": "259d67f8-c975-4403-b9b8-8",
- "first_name": "Michael",
- "last_name": "Scott",
- "email": "dheerukreddy@gmail.com"
}, - {
- "username": "18e76e66-7c24-4daa-9c58-e",
- "first_name": "nithin",
- "last_name": " ",
- "email": "nithin@zenduty.com"
}, - {
- "username": "b115be42-9c4f-4277-a885-9",
- "first_name": "Deepak .D",
- "last_name": "Kumar",
- "email": "deepakdx7@gmail.com"
}
]
}, - {
- "ep_rule": "03dc65e5-268a-41df-aae4-6313cad3d8a6",
- "position": 2,
- "delay": 2,
- "oncalls": [
- {
- "username": "fc02c22a-da4b-4807-bbf7-5",
- "first_name": "Ankur",
- "last_name": "Rawal",
- "email": "ankurrawalnitk@gmail.com"
}
]
}, - {
- "ep_rule": "43ade01e-6443-4ab7-91c9-5d9061b509da",
- "position": 3,
- "delay": 5,
- "oncalls": [
- {
- "username": "b115be42-9c4f-4277-a885-9",
- "first_name": "Deepak .D",
- "last_name": "Kumar",
- "email": "deepakdx7@gmail.com"
}, - {
- "username": "fc02c22a-da4b-4807-bbf7-5",
- "first_name": "Ankur",
- "last_name": "Rawal",
- "email": "ankurrawalnitk@gmail.com"
}
]
}
]
}
]
Returns all OnCall Users of a Service Escalation Policy.
team_id required | string Unique ID of a Team |
service_id required | string Unique ID of a Service |
[- {
- "unique_id": "0c9120eb-12a7-4daa-a23b-64e208dcb6a3",
- "name": "Default Escalation Policy",
- "oncalls": [
- {
- "ep_rule": "5bf14fc1-67a5-4f51-bc7b-33be2f4454c4",
- "position": 1,
- "delay": 0,
- "oncalls": [
- {
- "username": "d24b310c-b9b2-4cc7-aa4b-4",
- "first_name": "Nitin",
- "last_name": "Chavan",
- "email": "initinbc@gmail.com"
}
]
}, - {
- "ep_rule": "f433c672-fa4b-40c8-92cc-2641c0705f54",
- "position": 2,
- "delay": 2,
- "oncalls": [
- {
- "username": "b115be42-9c4f-4277-a885-9",
- "first_name": "Deepak .D",
- "last_name": "Kumar",
- "email": "deepakdx7@gmail.com"
}, - {
- "username": "fc02c22a-da4b-4807-bbf7-5",
- "first_name": "Ankur",
- "last_name": "Rawal",
- "email": "ankurrawalnitk@gmail.com"
}
]
}, - {
- "ep_rule": "a24ffd7e-adb9-4c2e-ac6a-6320988f8c98",
- "position": 3,
- "delay": 4,
- "oncalls": [
- {
- "username": "fc02c22a-da4b-4807-bbf7-5",
- "first_name": "Ankur",
- "last_name": "Rawal",
- "email": "ankurrawalnitk@gmail.com"
}
]
}
]
}
]
This object represents the Global Router of the Account. You can checkout the global alert routing docs here https://docs.zenduty.com/docs/globalalertrouting
Create the Global Router object by setting the values of all the required parameters passed in the request body.
Request body parameters to create the Global Router object
name | string A string that represents the Global Router object's name |
description | string A string that represents the Global Router object's description |
{- "name": "Infra Global Router",
- "description": "This is Infra Global Router for this account"
}
{- "unique_id": "b0c1867f-dfd2-4cb3-a298-0b9f322fe716",
- "name": "Infra Global Router",
- "description": "This is Infra Global Router for this account",
- "account": "61fb2d9e-088b-471f-a6d7-872c03cf483d",
- "is_enabled": true,
- "integration_key": "cb1de2f2-bb17-4a6c-8a80-03739ca0a911"
}
Returns a list of Global Router objects.
[- {
- "unique_id": "e9be034e-6076-4953-a315-9a3666ffe774",
- "name": "Default",
- "description": "testing",
- "account": "61fb2d9e-088b-471f-a6d7-872c03cf483d",
- "is_enabled": true,
- "integration_key": "e29c214c-3397-4b92-b4f4-dd63135ad214"
}, - {
- "unique_id": "0dfb3150-456c-4f34-884f-23d449ae7561",
- "name": "Default-2",
- "description": "testing",
- "account": "61fb2d9e-088b-471f-a6d7-872c03cf483d",
- "is_enabled": true,
- "integration_key": "5d3b2210-6849-42a4-b268-c8f44a5e50f5"
}, - {
- "unique_id": "b0c1867f-dfd2-4cb3-a298-0b9f322fe716",
- "name": "Infra Global Router",
- "description": "This is Infra Global Router for this account",
- "account": "61fb2d9e-088b-471f-a6d7-872c03cf483d",
- "is_enabled": true,
- "integration_key": "cb1de2f2-bb17-4a6c-8a80-03739ca0a911"
}
]
Retrieve the specified Global Router object.
router_id required | string unique_id of the Global Router object |
{- "unique_id": "b0c1867f-dfd2-4cb3-a298-0b9f322fe716",
- "name": "Infra Global Router",
- "description": "This is Infra Global Router for this account",
- "account": "61fb2d9e-088b-471f-a6d7-872c03cf483d",
- "is_enabled": true,
- "integration_key": "cb1de2f2-bb17-4a6c-8a80-03739ca0a911"
}
Updates the specified Global Router object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
router_id required | string unique_id of the Global Router object |
Request body parameters to update the Global Router object
name | string A string that represents the Global Router object's name |
description | string A string that represents the Global Router object's description |
{- "name": "Infra Global Router Updated",
- "description": "This is Infra Global Router Updated for this account"
}
{- "unique_id": "b0c1867f-dfd2-4cb3-a298-0b9f322fe716",
- "name": "Infra Global Router Updated",
- "description": "This is Infra Global Router Updated for this account",
- "account": "61fb2d9e-088b-471f-a6d7-872c03cf483d",
- "is_enabled": true,
- "integration_key": "cb1de2f2-bb17-4a6c-8a80-03739ca0a911"
}
The Rules of the Global Router in an Account are represented by this object. Visit this link to view the documentation for the global alert routing rules https://docs.zenduty.com/docs/globalalertrouting
Create the Global Router Rule object by setting the values of all the required parameters passed in the request body.
router_id required | string unique_id of the Global Router object |
Request body parameters to create the Global Router Rule object
name | string A string that represents the Global Router Rule object's name |
rule_json | string A string that represents the rule json of Global Router Rule object |
Array of objects (GlobalRouterRuleActionPayload) An array of Global Router Rule Action objects |
{- "name": "Rule for Grafana Integration",
- "actions": [
- {
- "action_type": 0,
- "integration": "0c4e939d-6d54-401e-ad83-6114368bdd0b"
}
], - "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.payload\",\"operator\":\"payloadsearch\",\"value\":[\"$.commonLabels.alertname\",\"grafana\"],\"valueSrc\":[\"value\",\"value\"],\"operatorOptions\":{\"ploperator\":\"equal\"},\"valueType\":[\"text\",\"text\"]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}"
}
{- "unique_id": "4c9924cc-d051-4e58-978b-d673a7de540a",
- "name": "Rule for Grafana Integration",
- "position": 7,
- "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.payload\",\"operator\":\"payloadsearch\",\"value\":[\"$.commonLabels.alertname\",\"grafana\"],\"valueSrc\":[\"value\",\"value\"],\"operatorOptions\":{\"ploperator\":\"equal\"},\"valueType\":[\"text\",\"text\"]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}",
- "actions": [
- {
- "unique_id": "fb742645-dc2f-4b76-bf44-8a0a8aa48e09",
- "action_type": 0,
- "service": {
- "name": "Team 1 Service 1",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
}, - "team": {
- "name": "Team 1",
- "unique_id": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
}, - "integration_obj": {
- "unique_id": "0c4e939d-6d54-401e-ad83-6114368bdd0b",
- "name": "Anodot"
}
}
], - "router": "e9be034e-6076-4953-a315-9a3666ffe774"
}
Returns a list of Global Router Rule objects.
router_id required | string unique_id of the Global Router object |
[- {
- "unique_id": "12edd6c5-2217-4b53-b635-83083f420dd8",
- "name": "position 1",
- "position": 1,
- "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"8bbbbaba-cdef-4012-b456-7184d20607aa\":{\"type\":\"rule\",\"id\":\"8bbbbaba-cdef-4012-b456-7184d20607aa\",\"properties\":{\"field\":\"alert.payload\",\"operator\":\"payloadsearch\",\"value\":[\"$.payload.summary\",\"testing\"],\"valueSrc\":[\"value\",\"value\"],\"operatorOptions\":{\"ploperator\":\"equal\"},\"valueType\":[\"text\",\"text\"]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"8bbbbaba-cdef-4012-b456-7184d20607aa\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}",
- "actions": [
- {
- "unique_id": "6d90b452-6b5f-4ea1-8b58-9ad091aba040",
- "action_type": 0,
- "service": {
- "name": "Team 1 Service 1",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
}, - "team": {
- "name": "Team 1",
- "unique_id": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
}, - "integration_obj": {
- "unique_id": "0c4e939d-6d54-401e-ad83-6114368bdd0b",
- "name": "Anodot"
}
}, - {
- "unique_id": "be64664d-ab1d-419a-ab50-d48b05cbc1e6",
- "action_type": 0,
- "service": {
- "name": "Team 1 Service 1",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
}, - "team": {
- "name": "Team 1",
- "unique_id": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
}, - "integration_obj": {
- "unique_id": "0c4e939d-6d54-401e-ad83-6114368bdd0b",
- "name": "Anodot"
}
}
], - "router": "e9be034e-6076-4953-a315-9a3666ffe774"
}, - {
- "unique_id": "4c9924cc-d051-4e58-978b-d673a7de540a",
- "name": "Rule for Grafana Integration",
- "position": 2,
- "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.payload\",\"operator\":\"payloadsearch\",\"value\":[\"$.commonLabels.alertname\",\"grafana\"],\"valueSrc\":[\"value\",\"value\"],\"operatorOptions\":{\"ploperator\":\"equal\"},\"valueType\":[\"text\",\"text\"]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}",
- "actions": [
- {
- "unique_id": "fb742645-dc2f-4b76-bf44-8a0a8aa48e09",
- "action_type": 0,
- "service": {
- "name": "Team 1 Service 1",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
}, - "team": {
- "name": "Team 1",
- "unique_id": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
}, - "integration_obj": {
- "unique_id": "0c4e939d-6d54-401e-ad83-6114368bdd0b",
- "name": "Anodot"
}
}
], - "router": "e9be034e-6076-4953-a315-9a3666ffe774"
}
]
Updates the position of the Global Router Rule object by setting the position and rule unique id passed in the request body
router_id required | string unique_id of the Global Router object |
Request body parameters to update the position of Global Router Rule object
rule | string A system generated string that represents the unique id of the Global Router Rule object |
position | integer An integer that represents that position of the Global Router Rule object |
{- "rule": "12edd6c5-2217-4b53-b635-83083f420dd8",
- "position": 1
}
[- {
- "unique_id": "12edd6c5-2217-4b53-b635-83083f420dd8",
- "name": "position 1",
- "position": 1,
- "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"8bbbbaba-cdef-4012-b456-7184d20607aa\":{\"type\":\"rule\",\"id\":\"8bbbbaba-cdef-4012-b456-7184d20607aa\",\"properties\":{\"field\":\"alert.payload\",\"operator\":\"payloadsearch\",\"value\":[\"$.payload.summary\",\"testing\"],\"valueSrc\":[\"value\",\"value\"],\"operatorOptions\":{\"ploperator\":\"equal\"},\"valueType\":[\"text\",\"text\"]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"8bbbbaba-cdef-4012-b456-7184d20607aa\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}",
- "actions": [
- {
- "unique_id": "6d90b452-6b5f-4ea1-8b58-9ad091aba040",
- "action_type": 0,
- "service": {
- "name": "Team 1 Service 1",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
}, - "team": {
- "name": "Team 1",
- "unique_id": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
}, - "integration_obj": {
- "unique_id": "0c4e939d-6d54-401e-ad83-6114368bdd0b",
- "name": "Anodot"
}
}, - {
- "unique_id": "be64664d-ab1d-419a-ab50-d48b05cbc1e6",
- "action_type": 0,
- "service": {
- "name": "Team 1 Service 1",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
}, - "team": {
- "name": "Team 1",
- "unique_id": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
}, - "integration_obj": {
- "unique_id": "0c4e939d-6d54-401e-ad83-6114368bdd0b",
- "name": "Anodot"
}
}
], - "router": "e9be034e-6076-4953-a315-9a3666ffe774"
}, - {
- "unique_id": "c757e713-e2c4-40f1-813a-6c82b487d9b2",
- "name": "position 2",
- "position": 2,
- "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"8bbbbaba-cdef-4012-b456-7184d20607aa\":{\"type\":\"rule\",\"id\":\"8bbbbaba-cdef-4012-b456-7184d20607aa\",\"properties\":{\"field\":\"alert.payload\",\"operator\":\"payloadsearch\",\"value\":[\"$.payload.summary\",\"testing\"],\"valueSrc\":[\"value\",\"value\"],\"operatorOptions\":{\"ploperator\":\"equal\"},\"valueType\":[\"text\",\"text\"]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"8bbbbaba-cdef-4012-b456-7184d20607aa\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}",
- "actions": [
- {
- "unique_id": "69efe5d0-450e-4842-98ce-2bd4235ed4f7",
- "action_type": 0,
- "service": {
- "name": "Team 1 Service 1",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
}, - "team": {
- "name": "Team 1",
- "unique_id": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
}, - "integration_obj": {
- "unique_id": "0c4e939d-6d54-401e-ad83-6114368bdd0b",
- "name": "Anodot"
}
}, - {
- "unique_id": "ca20dc3c-bbd8-467d-8aba-ad50547858c2",
- "action_type": 0,
- "service": {
- "name": "Team 1 Service 1",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
}, - "team": {
- "name": "Team 1",
- "unique_id": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
}, - "integration_obj": {
- "unique_id": "0c4e939d-6d54-401e-ad83-6114368bdd0b",
- "name": "Anodot"
}
}
], - "router": "e9be034e-6076-4953-a315-9a3666ffe774"
}
]
Retrieve the specified Global Router Rule object.
router_id required | string unique_id of the Global Router object |
ruleset_id required | string unique_id of the Global Router Rule object |
{- "unique_id": "4c9924cc-d051-4e58-978b-d673a7de540a",
- "name": "Rule for Grafana Integration",
- "position": 2,
- "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.payload\",\"operator\":\"payloadsearch\",\"value\":[\"$.commonLabels.alertname\",\"grafana\"],\"valueSrc\":[\"value\",\"value\"],\"operatorOptions\":{\"ploperator\":\"equal\"},\"valueType\":[\"text\",\"text\"]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}",
- "actions": [
- {
- "unique_id": "fb742645-dc2f-4b76-bf44-8a0a8aa48e09",
- "action_type": 0,
- "service": {
- "name": "Team 1 Service 1",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
}, - "team": {
- "name": "Team 1",
- "unique_id": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
}, - "integration_obj": {
- "unique_id": "0c4e939d-6d54-401e-ad83-6114368bdd0b",
- "name": "Anodot"
}
}
], - "router": "e9be034e-6076-4953-a315-9a3666ffe774"
}
Updates the specified Global Router Rule object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
router_id required | string unique_id of the Global Router object |
ruleset_id required | string unique_id of the Global Router Rule object |
Request body parameters to update the Global Router Rule object
name | string A string that represents the Global Router Rule object's name |
rule_json | string A string that represents the rule json of Global Router Rule object |
Array of objects (GlobalRouterRuleActionPayload) An array of Global Router Rule Action objects |
{- "name": "Rule for Grafana Integration Updated",
- "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.payload\",\"operator\":\"payloadsearch\",\"value\":[\"$.commonLabels.alertname\",\"grafana\"],\"valueSrc\":[\"value\",\"value\"],\"operatorOptions\":{\"ploperator\":\"equal\"},\"valueType\":[\"text\",\"text\"]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}",
- "actions": [
- {
- "action_type": 0,
- "integration": "0c4e939d-6d54-401e-ad83-6114368bdd0b"
}
]
}
{- "unique_id": "4c9924cc-d051-4e58-978b-d673a7de540a",
- "name": "Rule for Grafana Integration Updated",
- "position": 2,
- "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.payload\",\"operator\":\"payloadsearch\",\"value\":[\"$.commonLabels.alertname\",\"grafana\"],\"valueSrc\":[\"value\",\"value\"],\"operatorOptions\":{\"ploperator\":\"equal\"},\"valueType\":[\"text\",\"text\"]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}",
- "actions": [
- {
- "unique_id": "d926e67a-60ae-4ed4-8ece-b93c31da6bc7",
- "action_type": 0,
- "service": {
- "name": "Team 1 Service 1",
- "unique_id": "32a7c77f-aa0a-49de-ab52-e52f0aa77888"
}, - "team": {
- "name": "Team 1",
- "unique_id": "91fd3cc0-ebd6-43b8-aab3-67a05762ba0c"
}, - "integration_obj": {
- "unique_id": "0c4e939d-6d54-401e-ad83-6114368bdd0b",
- "name": "Anodot"
}
}
], - "router": "e9be034e-6076-4953-a315-9a3666ffe774"
}
Delete the specified Global Router Rule object permanently.
router_id required | string unique_id of the Global Router object |
ruleset_id required | string unique_id of the Global Router Rule object |
{- "detail": "This request can not be processed."
}
Alert Rules in Zenduty are advanced conditions for incoming alerts. They dictate how Zenduty handles alerts and their incidents upon receipt, altering behavior and routing based on predefined rules and actions set by the user within Zenduty Integrations.Visit this link to view the documentation for the alert rules https://www.zenduty.com/docs/alertrules/
Create the Alert Rule object by setting the values of all the required parameters passed in the request body.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
integration_id required | string unique_id of the Integration object |
Request body parameters to create the Alert Rule object
description | string A string that represents the Alert Transformer object's description |
Array of objects (AlertTransformerActionPayload) An array of Alert Transformer Action objects | |
rule_json | string A string that represents the all the conditions of the alert rule |
{- "actions": [
- {
- "unique_id": "992d6573-fb54-4a2b-8d5a-82619d477c3e",
- "action_type": 9,
- "key": "",
- "value": "{{summary}} https://www.zenduty.com/docs/alertrules/",
- "escalation_policy": null,
- "schedule": null,
- "assign_to": null,
- "task_template": null
}
], - "description": "Add links to alert summary",
- "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.message\",\"operator\":\"is_not_empty\",\"value\":[],\"valueSrc\":[],\"operatorOptions\":null,\"valueType\":[]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}"
}
{- "rule_type": 0,
- "unique_id": "8de24581-eade-4b50-a7f0-ac20594fde98",
- "description": "Add links to alert summary",
- "stop": false,
- "position": 1,
- "conditions": [ ],
- "actions": [
- {
- "unique_id": "13eddca2-38a2-4efd-a8a9-08adcb036416",
- "action_type": 9,
- "key": "",
- "value": "{{summary}} https://www.zenduty.com/docs/alertrules/",
- "value_reference_name": null,
- "escalation_policy": null,
- "escalation_policy_name": null,
- "assign_to": null,
- "assign_to_name": null,
- "schedule": null,
- "sla": null,
- "team_priority": null,
- "task_template": null
}
], - "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.message\",\"operator\":\"is_not_empty\",\"value\":[],\"valueSrc\":[],\"operatorOptions\":null,\"valueType\":[]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}"
}
Returns a list of Alert Rules objects.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
integration_id required | string unique_id of the Integration object |
[- {
- "rule_type": 0,
- "unique_id": "8de24581-eade-4b50-a7f0-ac20594fde98",
- "description": "Add links to alert summary",
- "stop": false,
- "position": 1,
- "conditions": [ ],
- "actions": [
- {
- "unique_id": "13eddca2-38a2-4efd-a8a9-08adcb036416",
- "action_type": 9,
- "key": "",
- "value": "{{summary}} https://www.zenduty.com/docs/alertrules/",
- "value_reference_name": null,
- "escalation_policy": null,
- "escalation_policy_name": null,
- "assign_to": null,
- "assign_to_name": null,
- "schedule": null,
- "sla": null,
- "team_priority": null,
- "task_template": null
}
], - "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.message\",\"operator\":\"is_not_empty\",\"value\":[],\"valueSrc\":[],\"operatorOptions\":null,\"valueType\":[]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}"
}, - {
- "rule_type": 0,
- "unique_id": "ec73021b-1017-4909-a85f-ff9ad04f38db",
- "description": "Create Incident for every alert",
- "stop": false,
- "position": 1,
- "conditions": [ ],
- "actions": [
- {
- "unique_id": "55754d02-b91a-4138-81fe-5b3b7b01a51e",
- "action_type": 10,
- "key": "",
- "value": "",
- "value_reference_name": null,
- "escalation_policy": null,
- "escalation_policy_name": null,
- "assign_to": null,
- "assign_to_name": null,
- "schedule": null,
- "sla": null,
- "team_priority": null,
- "task_template": null
}
], - "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.message\",\"operator\":\"is_not_empty\",\"value\":[],\"valueSrc\":[],\"operatorOptions\":null,\"valueType\":[]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}"
}
]
Retrieve the specified Alert Rule object.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
integration_id required | string unique_id of the Integration object |
transformers_id required | string unique_id of the Alert Rule object |
{- "rule_type": 0,
- "unique_id": "8de24581-eade-4b50-a7f0-ac20594fde98",
- "description": "Add links to alert summary",
- "stop": false,
- "position": 1,
- "conditions": [ ],
- "actions": [
- {
- "unique_id": "13eddca2-38a2-4efd-a8a9-08adcb036416",
- "action_type": 9,
- "key": "",
- "value": "{{summary}} https://www.zenduty.com/docs/alertrules/",
- "value_reference_name": null,
- "escalation_policy": null,
- "escalation_policy_name": null,
- "assign_to": null,
- "assign_to_name": null,
- "schedule": null,
- "sla": null,
- "team_priority": null,
- "task_template": null
}
], - "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.message\",\"operator\":\"is_not_empty\",\"value\":[],\"valueSrc\":[],\"operatorOptions\":null,\"valueType\":[]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}"
}
Updates the specified Alert Rule object by setting the values of the parameters passed in the request body. Any parameters not provided will be left unchanged.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
integration_id required | string unique_id of the Integration object |
transformers_id required | string unique_id of the Alert Rule object |
Request body parameters to update the Alert Rule object
description | string A string that represents the Alert Transformer object's description |
Array of objects (AlertTransformerActionPayload) An array of Alert Transformer Action objects | |
rule_json | string A string that represents the all the conditions of the alert rule |
{- "rule_type": 0,
- "unique_id": "8de24581-eade-4b50-a7f0-ac20594fde98",
- "description": "Add links to alert summary updated",
- "stop": false,
- "position": 1,
- "conditions": [ ],
- "actions": [
- {
- "unique_id": "13eddca2-38a2-4efd-a8a9-08adcb036416",
- "action_type": 9,
- "key": "",
- "value": "{{summary}} https://www.zenduty.com/docs/alertrules/",
- "value_reference_name": null,
- "escalation_policy": null,
- "escalation_policy_name": null,
- "assign_to": null,
- "assign_to_name": null,
- "schedule": null,
- "sla": null,
- "team_priority": null,
- "task_template": null
}
], - "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.message\",\"operator\":\"is_not_empty\",\"value\":[],\"valueSrc\":[],\"operatorOptions\":null,\"valueType\":[]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}"
}
{- "rule_type": 0,
- "unique_id": "8de24581-eade-4b50-a7f0-ac20594fde98",
- "description": "Add links to alert summary updated",
- "stop": false,
- "position": 1,
- "conditions": [ ],
- "actions": [
- {
- "unique_id": "c6d6028b-74f3-4f51-b748-b14f207e380f",
- "action_type": 9,
- "key": "",
- "value": "{{summary}} https://www.zenduty.com/docs/alertrules/",
- "value_reference_name": null,
- "escalation_policy": null,
- "escalation_policy_name": null,
- "assign_to": null,
- "assign_to_name": null,
- "schedule": null,
- "sla": null,
- "team_priority": null,
- "task_template": null
}
], - "rule_json": "{\"type\":\"group\",\"id\":\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"children1\":{\"898aa9ba-0123-4456-b89a-b16a429f5d94\":{\"type\":\"rule\",\"id\":\"898aa9ba-0123-4456-b89a-b16a429f5d94\",\"properties\":{\"field\":\"alert.message\",\"operator\":\"is_not_empty\",\"value\":[],\"valueSrc\":[],\"operatorOptions\":null,\"valueType\":[]},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\",\"898aa9ba-0123-4456-b89a-b16a429f5d94\"]}},\"properties\":{\"conjunction\":\"AND\",\"not\":false},\"path\":[\"9a99988a-0123-4456-b89a-b1607f326fd8\"]}"
}
Delete the specified Alert Rule object permanently.
team_id required | string unique_id of the Team object |
service_id required | string unique_id of the Service object |
integration_id required | string unique_id of the Integration object |
transformers_id required | string unique_id of the Alert Rule object |
{- "detail": "This request can not be processed."
}