Files
api-specs/idn/beta/paths/entitlements-update-segment-assignments.yaml
2022-10-10 20:04:01 +00:00

35 lines
1.0 KiB
YAML

post:
operationId: updateEntitlementSegmentAssignments
tags:
- Entitlements
summary: update entitlements of a segment
description: >-
This internal endpoint assigns or removes entitlements to a segment
requestBody:
required: true
content:
application/json:
schema:
$ref: '../schemas/UpdateSegmentEntitlementAssignmentInput.yaml'
responses:
'200':
description: Successfully updated.
'400':
description: |
* Assignments or removals are missing
* An entitlement id is found both in assignments and removals
* Assignments and removals are not of the Entitlement type
* Assignments + removals total number > 50 or equal to 0
content:
application/json:
schema:
$ref: '../../v3/schemas/ErrorResponseDto.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'