@@ -35847,6 +35847,112 @@ components:
35847
35847
description: Link to the Incident created on ServiceNow
35848
35848
type: string
35849
35849
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
+ email: foo@bar.com
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: The definition of `ShiftDataRelationshipsUser` object.
35915
+ properties:
35916
+ data:
35917
+ $ref: '#/components/schemas/ShiftDataRelationshipsUserData'
35918
+ required:
35919
+ - data
35920
+ type: object
35921
+ ShiftDataRelationshipsUserData:
35922
+ description: The definition of `ShiftDataRelationshipsUserData` object.
35923
+ properties:
35924
+ id:
35925
+ description: The user's ID.
35926
+ example: 00000000-0000-0000-0000-000000000000
35927
+ type: string
35928
+ type:
35929
+ $ref: '#/components/schemas/ShiftDataRelationshipsUserDataType'
35930
+ required:
35931
+ - type
35932
+ - id
35933
+ type: object
35934
+ ShiftDataRelationshipsUserDataType:
35935
+ default: users
35936
+ description: Users resource type.
35937
+ enum:
35938
+ - users
35939
+ example: users
35940
+ type: string
35941
+ x-enum-varnames:
35942
+ - USERS
35943
+ ShiftDataType:
35944
+ default: shifts
35945
+ description: Shifts resource type.
35946
+ enum:
35947
+ - shifts
35948
+ example: shifts
35949
+ type: string
35950
+ x-enum-varnames:
35951
+ - SHIFTS
35952
+ ShiftIncluded:
35953
+ description: The definition of `ShiftIncluded` object.
35954
+ oneOf:
35955
+ - $ref: '#/components/schemas/ScheduleUser'
35850
35956
SingleAggregatedConnectionResponseArray:
35851
35957
description: List of aggregated connections.
35852
35958
example:
@@ -51464,6 +51570,48 @@ paths:
51464
51570
summary: Update on-call schedule
51465
51571
tags:
51466
51572
- On-Call
51573
+ /api/v2/on-call/schedules/{schedule_id}/on-call:
51574
+ get:
51575
+ description: Get an on-call user for a schedule
51576
+ operationId: GetScheduleOnCallUser
51577
+ parameters:
51578
+ - description: 'Comma-separated list of included relationships to be returned.
51579
+ Allowed values: `user`.'
51580
+ in: query
51581
+ name: include
51582
+ schema:
51583
+ type: string
51584
+ - description: The UUID of the schedule
51585
+ in: path
51586
+ name: schedule_id
51587
+ required: true
51588
+ schema:
51589
+ example: 3653d3c6-0c75-11ea-ad28-fb5701eabc7d
51590
+ type: string
51591
+ - description: The timestamp to get the on-call user for
51592
+ in: query
51593
+ name: filter[at_ts]
51594
+ schema:
51595
+ example: '2025-05-07T02:53:01Z'
51596
+ type: string
51597
+ responses:
51598
+ '200':
51599
+ content:
51600
+ application/json:
51601
+ schema:
51602
+ $ref: '#/components/schemas/Shift'
51603
+ description: OK
51604
+ '204':
51605
+ description: No Content
51606
+ '429':
51607
+ $ref: '#/components/responses/TooManyRequestsResponse'
51608
+ security:
51609
+ - apiKeyAuth: []
51610
+ appKeyAuth: []
51611
+ - AuthZ: []
51612
+ summary: Get schedule on call user
51613
+ tags:
51614
+ - On-Call
51467
51615
/api/v2/on-call/teams/{team_id}/routing-rules:
51468
51616
get:
51469
51617
description: Get a team's on-call routing rules
0 commit comments