@@ -35847,6 +35847,114 @@ components:
3584735847 description: Link to the Incident created on ServiceNow
3584835848 type: string
3584935849 type: object
35850+ Shift:
35851+ description: The definition of `Shift` object.
35852+ example:
35853+ data:
35854+ attributes:
35855+ end: '2025-05-07T03:53:01.206662873Z'
35856+ start: '2025-05-07T02:53:01.206662814Z'
35857+ id: 00000000-0000-0000-0000-000000000000
35858+ relationships:
35859+ user:
35860+ data:
35861+ id: 00000000-aba1-0000-0000-000000000000
35862+ type: users
35863+ type: shifts
35864+ included:
35865+ - attributes:
35866+ 35867+ name: User 1
35868+ status: ''
35869+ id: 00000000-aba1-0000-0000-000000000000
35870+ type: users
35871+ properties:
35872+ data:
35873+ $ref: '#/components/schemas/ShiftData'
35874+ included:
35875+ description: The `Shift` `included`.
35876+ items:
35877+ $ref: '#/components/schemas/ShiftIncluded'
35878+ type: array
35879+ type: object
35880+ ShiftData:
35881+ description: The definition of `ShiftData` object.
35882+ properties:
35883+ attributes:
35884+ $ref: '#/components/schemas/ShiftDataAttributes'
35885+ id:
35886+ description: The `ShiftData` `id`.
35887+ type: string
35888+ relationships:
35889+ $ref: '#/components/schemas/ShiftDataRelationships'
35890+ type:
35891+ $ref: '#/components/schemas/ShiftDataType'
35892+ required:
35893+ - type
35894+ type: object
35895+ ShiftDataAttributes:
35896+ description: The definition of `ShiftDataAttributes` object.
35897+ properties:
35898+ end:
35899+ description: The end time of the shift.
35900+ format: date-time
35901+ type: string
35902+ start:
35903+ description: The start time of the shift.
35904+ format: date-time
35905+ type: string
35906+ type: object
35907+ ShiftDataRelationships:
35908+ description: The definition of `ShiftDataRelationships` object.
35909+ properties:
35910+ user:
35911+ $ref: '#/components/schemas/ShiftDataRelationshipsUser'
35912+ type: object
35913+ ShiftDataRelationshipsUser:
35914+ description: Defines the relationship between a shift and the user who is working
35915+ that shift.
35916+ properties:
35917+ data:
35918+ $ref: '#/components/schemas/ShiftDataRelationshipsUserData'
35919+ required:
35920+ - data
35921+ type: object
35922+ ShiftDataRelationshipsUserData:
35923+ description: Represents a reference to the user assigned to this shift, containing
35924+ the user's ID and resource type.
35925+ properties:
35926+ id:
35927+ description: Specifies the unique identifier of the user.
35928+ example: 00000000-0000-0000-0000-000000000000
35929+ type: string
35930+ type:
35931+ $ref: '#/components/schemas/ShiftDataRelationshipsUserDataType'
35932+ required:
35933+ - type
35934+ - id
35935+ type: object
35936+ ShiftDataRelationshipsUserDataType:
35937+ default: users
35938+ description: Indicates that the related resource is of type 'users'.
35939+ enum:
35940+ - users
35941+ example: users
35942+ type: string
35943+ x-enum-varnames:
35944+ - USERS
35945+ ShiftDataType:
35946+ default: shifts
35947+ description: Indicates that the resource is of type 'shifts'.
35948+ enum:
35949+ - shifts
35950+ example: shifts
35951+ type: string
35952+ x-enum-varnames:
35953+ - SHIFTS
35954+ ShiftIncluded:
35955+ description: The definition of `ShiftIncluded` object.
35956+ oneOf:
35957+ - $ref: '#/components/schemas/ScheduleUser'
3585035958 SingleAggregatedConnectionResponseArray:
3585135959 description: List of aggregated connections.
3585235960 example:
@@ -51455,6 +51563,50 @@ paths:
5145551563 summary: Update on-call schedule
5145651564 tags:
5145751565 - On-Call
51566+ /api/v2/on-call/schedules/{schedule_id}/on-call:
51567+ get:
51568+ description: Retrieves the user who is on-call for the specified schedule at
51569+ a given time.
51570+ operationId: GetScheduleOnCallUser
51571+ parameters:
51572+ - description: 'Specifies related resources to include in the response as a
51573+ comma-separated list. Allowed value: `user`.'
51574+ in: query
51575+ name: include
51576+ schema:
51577+ type: string
51578+ - description: The UUID of the schedule.
51579+ in: path
51580+ name: schedule_id
51581+ required: true
51582+ schema:
51583+ example: 3653d3c6-0c75-11ea-ad28-fb5701eabc7d
51584+ type: string
51585+ - description: Retrieves the on-call user at the given timestamp (ISO-8601).
51586+ Defaults to the current time if omitted."
51587+ in: query
51588+ name: filter[at_ts]
51589+ schema:
51590+ example: '2025-05-07T02:53:01Z'
51591+ type: string
51592+ responses:
51593+ '200':
51594+ content:
51595+ application/json:
51596+ schema:
51597+ $ref: '#/components/schemas/Shift'
51598+ description: OK
51599+ '204':
51600+ description: No Content
51601+ '429':
51602+ $ref: '#/components/responses/TooManyRequestsResponse'
51603+ security:
51604+ - apiKeyAuth: []
51605+ appKeyAuth: []
51606+ - AuthZ: []
51607+ summary: Get the schedule of an On-Call user
51608+ tags:
51609+ - On-Call
5145851610 /api/v2/on-call/teams/{team_id}/routing-rules:
5145951611 get:
5146051612 description: Get a team's on-call routing rules
0 commit comments