|
| 1 | +get: |
| 2 | + tags: |
| 3 | + - segments |
| 4 | + operationId: fetchSegment |
| 5 | + description: Get the segment configuration. |
| 6 | + summary: Get the segment configuration. |
| 7 | + parameters: |
| 8 | + - $ref: '../../common/parameters.yml#/segmentID' |
| 9 | + responses: |
| 10 | + '200': |
| 11 | + description: OK |
| 12 | + content: |
| 13 | + application/json: |
| 14 | + schema: |
| 15 | + title: fetchSegmentResponse |
| 16 | + $ref: '../../responses/Segment.yml#/segment' |
| 17 | + '404': |
| 18 | + $ref: '../../../common/responses/IndexNotFound.yml' |
| 19 | + '422': |
| 20 | + $ref: '../../../common/responses/StatusUnprocessableEntity.yml' |
| 21 | + '500': |
| 22 | + $ref: '../../../common/responses/InternalError.yml' |
| 23 | + |
| 24 | +post: |
| 25 | + tags: |
| 26 | + - segments |
| 27 | + operationId: updateSegment |
| 28 | + description: Update a segment’s configuration. |
| 29 | + summary: Update segment. |
| 30 | + parameters: |
| 31 | + - $ref: '../../common/parameters.yml#/segmentID' |
| 32 | + requestBody: |
| 33 | + required: true |
| 34 | + content: |
| 35 | + application/json: |
| 36 | + schema: |
| 37 | + $ref: '../../common/schemas/SegmentsParams.yml#/updateSegmentParams' |
| 38 | + responses: |
| 39 | + '200': |
| 40 | + description: OK |
| 41 | + content: |
| 42 | + application/json: |
| 43 | + schema: |
| 44 | + $ref: '../../responses/Segment.yml#/updateSegmentResponse' |
| 45 | + '400': |
| 46 | + $ref: '../../../common/responses/IndexNotFound.yml' |
| 47 | + '401': |
| 48 | + $ref: '../../../common/responses/Unauthorized.yml' |
| 49 | + '404': |
| 50 | + $ref: '../../../common/responses/IndexNotFound.yml' |
| 51 | + '422': |
| 52 | + $ref: '../../../common/responses/StatusUnprocessableEntity.yml' |
| 53 | + '500': |
| 54 | + $ref: '../../../common/responses/InternalError.yml' |
| 55 | + |
| 56 | +delete: |
| 57 | + tags: |
| 58 | + - segments |
| 59 | + operationId: deleteSegment |
| 60 | + summary: Delete a segment's configuration. |
| 61 | + description: | |
| 62 | + Delete the segment’s configuration. User intents (predictions) from the segment are not deleted. All segment types (computed or custom) can be deleted. |
| 63 | + |
| 64 | + When the query is successful, the HTTP response is 200 OK and returns the date until which you can safely consider the data as being deleted. |
| 65 | + parameters: |
| 66 | + - $ref: '../../common/parameters.yml#/segmentID' |
| 67 | + responses: |
| 68 | + '200': |
| 69 | + description: OK |
| 70 | + content: |
| 71 | + application/json: |
| 72 | + schema: |
| 73 | + $ref: '../../responses/Segment.yml#/deleteSegmentResponse' |
| 74 | + '401': |
| 75 | + $ref: '../../../common/responses/Unauthorized.yml' |
| 76 | + '404': |
| 77 | + $ref: '../../../common/responses/IndexNotFound.yml' |
| 78 | + '422': |
| 79 | + $ref: '../../../common/responses/StatusUnprocessableEntity.yml' |
| 80 | + '500': |
| 81 | + $ref: '../../../common/responses/InternalError.yml' |
0 commit comments