@@ -36060,6 +36060,115 @@ components:
36060
36060
description: Link to the Incident created on ServiceNow
36061
36061
type: string
36062
36062
type: object
36063
+ Shift:
36064
+ description: The definition of `Shift` object.
36065
+ example:
36066
+ data:
36067
+ attributes:
36068
+ end: '2025-05-07T03:53:01.206662873Z'
36069
+ start: '2025-05-07T02:53:01.206662814Z'
36070
+ id: 00000000-0000-0000-0000-000000000000
36071
+ relationships:
36072
+ user:
36073
+ data:
36074
+ id: 00000000-aba1-0000-0000-000000000000
36075
+ type: users
36076
+ type: shifts
36077
+ included:
36078
+ - attributes:
36079
+
36080
+ name: User 1
36081
+ status: ''
36082
+ id: 00000000-aba1-0000-0000-000000000000
36083
+ type: users
36084
+ properties:
36085
+ data:
36086
+ $ref: '#/components/schemas/ShiftData'
36087
+ nullable: true
36088
+ included:
36089
+ description: The `Shift` `included`.
36090
+ items:
36091
+ $ref: '#/components/schemas/ShiftIncluded'
36092
+ type: array
36093
+ type: object
36094
+ ShiftData:
36095
+ description: The definition of `ShiftData` object.
36096
+ properties:
36097
+ attributes:
36098
+ $ref: '#/components/schemas/ShiftDataAttributes'
36099
+ id:
36100
+ description: The `ShiftData` `id`.
36101
+ type: string
36102
+ relationships:
36103
+ $ref: '#/components/schemas/ShiftDataRelationships'
36104
+ type:
36105
+ $ref: '#/components/schemas/ShiftDataType'
36106
+ required:
36107
+ - type
36108
+ type: object
36109
+ ShiftDataAttributes:
36110
+ description: The definition of `ShiftDataAttributes` object.
36111
+ properties:
36112
+ end:
36113
+ description: The end time of the shift.
36114
+ format: date-time
36115
+ type: string
36116
+ start:
36117
+ description: The start time of the shift.
36118
+ format: date-time
36119
+ type: string
36120
+ type: object
36121
+ ShiftDataRelationships:
36122
+ description: The definition of `ShiftDataRelationships` object.
36123
+ properties:
36124
+ user:
36125
+ $ref: '#/components/schemas/ShiftDataRelationshipsUser'
36126
+ type: object
36127
+ ShiftDataRelationshipsUser:
36128
+ description: Defines the relationship between a shift and the user who is working
36129
+ that shift.
36130
+ properties:
36131
+ data:
36132
+ $ref: '#/components/schemas/ShiftDataRelationshipsUserData'
36133
+ required:
36134
+ - data
36135
+ type: object
36136
+ ShiftDataRelationshipsUserData:
36137
+ description: Represents a reference to the user assigned to this shift, containing
36138
+ the user's ID and resource type.
36139
+ properties:
36140
+ id:
36141
+ description: Specifies the unique identifier of the user.
36142
+ example: 00000000-0000-0000-0000-000000000000
36143
+ type: string
36144
+ type:
36145
+ $ref: '#/components/schemas/ShiftDataRelationshipsUserDataType'
36146
+ required:
36147
+ - type
36148
+ - id
36149
+ type: object
36150
+ ShiftDataRelationshipsUserDataType:
36151
+ default: users
36152
+ description: Indicates that the related resource is of type 'users'.
36153
+ enum:
36154
+ - users
36155
+ example: users
36156
+ type: string
36157
+ x-enum-varnames:
36158
+ - USERS
36159
+ ShiftDataType:
36160
+ default: shifts
36161
+ description: Indicates that the resource is of type 'shifts'.
36162
+ enum:
36163
+ - shifts
36164
+ example: shifts
36165
+ type: string
36166
+ x-enum-varnames:
36167
+ - SHIFTS
36168
+ ShiftIncluded:
36169
+ description: The definition of `ShiftIncluded` object.
36170
+ oneOf:
36171
+ - $ref: '#/components/schemas/ScheduleUser'
36063
36172
SingleAggregatedConnectionResponseArray:
36064
36173
description: List of aggregated connections.
36065
36174
example:
@@ -51922,6 +52031,56 @@ paths:
51922
52031
operator: AND
51923
52032
permissions:
51924
52033
- on_call_write
52034
+ /api/v2/on-call/schedules/{schedule_id}/on-call:
52035
+ get:
52036
+ description: Retrieves the user who is on-call for the specified schedule at
52037
+ a given time.
52038
+ operationId: GetScheduleOnCallUser
52039
+ parameters:
52040
+ - description: 'Specifies related resources to include in the response as a
52041
+ comma-separated list. Allowed value: `user`.'
52042
+ in: query
52043
+ name: include
52044
+ schema:
52045
+ type: string
52046
+ - description: The ID of the schedule.
52047
+ in: path
52048
+ name: schedule_id
52049
+ required: true
52050
+ schema:
52051
+ example: 3653d3c6-0c75-11ea-ad28-fb5701eabc7d
52052
+ type: string
52053
+ - description: Retrieves the on-call user at the given timestamp (ISO-8601).
52054
+ Defaults to the current time if omitted."
52055
+ in: query
52056
+ name: filter[at_ts]
52057
+ schema:
52058
+ example: '2025-05-07T02:53:01Z'
52059
+ type: string
52060
+ responses:
52061
+ '200':
52062
+ content:
52063
+ application/json:
52064
+ schema:
52065
+ $ref: '#/components/schemas/Shift'
52066
+ description: OK
52067
+ '400':
52068
+ $ref: '#/components/responses/BadRequestResponse'
52069
+ '401':
52070
+ $ref: '#/components/responses/UnauthorizedResponse'
52071
+ '403':
52072
+ $ref: '#/components/responses/ForbiddenResponse'
52073
+ '404':
52074
+ $ref: '#/components/responses/NotFoundResponse'
52075
+ '429':
52076
+ $ref: '#/components/responses/TooManyRequestsResponse'
52077
+ security:
52078
+ - apiKeyAuth: []
52079
+ appKeyAuth: []
52080
+ - AuthZ: []
52081
+ summary: Get the schedule of an on-call user
52082
+ tags:
52083
+ - On-Call
51925
52084
/api/v2/on-call/teams/{team_id}/routing-rules:
51926
52085
get:
51927
52086
description: Get a team's on-call routing rules
0 commit comments