|docs
Start Trial

Developer

Types

Types

Warning

The null value

Unless otherwise noted, any field in the PagerDuty API can contain the value null. This represents the absence of a value for that field. For example, if a resource does not have a description, it may return "description": null. Fields that are required will never be null.

ID

IDs are represented in the PagerDuty API as strings.

All IDs will be contained within an id key.

These IDs are not globally unique, but will be unique across a given endpoint. For example, a schedule and a service may both have the id PSWK4Q7, but no two schedules will have the same id.

Note

An id field is never null.

UUID

UUID fields are designated with the presence of uuid in their key name, and contain string ID values.

UUIDs can be considered unique across PagerDuty. That is, no two resources of any type will share the same UUID.

Note

A uuid field is never null.

String

A standard JSON string. Strings in the REST API use the UTF-8 character set.

Integer

Integer types are a number without a fractional or decimal component.

Boolean

A boolean has only two possible states: true and false.

In responses, booleans are always represented by native JSON booleans — true or false without quotes.

In query strings, booleans can also be represented by string values. "1" and "true" are acceptable to represent a truthy value, and "0" and "false" are acceptable to represent a falsy value.

Note

A boolean field is never null.

Array

A standard JSON array. Arrays may contain any number of values, from 0 to n, unless otherwise specified.

The primitive data type of the values within an array will always be consistent. That is, while a single array may contain objects representing both Users and Schedules, it will never contain both objects and integers.

Note

An array field is never null. If there are no values for the associated field, the value will be an empty array ([]).

Object

A standard JSON object. Objects consist of string keys paired with values that may be of any type.

DateTime

All dates and times must be represented in the ISO 8601 date/time format. The time element is optional.

Example dates in ISO 8601 format:

Date and TimeISO 8601 Representation
May 6th, 2011 at 5pm UTC2011-05-06T17:00Z
May 6th, 2011 at 3:30am PDT2011-05-06T03:30-07
May 6th, 2011 at midnight (time is optional)2011-05-06

Time Zone

A string of a recognized time zone identifier. The acceptable identifiers and their name/description are shown below.

Time Zone IdentifierName/Description
Africa/AlgiersWest Central Africa
Africa/CairoCairo
Africa/CasablancaCasablanca
Africa/HarareHarare
Africa/JohannesburgPretoria
Africa/MonroviaMonrovia
Africa/NairobiNairobi
America/Argentina/Buenos_AiresBuenos Aires
America/BogotaBogota
America/CaracasCaracas
America/ChicagoCentral Time (US & Canada)
America/ChihuahuaChihuahua
America/DenverMountain Time (US & Canada)
America/GodthabGreenland
America/GuatemalaCentral America
America/GuyanaGeorgetown
America/HalifaxAtlantic Time (Canada)
America/Indiana/IndianapolisIndiana (East)
America/JuneauAlaska
America/La_PazLa Paz
America/LimaLima
America/LimaQuito
America/Los_AngelesPacific Time (US & Canada)
America/MazatlanMazatlan
America/Mexico_CityGuadalajara
America/Mexico_CityMexico City
America/MonterreyMonterrey
America/MontevideoMontevideo
America/New_YorkEastern Time (US & Canada)
America/PhoenixArizona
America/Puerto_RicoPuerto Rico
America/ReginaSaskatchewan
America/SantiagoSantiago
America/Sao_PauloBrasilia
America/St_JohnsNewfoundland
America/TijuanaTijuana
Asia/AlmatyAlmaty
Asia/BaghdadBaghdad
Asia/BakuBaku
Asia/BangkokBangkok
Asia/BangkokHanoi
Asia/ChongqingChongqing
Asia/ColomboSri Jayawardenepura
Asia/DhakaAstana
Asia/DhakaDhaka
Asia/Hong_KongHong Kong
Asia/IrkutskIrkutsk
Asia/JakartaJakarta
Asia/JerusalemJerusalem
Asia/KabulKabul
Asia/KamchatkaKamchatka
Asia/KarachiIslamabad
Asia/KarachiKarachi
Asia/KathmanduKathmandu
Asia/KolkataChennai
Asia/KolkataKolkata
Asia/KolkataMumbai
Asia/KolkataNew Delhi
Asia/KrasnoyarskKrasnoyarsk
Asia/Kuala_LumpurKuala Lumpur
Asia/KuwaitKuwait
Asia/MagadanMagadan
Asia/MuscatAbu Dhabi
Asia/MuscatMuscat
Asia/NovosibirskNovosibirsk
Asia/RangoonRangoon
Asia/RiyadhRiyadh
Asia/SeoulSeoul
Asia/ShanghaiBeijing
Asia/SingaporeSingapore
Asia/SrednekolymskSrednekolymsk
Asia/TaipeiTaipei
Asia/TashkentTashkent
Asia/TbilisiTbilisi
Asia/TehranTehran
Asia/TokyoOsaka
Asia/TokyoSapporo
Asia/TokyoTokyo
Asia/UlaanbaatarUlaanbaatar
Asia/UrumqiUrumqi
Asia/VladivostokVladivostok
Asia/YakutskYakutsk
Asia/YekaterinburgEkaterinburg
Asia/YerevanYerevan
Atlantic/AzoresAzores
Atlantic/Cape_VerdeCape Verde Is.
Atlantic/South_GeorgiaMid-Atlantic
Australia/AdelaideAdelaide
Australia/BrisbaneBrisbane
Australia/DarwinDarwin
Australia/HobartHobart
Australia/MelbourneCanberra
Australia/MelbourneMelbourne
Australia/PerthPerth
Australia/SydneySydney
Etc/GMT+12International Date Line West
Etc/UTCUTC
Europe/AmsterdamAmsterdam
Europe/AthensAthens
Europe/BelgradeBelgrade
Europe/BerlinBerlin
Europe/BratislavaBratislava
Europe/BrusselsBrussels
Europe/BucharestBucharest
Europe/BudapestBudapest
Europe/CopenhagenCopenhagen
Europe/DublinDublin
Europe/HelsinkiHelsinki
Europe/IstanbulIstanbul
Europe/KaliningradKaliningrad
Europe/KievKyiv
Europe/LisbonLisbon
Europe/LjubljanaLjubljana
Europe/LondonEdinburgh
Europe/LondonLondon
Europe/MadridMadrid
Europe/MinskMinsk
Europe/MoscowMoscow
Europe/MoscowSt. Petersburg
Europe/ParisParis
Europe/PraguePrague
Europe/RigaRiga
Europe/RomeRome
Europe/SamaraSamara
Europe/SarajevoSarajevo
Europe/SkopjeSkopje
Europe/SofiaSofia
Europe/StockholmStockholm
Europe/TallinnTallinn
Europe/ViennaVienna
Europe/VilniusVilnius
Europe/VolgogradVolgograd
Europe/WarsawWarsaw
Europe/ZagrebZagreb
Europe/ZurichBern
Europe/ZurichZurich
Pacific/ApiaSamoa
Pacific/AucklandAuckland
Pacific/AucklandWellington
Pacific/ChathamChatham Is.
Pacific/FakaofoTokelau Is.
Pacific/FijiFiji
Pacific/GuadalcanalSolomon Is.
Pacific/GuamGuam
Pacific/HonoluluHawaii
Pacific/MajuroMarshall Is.
Pacific/MidwayMidway Island
Pacific/NoumeaNew Caledonia
Pacific/Pago_PagoAmerican Samoa
Pacific/Port_MoresbyPort Moresby
Pacific/TongatapuNuku'alofa

URL

A URL is a string that conforms to the RFC 3986 syntax. URLs are fully-qualified URIs that provide a means of locating the resource, and will never have only a subset of the URL, such as just a hostname or path.

A number of URL validation libraries are available; any that conform to the spec should be able to correctly validate a URL field.