Files
api-specs/idn/beta/paths/segments.yaml
GitHub Action Bot 76979c5c5e Automated commit 'Merge pull request #1390 from sailpoint/devrel-725
devrel-725' by github action: 5976912355
2023-08-25 14:11:49 +00:00

67 lines
1.7 KiB
YAML

post:
operationId: createSegment
tags:
- Segments
summary: Create Segment
description: >-
This API creates a segment.
>**Note:** Segment definitions may take time to propagate to all identities.
A token with ORG_ADMIN or API authority is required to call this API.
requestBody:
required: true
content:
application/json:
schema:
$ref: '../schemas/Segment.yaml'
responses:
'201':
description: Segment created
content:
application/json:
schema:
$ref: '../schemas/Segment.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'
get:
operationId: listSegments
tags:
- Segments
summary: List Segments
description: >-
This API returns a list of all segments.
A token with ORG_ADMIN or API authority is required to call this API.
parameters:
- $ref: '../../v3/parameters/limit.yaml'
- $ref: '../../v3/parameters/offset.yaml'
- $ref: '../../v3/parameters/count.yaml'
responses:
'200':
description: List of all segments
content:
application/json:
schema:
type: array
items:
$ref: '../schemas/Segment.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
$ref: '../../v3/responses/401.yaml'
'403':
$ref: '../../v3/responses/403.yaml'
'429':
$ref: '../../v3/responses/429.yaml'
'500':
$ref: '../../v3/responses/500.yaml'