mirror of
https://github.com/LukeHagar/api-specs.git
synced 2025-12-08 20:37:48 +00:00
35 lines
1.0 KiB
YAML
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'
|