Skip to content
  • There are no suggestions because the search field is empty.

Users API

The Users API provides complete management of user accounts, including contact methods, notification schedules, out-of-office settings, roles, and custom attributes.

The Users API provides complete management of user accounts, including contact methods, notification schedules, out-of-office settings, roles, and custom attributes.

Base URLhttps://api.alertops.com/api/v2
Authenticationapi-key request header
Endpoints24

Endpoints

MethodPathDescription
GET/api/v2/usersList users
POST/api/v2/usersCreate a user
GET/api/v2/users/{id}Get a user
PUT/api/v2/users/{id}Update a user
DELETE/api/v2/users/{id}Delete a user
GET/api/v2/users/{id}/contact_methodsList a user's contact methods
POST/api/v2/users/{id}/contact_methodsCreate a user's contact method
GET/api/v2/users/{id}/contact_methods/{contact_method_name}Get a user's contact method
PUT/api/v2/users/{id}/contact_methods/{contact_method_name}Update a user's contact method
DELETE/api/v2/users/{id}/contact_methods/{contact_method_name}Delete a user's contact method
GET/api/v2/users/{id}/contact_methods/{contact_method_name}/notification_timesList a user's contact method notification times
POST/api/v2/users/{id}/contact_methods/{contact_method_name}/notification_timesCreate a user's contact method notification times
PUT/api/v2/users/{id}/contact_methods/{contact_method_name}/notification_times/{notificationTimeId}Update a user's contact method notification times
DELETE/api/v2/users/{id}/contact_methods/{contact_method_name}/notification_times/{notificationTimeId}Delete a user's contact method notification times
GET/api/v2/users/{id}/groupsList a user's groups
GET/api/v2/users/{id}/out_of_officeList a user's out of office
POST/api/v2/users/{id}/out_of_officeCreate a user's out of office
GET/api/v2/users/{id}/out_of_office/{out_of_office_id}Get a user's out of office
PUT/api/v2/users/{id}/out_of_office/{out_of_office_id}Update a user's out of office
DELETE/api/v2/users/{id}/out_of_office/{out_of_office_id}Delete a user's out of office
GET/api/v2/users/{id}/rolesList a user's roles
GET/api/v2/users/{id}/schedulesList a user's schedules
GET/api/v2/users/{id}/user_attributesList a user's attributes
PUT/api/v2/users/{id}/user_attributesUpdate a user's attributes

List users

GET /api/v2/users

Query parameters

NameTypeRequiredDescription
searchstringOptional 
rolestringOptional 
limitintegerOptionalPage size. Default is 10. Max value for this parameter is 100.
offsetintegerOptionalDefault is 0. Offset to start pagination search results.
sortBystringOptionalDefault is UserName. Eg. UserName or LastName or FirstName or LastLoginDate or Roles
sortDirstringOptionalDefault is asc. Eg. asc or desc
includestringOptionalDefault Empty. Eg. Roles

Responses

200 OK

{
  "limit": 10,
  "offset": 0,
  "users": [
    {
      "user_id": 100,
      "user_name": "testusername1",
      "first_name": "TestFirstname1",
      "last_name": "TestLastName1",
      "locale": "en-US",
      "time_zone": "(UTC-06:00) Central Time (US & Canada)",
      "type": "Standard",
      "last_login_date": "1/10/2100 21:21:00"
    },
    {
      "user_id": 101,
      "user_name": "testusername2",
      "first_name": "TestFirstname2",
      "last_name": "TestLastName2",
      "locale": "en-US",
      "time_zone": "(UTC-06:00) Central Time (US & Canada)",
      "type": "Standard",
      "last_login_date": "1/15/2100 10:18:38"
    }
  ]
}

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Create a user

POST /api/v2/users

Request body

JSON object.

Example body

{
  "user_name": "string",
  "first_name": "string",
  "last_name": "string",
  "locale": "string",
  "time_zone": "string",
  "type": "string",
  "external_id": "string",
  "contact_methods": [
    {
      "contact_method_name": "string",
      "email": {
        "email_address": "string"
      },
      "phone": {
        "country_code": "string",
        "phone_number": "string",
        "extension": "string"
      },
      "sms": {
        "country_code": "string",
        "phone_number": "string"
      },
      "gateway": {
        "provider": "string",
        "address": "string"
      },
      "slack_dm": {
        "member_id": "string"
      },
      "wait_time_in_mins": 0,
      "repeat": true,
      "repeat_times": 0,
      "repeat_minutes": 0,
      "notification_time24x7": true,
      "notification_times": [
        {
          "notification_time_id": 0,
          "name": "string",
          "sunday": true,
          "monday": true,
          "tuesday": true,
          "wednesday": true,
          "thursday": true,
          "friday": true,
          "saturday": true,
          "start_hour": 0,
          "start_minute": 0,
          "end_hour": 0,
          "end_minute": 0
        }
      ],
      "enabled": true,
      "sequence": 0
    }
  ],
  "roles": [
    "string"
  ]
}

Responses

200 OK

401 Unauthorized · missing or invalid api-key

Example request

curl -X POST "https://api.alertops.com/api/v2/users" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "user_name": "string",
  "first_name": "string",
  "last_name": "string",
  "locale": "string",
  "time_zone": "string",
  "type": "string",
  "external_id": "string",
  "contact_methods": [
    {
      "contact_method_name": "string",
      "email": {
        "email_address": "string"
      },
      "phone": {
        "country_code": "string",
        "phone_number": "string",
        "extension": "string"
      },
      "sms": {
        "country_code": "string",
        "phone_number": "string"
      },
      "gateway": {
        "provider": "string",
        "address": "string"
      },
      "slack_dm": {
        "member_id": "string"
      },
      "wait_time_in_mins": 0,
      "repeat": true,
      "repeat_times": 0,
      "repeat_minutes": 0,
      "notification_time24x7": true,
      "notification_times": [
        {
          "notification_time_id": 0,
          "name": "string",
          "sunday": true,
          "monday": true,
          "tuesday": true,
          "wednesday": true,
          "thursday": true,
          "friday": true,
          "saturday": true,
          "start_hour": 0,
          "start_minute": 0,
          "end_hour": 0,
          "end_minute": 0
        }
      ],
      "enabled": true,
      "sequence": 0
    }
  ],
  "roles": [
    "string"
  ]
}'

Get a user

GET /api/v2/users/{id}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Query parameters

NameTypeRequiredDescription
includestringOptionalDefault Empty. Eg. Groups/Attributes/Groups,Attributes

Responses

200 OK

{
  "user_name": "testuser25",
  "first_name": "TestUser",
  "last_name": "Test",
  "time_zone": "(UTC-06:00) Central Time (US & Canada)",
  "locale_name": "en-US",
  "type": "Standard",
  "last_login_date": "",
  "external_id": null,
  "user_api_key": null,
  "contact_methods": [
    {
      "contact_method_name": "Email-Official",
      "email": {
        "email_address": "test@samplecompany.com"
      },
      "phone": null,
      "sms": null,
      "push_notification": null,
      "wait_time_in_mins": 0,
      "repeat": false,
      "repeat_times": 0,
      "repeat_minutes": 0,
      "notification_time24x7": true,
      "notification_times": [
        {
          "notification_time_id": 95,
          "name": "",
          "sunday": false,
          "monday": true,
          "tuesday": true,
          "wednesday": true,
          "thursday": true,
          "friday": true,
          "saturday": false,
          "start_hour": 9,
          "start_minute": 0,
          "end_hour": 18,
          "end_minute": 0
        },
        {
          "notification_time_id": 96,
          "name": "",
          "sunday": true,
          "monday": false,
          "tuesday": false,
          "wednesday": false,
          "thursday": false,
          "friday": false,
          "saturday": true,
          "start_hour": 0,
          "start_minute": 0,
          "end_hour": 23,
          "end_minute": 59
        },
        {
          "notification_time_id": 101,
          "name": "",
          "sunday": false,
          "monday": true,
          "tuesday": true,
          "wednesday": false,
          "thursday": false,
          "friday": false,
          "saturday": false,
          "start_hour": 0,
          "start_minute": 0,
          "end_hour": 2,
          "end_minute": 0
        }
      ],
      "enabled": false,
      "sequence": 1
    },
    {
      "contact_method_name": "Phone-Official",
      "email": null,
      "phone": {
        "country_code": "1",
        "phone_number": "1234567890",
        "extension": ""
      },
      "sms": null,
      "push_notification": null,
      "wait_time_in_mins": 0,
      "repeat": false,
      "repeat_times": 0,
      "repeat_minutes": 0,
      "notification_time24x7": false,
      "notification_times": null,
      "enabled": false,
      "sequence": 2
    },
    {
      "contact_method_name": "SMS-Personal",
      "email": null,
      "phone": null,
      "sms": {
        "country_code": "1",
        "phone_number": "1234567890"
      },
      "push_notification": null,
      "wait_time_in_mins": 0,
      "repeat": false,
      "repeat_times": 0,
      "repeat_minutes": 0,
      "notification_time24x7": false,
      "notification_times": null,
      "enabled": false,
      "sequence": 3
    },
    {
      "contact_method_name": "Push Notification",
      "email": null,
      "phone": null,
      "sms": null,
      "push_notification": {
        "Platform": "Android"
      },
      "wait_time_in_mins": 0,
      "repeat": false,
      "repeat_times": 0,
      "repeat_minutes": 0,
      "notification_time24x7": false,
      "notification_times": null,
      "enabled": false,
      "sequence": 4
    }
  ],
  "roles": [
    "User Role1",
    "User Role2"
  ]
}

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users/{id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Update a user

PUT /api/v2/users/{id}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Request body

JSON object.

Example body

{
  "user_name": "string",
  "first_name": "string",
  "last_name": "string",
  "locale": "string",
  "time_zone": "string",
  "external_id": "string",
  "contact_methods": [
    {
      "contact_method_name": "string",
      "email": {
        "email_address": "string"
      },
      "phone": {
        "country_code": "string",
        "phone_number": "string",
        "extension": "string"
      },
      "sms": {
        "country_code": "string",
        "phone_number": "string"
      },
      "gateway": {
        "provider": "string",
        "address": "string"
      },
      "push_notification": {
        "platform": "string"
      },
      "slack_dm": {
        "member_id": "string"
      },
      "wait_time_in_mins": 0,
      "repeat": true,
      "repeat_times": 0,
      "repeat_minutes": 0,
      "notification_time24x7": true,
      "notification_times": [
        {
          "notification_time_id": 0,
          "name": "string",
          "sunday": true,
          "monday": true,
          "tuesday": true,
          "wednesday": true,
          "thursday": true,
          "friday": true,
          "saturday": true,
          "start_hour": 0,
          "start_minute": 0,
          "end_hour": 0,
          "end_minute": 0
        }
      ],
      "enabled": true,
      "sequence": 0
    }
  ],
  "roles": [
    "string"
  ]
}

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X PUT "https://api.alertops.com/api/v2/users/{id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "user_name": "string",
  "first_name": "string",
  "last_name": "string",
  "locale": "string",
  "time_zone": "string",
  "external_id": "string",
  "contact_methods": [
    {
      "contact_method_name": "string",
      "email": {
        "email_address": "string"
      },
      "phone": {
        "country_code": "string",
        "phone_number": "string",
        "extension": "string"
      },
      "sms": {
        "country_code": "string",
        "phone_number": "string"
      },
      "gateway": {
        "provider": "string",
        "address": "string"
      },
      "push_notification": {
        "platform": "string"
      },
      "slack_dm": {
        "member_id": "string"
      },
      "wait_time_in_mins": 0,
      "repeat": true,
      "repeat_times": 0,
      "repeat_minutes": 0,
      "notification_time24x7": true,
      "notification_times": [
        {
          "notification_time_id": 0,
          "name": "string",
          "sunday": true,
          "monday": true,
          "tuesday": true,
          "wednesday": true,
          "thursday": true,
          "friday": true,
          "saturday": true,
          "start_hour": 0,
          "start_minute": 0,
          "end_hour": 0,
          "end_minute": 0
        }
      ],
      "enabled": true,
      "sequence": 0
    }
  ],
  "roles": [
    "string"
  ]
}'

Delete a user

DELETE /api/v2/users/{id}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X DELETE "https://api.alertops.com/api/v2/users/{id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

List a user's contact methods

GET /api/v2/users/{id}/contact_methods

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Responses

200 OK

[
  {
    "contact_method_name": "Email-Official",
    "email": {
      "email_address": "test@samplecompany.com"
    },
    "phone": null,
    "sms": null,
    "push_notification": null,
    "wait_time_in_mins": 0,
    "repeat": false,
    "repeat_times": 0,
    "repeat_minutes": 0,
    "notification_time24x7": true,
    "notification_times": [
      {
        "notification_time_id": 95,
        "name": "",
        "sunday": false,
        "monday": true,
        "tuesday": true,
        "wednesday": true,
        "thursday": true,
        "friday": true,
        "saturday": false,
        "start_hour": 9,
        "start_minute": 0,
        "end_hour": 18,
        "end_minute": 0
      },
      {
        "notification_time_id": 96,
        "name": "",
        "sunday": false,
        "monday": true,
        "tuesday": true,
        "wednesday": true,
        "thursday": true,
        "friday": true,
        "saturday": false,
        "start_hour": 8,
        "start_minute": 0,
        "end_hour": 18,
        "end_minute": 0
      }
    ],
    "enabled": false,
    "sequence": 1
  },
  {
    "contact_method_name": "Phone-Official",
    "email": null,
    "phone": {
      "country_code": "1",
      "phone_number": "12344567890",
      "extension": ""
    },
    "sms": null,
    "push_notification": null,
    "wait_time_in_mins": 0,
    "repeat": false,
    "repeat_times": 0,
    "repeat_minutes": 0,
    "notification_time24x7": false,
    "notification_times": null,
    "enabled": false,
    "sequence": 2
  },
  {
    "contact_method_name": "SMS-Personal",
    "email": null,
    "phone": null,
    "sms": {
      "country_code": "1",
      "phone_number": "1234567890"
    },
    "push_notification": null,
    "wait_time_in_mins": 0,
    "repeat": false,
    "repeat_times": 0,
    "repeat_minutes": 0,
    "notification_time24x7": false,
    "notification_times": null,
    "enabled": false,
    "sequence": 3
  },
  {
    "contact_method_name": "Push Notification",
    "email": null,
    "phone": null,
    "sms": null,
    "push_notification": {
      "Platform": "Android"
    },
    "wait_time_in_mins": 0,
    "repeat": false,
    "repeat_times": 0,
    "repeat_minutes": 0,
    "notification_time24x7": false,
    "notification_times": null,
    "enabled": false,
    "sequence": 4
  }
]

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users/{id}/contact_methods" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Create a user's contact method

POST /api/v2/users/{id}/contact_methods

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Request body

JSON object.

Example body

{
  "contact_method_name": "Phone-Official",
  "email": null,
  "phone": {
    "country_code": "1",
    "phone_number": "1234567890",
    "extension": ""
  },
  "sms": null,
  "push_notification": null,
  "wait_time_in_mins": 0,
  "repeat": false,
  "repeat_times": 0,
  "repeat_minutes": 0,
  "notification_time24x7": true,
  "notification_times": [
    {
      "notification_time_id": 0,
      "name": "",
      "sunday": false,
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": false,
      "start_hour": 9,
      "start_minute": 0,
      "end_hour": 18,
      "end_minute": 0
    },
    {
      "notification_time_id": 0,
      "name": "",
      "sunday": false,
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": false,
      "start_hour": 8,
      "start_minute": 0,
      "end_hour": 18,
      "end_minute": 0
    }
  ],
  "enabled": false,
  "sequence": 1
}

Responses

200 OK

401 Unauthorized · missing or invalid api-key

Example request

curl -X POST "https://api.alertops.com/api/v2/users/{id}/contact_methods" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "contact_method_name": "Phone-Official",
  "email": null,
  "phone": {
    "country_code": "1",
    "phone_number": "1234567890",
    "extension": ""
  },
  "sms": null,
  "push_notification": null,
  "wait_time_in_mins": 0,
  "repeat": false,
  "repeat_times": 0,
  "repeat_minutes": 0,
  "notification_time24x7": true,
  "notification_times": [
    {
      "notification_time_id": 0,
      "name": "",
      "sunday": false,
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": false,
      "start_hour": 9,
      "start_minute": 0,
      "end_hour": 18,
      "end_minute": 0
    },
    {
      "notification_time_id": 0,
      "name": "",
      "sunday": false,
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": false,
      "start_hour": 8,
      "start_minute": 0,
      "end_hour": 18,
      "end_minute": 0
    }
  ],
  "enabled": false,
  "sequence": 1
}'

Get a user's contact method

GET /api/v2/users/{id}/contact_methods/{contact_method_name}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name
contact_method_namestringRequiredThe contact method name.

Responses

200 OK

{
  "contact_method_name": "Email-Official",
  "email": {
    "email_address": "test@samplecompany.com"
  },
  "phone": null,
  "sms": null,
  "push_notification": null,
  "wait_time_in_mins": 0,
  "repeat": false,
  "repeat_times": 0,
  "repeat_minutes": 0,
  "notification_time24x7": true,
  "notification_times": [
    {
      "notification_time_id": 95,
      "name": "",
      "sunday": false,
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": false,
      "start_hour": 9,
      "start_minute": 0,
      "end_hour": 18,
      "end_minute": 0
    },
    {
      "notification_time_id": 96,
      "name": "",
      "sunday": false,
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": false,
      "start_hour": 8,
      "start_minute": 0,
      "end_hour": 18,
      "end_minute": 0
    }
  ],
  "enabled": false,
  "sequence": 1
}

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users/{id}/contact_methods/{contact_method_name}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Update a user's contact method

PUT /api/v2/users/{id}/contact_methods/{contact_method_name}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name
contact_method_namestringRequiredThe contact method name.

Request body

JSON object.

Example body

{
  "email": null,
  "phone": {
    "country_code": "1",
    "phone_number": "1234567890",
    "extension": ""
  },
  "sms": null,
  "push_notification": null,
  "wait_time_in_mins": 0,
  "repeat": false,
  "repeat_times": 0,
  "repeat_minutes": 0,
  "notification_time24x7": true,
  "notification_times": [
    {
      "notification_time_id": 10,
      "name": "Notification Schedule 1",
      "sunday": false,
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": false,
      "start_hour": 9,
      "start_minute": 0,
      "end_hour": 18,
      "end_minute": 0
    },
    {
      "notification_time_id": 20,
      "name": "Notification Schedule 2",
      "sunday": false,
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": false,
      "start_hour": 8,
      "start_minute": 0,
      "end_hour": 18,
      "end_minute": 0
    }
  ],
  "enabled": false,
  "sequence": 1
}

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X PUT "https://api.alertops.com/api/v2/users/{id}/contact_methods/{contact_method_name}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "email": null,
  "phone": {
    "country_code": "1",
    "phone_number": "1234567890",
    "extension": ""
  },
  "sms": null,
  "push_notification": null,
  "wait_time_in_mins": 0,
  "repeat": false,
  "repeat_times": 0,
  "repeat_minutes": 0,
  "notification_time24x7": true,
  "notification_times": [
    {
      "notification_time_id": 10,
      "name": "Notification Schedule 1",
      "sunday": false,
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": false,
      "start_hour": 9,
      "start_minute": 0,
      "end_hour": 18,
      "end_minute": 0
    },
    {
      "notification_time_id": 20,
      "name": "Notification Schedule 2",
      "sunday": false,
      "monday": true,
      "tuesday": true,
      "wednesday": true,
      "thursday": true,
      "friday": true,
      "saturday": false,
      "start_hour": 8,
      "start_minute": 0,
      "end_hour": 18,
      "end_minute": 0
    }
  ],
  "enabled": false,
  "sequence": 1
}'

Delete a user's contact method

DELETE /api/v2/users/{id}/contact_methods/{contact_method_name}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name
contact_method_namestringRequiredThe contact method name.

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X DELETE "https://api.alertops.com/api/v2/users/{id}/contact_methods/{contact_method_name}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

List a user's contact method notification times

GET /api/v2/users/{id}/contact_methods/{contact_method_name}/notification_times

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name
contact_method_namestringRequiredThe contact method name.

Responses

200 OK

[
  {
    "notification_time_id": 137,
    "name": "time1",
    "sunday": false,
    "monday": true,
    "tuesday": false,
    "wednesday": false,
    "thursday": false,
    "friday": false,
    "saturday": false,
    "start_hour": 9,
    "start_minute": 30,
    "end_hour": 12,
    "end_minute": 40
  }
]

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users/{id}/contact_methods/{contact_method_name}/notification_times" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Create a user's contact method notification times

POST /api/v2/users/{id}/contact_methods/{contact_method_name}/notification_times

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name
contact_method_namestringRequiredThe contact method name.

Request body

JSON object (required).

FieldTypeRequired
namestringOptional
sundaybooleanRequired
mondaybooleanRequired
tuesdaybooleanRequired
wednesdaybooleanRequired
thursdaybooleanRequired
fridaybooleanRequired
saturdaybooleanRequired
start_hourintegerRequired
start_minuteintegerRequired
end_hourintegerRequired
end_minuteintegerRequired

Example body

{
  "name": "string",
  "sunday": true,
  "monday": true,
  "tuesday": true,
  "wednesday": true,
  "thursday": true,
  "friday": true,
  "saturday": true,
  "start_hour": 0,
  "start_minute": 0,
  "end_hour": 0,
  "end_minute": 0
}

Responses

200 OK

401 Unauthorized · missing or invalid api-key

Example request

curl -X POST "https://api.alertops.com/api/v2/users/{id}/contact_methods/{contact_method_name}/notification_times" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "sunday": true,
  "monday": true,
  "tuesday": true,
  "wednesday": true,
  "thursday": true,
  "friday": true,
  "saturday": true,
  "start_hour": 0,
  "start_minute": 0,
  "end_hour": 0,
  "end_minute": 0
}'

Update a user's contact method notification times

PUT /api/v2/users/{id}/contact_methods/{contact_method_name}/notification_times/{notificationTimeId}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name
contact_method_namestringRequiredThe contact method name.
notificationTimeIdintegerRequiredThe notification time ID.

Request body

JSON object (required).

FieldTypeRequired
namestringOptional
sundaybooleanRequired
mondaybooleanRequired
tuesdaybooleanRequired
wednesdaybooleanRequired
thursdaybooleanRequired
fridaybooleanRequired
saturdaybooleanRequired
start_hourintegerRequired
start_minuteintegerRequired
end_hourintegerRequired
end_minuteintegerRequired

Example body

{
  "name": "string",
  "sunday": true,
  "monday": true,
  "tuesday": true,
  "wednesday": true,
  "thursday": true,
  "friday": true,
  "saturday": true,
  "start_hour": 0,
  "start_minute": 0,
  "end_hour": 0,
  "end_minute": 0
}

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X PUT "https://api.alertops.com/api/v2/users/{id}/contact_methods/{contact_method_name}/notification_times/{notificationTimeId}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "sunday": true,
  "monday": true,
  "tuesday": true,
  "wednesday": true,
  "thursday": true,
  "friday": true,
  "saturday": true,
  "start_hour": 0,
  "start_minute": 0,
  "end_hour": 0,
  "end_minute": 0
}'

Delete a user's contact method notification times

DELETE /api/v2/users/{id}/contact_methods/{contact_method_name}/notification_times/{notificationTimeId}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name
contact_method_namestringRequiredThe contact method name.
notificationTimeIdintegerRequiredThe notification time ID.

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X DELETE "https://api.alertops.com/api/v2/users/{id}/contact_methods/{contact_method_name}/notification_times/{notificationTimeId}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

List a user's groups

GET /api/v2/users/{id}/groups

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Responses

200 OK

[
  {
    "group_id": 1828,
    "group_name": "CyberKorp",
    "manager": true
  }
]

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users/{id}/groups" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

List a user's out of office

GET /api/v2/users/{id}/out_of_office

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Responses

200 OK

[
  {
    "out_of_office_id": 123,
    "start_date": {
      "date": "2021-01-01",
      "hour": 9,
      "minute": 0
    },
    "end_date": {
      "date": "2021-01-30",
      "hour": 18,
      "minute": 0
    },
    "start_date_time": "2021-01-01T09:00:00",
    "end_date_time": "2021-01-30T18:00:00",
    "all_groups": false,
    "covering_users": [
      {
        "group": "Group 1",
        "cover_user": "User1",
        "cover_user_first_name": "FirstName",
        "cover_user_last_name": "LastName"
      },
      {
        "group": "Group 2",
        "cover_user": "User2",
        "cover_user_first_name": "FirstName",
        "cover_user_last_name": "LastName"
      }
    ]
  }
]

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users/{id}/out_of_office" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Create a user's out of office

POST /api/v2/users/{id}/out_of_office

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Request body

JSON object (required).

FieldTypeRequired
start_dateobjectOptional
start_date.datestringOptional
start_date.hourintegerRequired
start_date.minuteintegerRequired
end_dateobjectOptional
end_date.datestringOptional
end_date.hourintegerRequired
end_date.minuteintegerRequired
all_groupsbooleanRequired
covering_usersarray of objectsOptional
covering_users[].groupstringOptional
covering_users[].cover_userstringOptional

Example body

{
  "start_date": {
    "date": "string",
    "hour": 0,
    "minute": 0
  },
  "end_date": {
    "date": "string",
    "hour": 0,
    "minute": 0
  },
  "all_groups": true,
  "covering_users": [
    {
      "group": "string",
      "cover_user": "string"
    }
  ]
}

Responses

200 OK

401 Unauthorized · missing or invalid api-key

Example request

curl -X POST "https://api.alertops.com/api/v2/users/{id}/out_of_office" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "start_date": {
    "date": "string",
    "hour": 0,
    "minute": 0
  },
  "end_date": {
    "date": "string",
    "hour": 0,
    "minute": 0
  },
  "all_groups": true,
  "covering_users": [
    {
      "group": "string",
      "cover_user": "string"
    }
  ]
}'

Get a user's out of office

GET /api/v2/users/{id}/out_of_office/{out_of_office_id}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name
out_of_office_idintegerRequiredThe out of office ID.

Responses

200 OK

{
  "out_of_office_id": 123,
  "start_date": {
    "date": "2020-01-01",
    "hour": 9,
    "minute": 0
  },
  "end_date": {
    "date": "2020-01-30",
    "hour": 17,
    "minute": 59
  },
  "all_groups": false,
  "covering_users": [
    {
      "group": "Group 1",
      "cover_user": "User1",
      "cover_user_first_name": "FirstName",
      "cover_user_last_name": "LastName"
    },
    {
      "group": "Group 2",
      "cover_user": "User2",
      "cover_user_first_name": "FirstName",
      "cover_user_last_name": "LastName"
    }
  ]
}

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users/{id}/out_of_office/{out_of_office_id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Update a user's out of office

PUT /api/v2/users/{id}/out_of_office/{out_of_office_id}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name
out_of_office_idintegerRequiredThe out of office ID.

Request body

JSON object (required).

FieldTypeRequired
start_dateobjectOptional
start_date.datestringOptional
start_date.hourintegerRequired
start_date.minuteintegerRequired
end_dateobjectOptional
end_date.datestringOptional
end_date.hourintegerRequired
end_date.minuteintegerRequired
all_groupsbooleanRequired
covering_usersarray of objectsOptional
covering_users[].groupstringOptional
covering_users[].cover_userstringOptional

Example body

{
  "start_date": {
    "date": "string",
    "hour": 0,
    "minute": 0
  },
  "end_date": {
    "date": "string",
    "hour": 0,
    "minute": 0
  },
  "all_groups": true,
  "covering_users": [
    {
      "group": "string",
      "cover_user": "string"
    }
  ]
}

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X PUT "https://api.alertops.com/api/v2/users/{id}/out_of_office/{out_of_office_id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "start_date": {
    "date": "string",
    "hour": 0,
    "minute": 0
  },
  "end_date": {
    "date": "string",
    "hour": 0,
    "minute": 0
  },
  "all_groups": true,
  "covering_users": [
    {
      "group": "string",
      "cover_user": "string"
    }
  ]
}'

Delete a user's out of office

DELETE /api/v2/users/{id}/out_of_office/{out_of_office_id}

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name
out_of_office_idintegerRequiredThe out of office ID.

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X DELETE "https://api.alertops.com/api/v2/users/{id}/out_of_office/{out_of_office_id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

List a user's roles

GET /api/v2/users/{id}/roles

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Responses

200 OK

[
  "User Role1",
  "User Role2"
]

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users/{id}/roles" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

List a user's schedules

GET /api/v2/users/{id}/schedules

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Query parameters

NameTypeRequiredDescription
startDatestringOptionalStart Date. Default value is today. Date Format 'yyyy-MM-dd'
endDatestringOptionalEnd Date. Default value is 90 days from today. Date Format 'yyyy-MM-dd'

Responses

200 OK

[
  {
    "start_date_time": "2021-09-24T00:00:00",
    "end_date_time": "2021-09-24T23:59:59",
    "all_day": true,
    "group": "Group 1",
    "role": "Secondary",
    "day": "9/24/2021",
    "duration": "23h 59m",
    "covering": "",
    "covered_by": "",
    "color": "#808080",
    "time_zone": "(UTC-06:00) Central Time (US & Canada)"
  }
]

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users/{id}/schedules" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

List a user's attributes

GET /api/v2/users/{id}/user_attributes

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Responses

200 OK

[
  {
    "attribute_name": "Key1",
    "attribute_value": "Value1"
  }
]

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/users/{id}/user_attributes" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Update a user's attributes

PUT /api/v2/users/{id}/user_attributes

Path parameters

NameTypeRequiredDescription
idstringRequiredUserID or User Name

Request body

JSON object (required).

Example body

[
  {
    "attribute_name": "string",
    "attribute_value": "string"
  }
]

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X PUT "https://api.alertops.com/api/v2/users/{id}/user_attributes" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '[{"attribute_name":"string","attribute_value":"string"}]'