openapi: 3.0.3
info:
  title: Sites API
  version: '2026.10'
servers:
  - url: https://{bucket}.adobeaemcloud.com/adobe/sites
    variables:
      bucket:
        default: ''
        description: The bucket to use for this request, e.g. author-p12345-e123456
security:
  - bearerAuth: []
tags:
  - name: Fragment Management
  - name: Fragment Variations
  - name: Fragment Versioning
  - name: Model Management
  - name: Search
  - name: Tagging
  - name: References
  - name: Translations
  - name: Permissions
  - name: Workflows
  - name: Batching
    description: |
      These endpoints allow you to submit multiple requests in a single call, improving efficiency for various operations. 
      A batch of individual requests sent in the request body will be processed asynchronously in the background.
      You can then poll the status of the batch request to check if it has been completed and receive a consolidated response for all operations.
  - name: GraphQL
    description: GraphQL default endpoints
  - name: Metadata
    description: Operations for managing Content Fragment metadata according to linked metadata schemas.
  - name: Fragment Events
    description: |
      A number of events are emitted for content state updates and content changes for Content Fragments.
      For more details about how these events can be handled, please head over to the Adobe I/O Events
      Documentation linked below.
    externalDocs:
      url: https://developer.adobe.com/events/docs/guides/
  - name: Model Events
    description: |
      A number of events are emitted for content state updates and content changes for Content Fragments Models.
      For more details about how these events can be handled, please head over to the Adobe I/O Events
      Documentation linked below.
    externalDocs:
      url: https://developer.adobe.com/events/docs/guides/
  - name: Page Events
    description: |
      A number of events are emitted for content state updates and content changes for Pages.
      For more details about how these events can be handled, please head over to the Adobe I/O Events
      Documentation linked below.
    externalDocs:
      url: https://developer.adobe.com/events/docs/guides/
paths:
  /cf/models:
    get:
      operationId: models/getModels
      tags:
        - Model Management
      summary: |
        List all Content Fragment Models
      description: |
        This operation provides support for retrieving all the Content Fragment Models
        accessible to the current user, determined via the applied request authorization.
        By default this call will return a maximum of 50 items.

        The caller can define other limits suited to their application (see the `limit` query
        parameter), but the limit cannot be higher than 50. To ask for the next set of items
        pass the value of the `cursor` provided in the response to the `cursor` query parameter.
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
        - in: query
          name: projection
          description: |
            This parameter is optional. If set to 'minimal', the response will include include only the resource identifiers
            of the Content Fragment Model: id, path, and name.
            If set to 'summary', the Content Fragment Model's fields will not be populated in the response. 
            If set to 'full', the response will include all properties.
            By default, the value of this query parameter is 'full'.
          schema:
            $ref: '#/components/schemas/Projection'
          required: false
      responses:
        '200':
          description: A list of Content Fragment Models was successfully returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentModelListResult'
              examples:
                minimal:
                  $ref: '#/components/examples/ContentFragmentModelMinimal'
                summary:
                  $ref: '#/components/examples/ContentFragmentModelSummary'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    post:
      operationId: models/createModel
      tags:
        - Model Management
      summary: Create a Content Fragment Model
      description: |
        This operation allows creating one or more Content Fragment Models. The server will check
        the `content-fragment` field types and validate if the passed models are present in the
        request's payload or already available on the server.
        A `content-fragment` field can also reference the model it belongs to
        by listing that model's short path (`/conf/<configurationFolder>/<name>`) in the field's `items`.
      parameters:
        - in: query
          name: dryRun
          description: |
            If set to true, this operation allows validating the payload for creating one or more Content Fragment Models 
            before performing the actual creation request.
            It performs the same validations as the creation process but does not create the models.
          schema:
            type: boolean
            default: false
          required: false
      requestBody:
        description: The request payload to create one or more Content Fragment Models.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContentFragmentModels'
            examples:
              self-referencing-model:
                $ref: '#/components/examples/CreateSelfReferencingModel'
      responses:
        '201':
          description: The Content Fragment Models were successfully created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/ContentFragmentModelIdentifier'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/models/{id}:
    parameters:
      - $ref: '#/components/parameters/If-None-Match'
      - in: path
        name: id
        required: true
        description: The ID of the Content Fragment Model to retrieve.
        schema:
          $ref: '#/components/schemas/Base64URLId'
    get:
      operationId: models/getModel
      tags:
        - Model Management
      summary: Get a Content Fragment Model
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
            Last-Modified:
              $ref: '#/components/headers/Last-Modified'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentModel'
        '304':
          $ref: '#/components/responses/304_NotModified'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    head:
      operationId: models/getModelHeaders
      tags:
        - Model Management
      summary: Get the details for a Content Fragment Model
      description: |
        This operation allows retrieving the headers for a Content Fragment Model, when a client needs to execute subsequent operations that
        need to be consistent (e.g. check an `ETag` value, check if the model still exists, etc.).
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
            Last-Modified:
              $ref: '#/components/headers/Last-Modified'
        '304':
          $ref: '#/components/responses/304_NotModified'
        '400':
          description: Bad Request
        '403':
          description: Forbidden
        '404':
          description: Not Found
        '500':
          description: Internal Server Error
    patch:
      operationId: models/updateModel
      summary: Edit a Content Fragment Model
      description: |
        This operation allows editing a Content Fragment Model. The changes are passed as [JSON Patch documents](https://www.rfc-editor.org/rfc/rfc6902).

        Save conflicts are detected by leveraging [conditional](https://www.rfc-editor.org/rfc/rfc9110.html#conditional.requests) HTTP
        requests. When a conflict occurs, the server will reply with a `412` response. It becomes the caller's
        responsibility to resolve the conflict, either by accepting the values from the server, or by overwriting them.
      tags:
        - Model Management
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/JSONPatch'
            examples:
              add-string-value:
                $ref: '#/components/examples/AddStringPatch'
              add-number-value:
                $ref: '#/components/examples/AddNumberPatch'
              add-array-value:
                $ref: '#/components/examples/AddArrayPatch'
              add-object-value:
                $ref: '#/components/examples/AddObjectPatch'
              copy:
                $ref: '#/components/examples/CopyPatch'
              move:
                $ref: '#/components/examples/MovePatch'
              remove:
                $ref: '#/components/examples/RemovePatch'
              replace-string-value:
                $ref: '#/components/examples/ReplaceStringPatch'
              replace-number-value:
                $ref: '#/components/examples/ReplaceNumberPatch'
              replace-array-value:
                $ref: '#/components/examples/ReplaceArrayPatch'
              replace-object-value:
                $ref: '#/components/examples/ReplaceObjectPatch'
              multiple-operations:
                $ref: '#/components/examples/MultipleOperationsPatch'
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentModel'
              examples:
                changed-name:
                  $ref: '#/components/examples/PatchContentFragmentModel'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    delete:
      operationId: models/deleteModel
      summary: Delete a Content Fragment Model
      tags:
        - Model Management
      parameters:
        - $ref: '#/components/parameters/If-Match'
      responses:
        '204':
          description: The delete operation completed successfully. The response body doesn't provide any content.
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/models/publish:
    post:
      operationId: models/publish
      summary: Publish Content Fragment Models
      description: |
        This operation starts an AEM workflow for publishing Content Fragment Models.
      tags:
        - Model Management
      requestBody:
        description: Request parameters to publish content fragment models.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentFragmentModelPublishRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublishResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/models/scheduledPublicationStatus:
    post:
      operationId: models/scheduledPublicationStatusMultipleModels
      summary: Get the scheduled publication status for a list of Content Fragment Models
      tags:
        - Model Management
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduledPublicationStatusModelsRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledPublicationStatusModelsListResult'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/models/{id}/tags:
    parameters:
      - in: path
        name: id
        required: true
        description: The ID of the Content Fragment Model.
        schema:
          $ref: '#/components/schemas/Base64URLId'
    get:
      operationId: models/getTagsFromContentFragmentModel
      tags:
        - Tagging
      summary: Get the Tags applied to a Content Fragment Model
      responses:
        '200':
          $ref: '#/components/responses/TagsListResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    post:
      operationId: models/addTagsToContentFragmentModel
      tags:
        - Tagging
      summary: Add Tags to a Content Fragment Model
      description: |
        This operation adds new tags to an existing Content Fragment Model.
        The tags must be already available in the system when this request is made.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagsRequest'
      responses:
        '200':
          $ref: '#/components/responses/TagsListResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    put:
      operationId: models/replaceTagsFromContentFragmentModel
      tags:
        - Tagging
      summary: Replace the Tags applied to a Content Fragment Model
      description: |
        This operation updates all tags of an existing Content Fragment Model by replacing the existing tags
        with tags based on the details from the payload.
        The tags must be already available in the system when this request is made.
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagsRequest'
      responses:
        '200':
          $ref: '#/components/responses/TagsListResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    delete:
      operationId: models/deleteTagsFromContentFragmentModel
      tags:
        - Tagging
      summary: Delete the Tags applied to a Content Fragment Model
      parameters:
        - $ref: '#/components/parameters/If-Match'
      responses:
        '204':
          $ref: '#/components/responses/204_NoContent'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/models/{id}/uiSchema:
    parameters:
      - $ref: '#/components/parameters/X-Adobe-Accept-Unsupported-API'
      - in: path
        name: id
        required: true
        description: The ID of the Content Fragment Model.
        schema:
          $ref: '#/components/schemas/Base64URLId'
    get:
      operationId: models/retrieveUISchema
      tags:
        - Model Management
      summary: Get the UI schema associated with the Content Fragment Model
      responses:
        '200':
          description: A response containing a UI schema
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UISchema'
              examples:
                ui-schema-response:
                  $ref: '#/components/examples/UISchemaResponseBody'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    put:
      operationId: models/createOrUpdateUISchema
      tags:
        - Model Management
      summary: Update the existing UI schema associated with a Content Fragment Model
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UISchemaPayload'
            examples:
              tab-structure:
                $ref: '#/components/examples/Tabs'
              category-headlines:
                $ref: '#/components/examples/CategoryHeadlines'
              collapsible-fields:
                $ref: '#/components/examples/CollapsibleFields'
              conditional-fields:
                $ref: '#/components/examples/ConditionalFields'
              conditional-required:
                $ref: '#/components/examples/ConditionalRequiredFields'
      responses:
        '204':
          description: The UI schema was successfully updated.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/models/{id}/copy:
    post:
      operationId: models/copy
      summary: Copy a Content Fragment Model
      description: |
        This operation copies the Content Fragment Model from one location to another.
      tags:
        - Model Management
      parameters:
        - in: path
          name: id
          description: The unique identifier of the Content Fragment Model to be copied.
          required: true
          schema:
            $ref: '#/components/schemas/Base64URLId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CopyContentFragmentModel'
      responses:
        '201':
          description: The Content Fragment Model was successfully copied.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentModel'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments:
    get:
      operationId: fragments/getFragments
      tags:
        - Fragment Management
      summary: List all Content Fragments
      description: |
        This operation provides support for retrieving all the Content Fragments
        accessible to the current user, determined via the applied request authorization.
        By default this call will return a maximum of 50 items.

        The caller can define other limits suited to their application (see the `limit` query
        parameter), but the limit cannot be higher than 50. To ask for the next set of items
        pass the value of the `cursor` provided in the response to the `cursor` query parameter.
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/includeMetadata'
        - in: query
          name: path
          description: Optional UTF-8 encoded parameter to specify a path where to start looking for content fragments.
          schema:
            type: string
          examples:
            one-fragment:
              value: /content/dam/adaptto/presentations/aem-cloud-service-from-a-developer-perspective
              description: Get exactly one '/aem-cloud-service-from-a-developer-perspective' content fragment.
            multiple-fragments:
              value: /content/dam/adaptto/presentations
              description: Get all child content fragments under '/presentations' folder.
          required: false
        - in: query
          name: references
          description: |
            When the `path` query parameter identifies a Content Fragment, this parameter allows controlling the
            way the references are retrieved for that fragment. When this parameter is missing, the references
            will not be populated.

            The following options are available:
              * `direct` - only direct references will be collected; they will not be hydrated;
              * `direct-hydrated` - only direct references will be collected; they will be fully hydrated;
              * `all` - all references up to the maximum allowed depth will be collected; they will not be hydrated;
              * `all-hydrated` - all references up to the maximum allowed depth will be collected; they will be fully hydrated
              * `none` - no references will be collected

            Non-hydrated responses will only include the properties defined by the `BaseReference` type when embedding references. 
            Hydrated responses are defined by each implementation of the `BaseReference` type. In particular, for Content Fragment
            references the response will include the fragment's fields, variations, tags.
          schema:
            $ref: '#/components/schemas/References'
          required: false
        - in: query
          name: projection
          description: |
            If this optional parameter is provided and its value is 'summary', the fragments in the response will contain
            only the required properties.
          schema:
            $ref: '#/components/schemas/Projection'
          required: false
      responses:
        '200':
          description: A response containing a potentially paginated list of content fragments.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentListResult'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    post:
      operationId: fragments/createFragment
      tags:
        - Fragment Management
      summary: Create a Content Fragment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContentFragment'
      responses:
        '201':
          description: The Content Fragment was successfully created.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
            Location:
              schema:
                type: string
                format: uri
              description: The URI at which the created content fragment can be accessed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragment'
              example:
                path: /content/dam/wknd-shared/en/adventures/snowboarding-cf
                title: Snowboarding
                description: This new CF is created with the new POST endpoint
                id: 04dbb683-a63c-4144-9a27-7d019bd3e50e
                created:
                  at: '2023-08-04T11:31:57.229+03:00'
                  by: admin
                modified: {}
                status: NEW
                fields:
                  - type: text
                    name: location
                    multiple: false
                    values: []
                variations: []
                tags: []
                references: []
                model:
                  id: L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL3NpbXBsZS1jZg
                  path: /conf/global/settings/dam/cfm/models/simple-cf
                  name: simple cf
                  title: simple cf
                validationStatus: []
                fieldTags: []
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      operationId: fragments/getFragment
      tags:
        - Fragment Management
      summary: Get a Content Fragment
      parameters:
        - $ref: '#/components/parameters/If-None-Match'
        - in: query
          name: references
          schema:
            $ref: '#/components/schemas/References'
          required: false
        - in: query
          name: locale
          description: |
            An optional parameter that specifies the locale of the Content Fragment, using a language and country code (e.g. en_us). 
            If provided, the corresponding language copy of the Content Fragment will be returned if available.
            If not available, a 404 error will be returned.
          schema:
            $ref: '#/components/schemas/Locale'
          required: false
        - $ref: '#/components/parameters/partial'
        - $ref: '#/components/parameters/includeMetadata'
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragment'
        '304':
          $ref: '#/components/responses/304_NotModified'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    patch:
      operationId: fragments/updateFragment
      tags:
        - Fragment Management
      summary: Edit a Content Fragment
      description: |
        This operation allows editing a Content Fragment. The changes are passed as [JSON Patch documents](https://www.rfc-editor.org/rfc/rfc6902).

        Save conflicts are detected by leveraging [conditional](https://www.rfc-editor.org/rfc/rfc9110.html#conditional.requests) HTTP
        requests. When a conflict occurs, the server will reply with a `412` response. It becomes the caller's
        responsibility to resolve the conflict, either by accepting the values from the server, or by overwriting them.
      parameters:
        - $ref: '#/components/parameters/If-Match'
        - in: query
          name: references
          description: |
            An optional parameter that defines how references should be handled when patching the Content Fragment.
          schema:
            $ref: '#/components/schemas/PatchReferences'
          required: false
        - $ref: '#/components/parameters/partial'
      requestBody:
        required: true
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/JSONPatch'
            examples:
              add-string-value:
                $ref: '#/components/examples/AddStringPatch'
              add-number-value:
                $ref: '#/components/examples/AddNumberPatch'
              add-array-value:
                $ref: '#/components/examples/AddArrayPatch'
              add-object-value:
                $ref: '#/components/examples/AddObjectPatch'
              copy:
                $ref: '#/components/examples/CopyPatch'
              move:
                $ref: '#/components/examples/MovePatch'
              remove:
                $ref: '#/components/examples/RemovePatch'
              replace-string-value:
                $ref: '#/components/examples/ReplaceStringPatch'
              replace-number-value:
                $ref: '#/components/examples/ReplaceNumberPatch'
              replace-array-value:
                $ref: '#/components/examples/ReplaceArrayPatch'
              replace-object-value:
                $ref: '#/components/examples/ReplaceObjectPatch'
              multiple-operations:
                $ref: '#/components/examples/MultipleOperationsPatch'
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
            X-References-Limit:
              $ref: '#/components/headers/X-References-Limit'
            X-References-Retrieved:
              $ref: '#/components/headers/X-References-Retrieved'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragment'
              examples:
                change-title:
                  $ref: '#/components/examples/PatchContentFragment'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    put:
      operationId: fragments/fullyUpdateFragment
      tags:
        - Fragment Management
      summary: Update all mutable properties of a Content Fragment
      description: |
        This operation allows fully updating mutable properties of a Content Fragment. The changes are passed as JSON.

        Update requests should pass the most recent `ETag` value received from the server for a representation with fully hydrated direct references.
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateContentFragment'
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragment'
              examples:
                change-title:
                  $ref: '#/components/examples/ContentFragment'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    delete:
      operationId: fragments/deleteFragment
      summary: Delete a Content Fragment
      description: |
        This operation deletes a Content Fragment.

        Deletes are based on [conditional](https://www.rfc-editor.org/rfc/rfc9110.html#conditional.requests) HTTP
        requests. When a conflict occurs, the server will reply with a `412` response.

        Delete requests should pass the most recent `ETag` value received from the server for a representation with fully hydrated direct references.

        Content Fragments in PUBLISHED or MODIFIED status cannot be deleted. Additionally, deletion is prevented if any Content Fragments it references are in MODIFIED status or if the fragment is referenced by other Content Fragments and the `unlinkReferences` parameter is set to false.
      parameters:
        - $ref: '#/components/parameters/If-Match'
        - in: query
          name: unlinkReferences
          description: |
            Optional boolean parameter, if set to `true`, the references to the deleted fragment will be removed from the referencing fragments.
            By default, the value of this query parameter is `false`.
          schema:
            type: boolean
            default: false
          required: false
      tags:
        - Fragment Management
      responses:
        '204':
          $ref: '#/components/responses/204_NoContent'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/checkoutState:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
    patch:
      operationId: fragments/updateCheckoutState
      summary: Update checkout state of a Content Fragment
      description: |
        This operation updates the checkout state of a Content Fragment, either checking it out or checking it in.

        **Checking Out (checkedOut: true):**
        - Creates an exclusive lock on the fragment for the current user
        - Prevents other users from editing or checking out the fragment
        - If already checked out by the current user, the operation is idempotent
        - If checked out by another user, returns a 409 Conflict response

        **Checking In (checkedOut: false):**
        - Removes the exclusive lock on the fragment
        - Allows other users to check out and edit the fragment
        - If not checked out, the operation is idempotent
        - Non-admin users can only check in fragments they have checked out
        - Admin users can check in any fragment

        **Conditional Requests:**
        This operation requires the `If-Match` header with the current ETag of the fragment to ensure
        the operation is performed on the expected state of the resource. This prevents race conditions
        where multiple users might attempt to change the checkout state simultaneously.

        The ETag should be obtained from a previous GET request to the fragment.
        When a conflict occurs (ETag mismatch), the server will reply with a `412 Precondition Failed` response.
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutState'
            examples:
              checkout:
                summary: Check out a fragment
                value:
                  checkedOut: true
              checkin:
                summary: Check in a fragment
                value:
                  checkedOut: false
      tags:
        - Fragment Management
      responses:
        '204':
          description: No Content
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/deleteAndUnpublish:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
      - in: query
        name: unlinkReferences
        description: |
          An optional boolean parameter. When set to `true`, the references to the deleted fragment are removed from all referencing fragments.
          By default, the value of this query parameter is `true`.
        schema:
          type: boolean
          default: true
        required: false
    delete:
      operationId: fragments/deleteAndUnpublishFragment
      summary: Delete and unpublish Content Fragment
      description: |
        This operation deletes a Content Fragment and also starts the unpublish process.

        Deletes are based on [conditional](https://www.rfc-editor.org/rfc/rfc9110.html#conditional.requests) HTTP
        requests. When a conflict occurs, the server will reply with a `412` response.

        Delete requests should pass the most recent `ETag` value received from the server for a representation with fully hydrated direct references.

        Deletion is prevented if the fragment is referenced by other Content Fragments and the `unlinkReferences` parameter is set to false.
      parameters:
        - $ref: '#/components/parameters/If-Match'
      tags:
        - Fragment Management
      responses:
        '202':
          description: The request was accepted for processing and it will be executed asynchronously.
          content:
            application/json:
              schema:
                type: object
                properties:
                  workflowInstanceId:
                    $ref: '#/components/schemas/Path'
                    description: |
                      The workflow instance id. Can be used to monitor the status of the given workflow using the Workflow REST API.
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/previewUrl:
    get:
      operationId: fragments/getPreviewURLForFragment
      x-audience: cloud
      summary: Get the preview URLs for a Content Fragment
      parameters:
        - in: path
          name: fragmentId
          description: Content Fragment unique identifier
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      tags:
        - Fragment Management
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/ContentFragmentPreviewURL'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/variations:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      operationId: fragments/getVariationsForFragment
      tags:
        - Fragment Variations
      summary: List a Content Fragment's Variations
      description: |
        This operation provides support for retrieving all the Variations of a Content Fragment.
        By default this call will return a maximum of 50 items.

        The caller can define other limits suited to their application (see the `limit` query parameter),
        but the limit cannot be higher than 50. To ask for the next set of items pass the value of the `cursor`
        provided in the response to the `cursor` query parameter.
      parameters:
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/cursor'
        - in: path
          name: fragmentId
          description: Content Fragment unique identifier
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentVariationListResult'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    post:
      operationId: fragments/createVariationForFragment
      summary: Create a Content Fragment Variation
      tags:
        - Fragment Variations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateVariation'
      responses:
        '201':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentVariation'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/variations/search:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      operationId: fragments/searchVariations
      tags:
        - Search
      summary: Search variations of a Content Fragment
      description: |
        This operation returns Content Fragment variations that match the search criteria
        for the given Content Fragment. Results can be paginated.
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/ContentFragmentVariationSearchParameter'
        - in: path
          name: fragmentId
          description: Content Fragment unique identifier
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      responses:
        '200':
          description: Variations matching the search criteria.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentVariationListResult'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/variations/{name}:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
      - in: path
        name: name
        description: The name of the Variation
        required: true
        schema:
          type: string
        example: summit_2023
    get:
      operationId: fragments/getVariationForFragment
      tags:
        - Fragment Variations
      summary: Get a Variation for a Content Fragment
      parameters:
        - $ref: '#/components/parameters/partial'
        - in: query
          name: references
          schema:
            $ref: '#/components/schemas/References'
          required: false
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentVariation'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    patch:
      operationId: fragment/variations/updateVariation
      summary: Edit a Content Fragment Variation
      tags:
        - Fragment Variations
      description: |
        This operation allows editing a Content Fragment Variation. The changes are passed as [JSON Patch documents](https://www.rfc-editor.org/rfc/rfc6902).

        Save conflicts are detected by leveraging [conditional](https://www.rfc-editor.org/rfc/rfc9110.html#conditional.requests) HTTP
        requests. When a conflict occurs, the server will reply with a `412` response. It becomes the caller's
        responsibility to resolve the conflict, either by accepting the values from the server, or by overwriting them.
      parameters:
        - $ref: '#/components/parameters/If-Match'
        - $ref: '#/components/parameters/partial'
      requestBody:
        required: true
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/JSONPatch'
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentVariation'
              examples:
                change-title:
                  $ref: '#/components/examples/PatchContentFragmentVariation'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '413':
          $ref: '#/components/responses/413_ContentTooLarge'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    delete:
      operationId: fragment/variations/deleteVariation
      summary: Delete a Content Fragment Variation
      tags:
        - Fragment Variations
      description: |
        This operation deletes a Content Fragment Variation.

        Deletes are based on [conditional](https://www.rfc-editor.org/rfc/rfc9110.html#conditional.requests) HTTP
        requests. When a conflict occurs, the server will reply with a `412` response.
      parameters:
        - $ref: '#/components/parameters/If-Match'
        - in: query
          name: unlinkReferences
          description: |
            Optional boolean parameter, if set to `true`, the references to the deleted fragment will be removed from the referencing fragments.
            By default, the value of this query parameter is `false`.
          schema:
            type: boolean
            default: false
          required: false
      responses:
        '204':
          $ref: '#/components/responses/204_NoContent'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/variations/{name}/references:
    get:
      operationId: fragments/getFragmentVariationReferences
      summary: Get the tree of references contained in a Content Fragment Variation
      parameters:
        - in: path
          name: fragmentId
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
        - in: path
          name: name
          description: The name of the variation
          required: true
          schema:
            type: string
      tags:
        - Fragment Variations
      responses:
        '200':
          description: OK
          headers:
            X-Max-References-Depth:
              description: Informs of reference tree recursive depth
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/BaseReference'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/versions:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      operationId: fragments/getVersionsForFragment
      tags:
        - Fragment Versioning
      summary: List a Content Fragment's Versions
      description: |
        This operation provides support for retrieving all the Versions of a Content Fragment.
        By default this call will return a maximum of 50 items.

        The caller can define other limits suited to their application (see the `limit` query
        parameter), but the limit cannot be higher than 50. To ask for the next set of items
        pass the value of the `cursor` provided in the response to the `cursor` query parameter.
      parameters:
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/cursor'
        - in: path
          name: fragmentId
          description: Content Fragment unique identifier
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Version'
                  cursor:
                    $ref: '#/components/schemas/Cursor'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    post:
      operationId: fragments/createVersionsForFragment
      tags:
        - Fragment Versioning
      summary: Create a Version for a Content Fragment
      parameters:
        - in: path
          name: fragmentId
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      requestBody:
        description: Request payload to create a content fragment version.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentFragmentCreateVersion'
      responses:
        '201':
          description: The Content Fragment Version was successfully created.
          headers:
            Location:
              $ref: '#/components/headers/Location'
          content: {}
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/versions/{versionId}:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
      - in: path
        name: versionId
        description: Content Fragment Version unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      operationId: fragments/getFragmentVersion
      tags:
        - Fragment Versioning
      summary: Get a Version for a Content Fragment
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragment'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    delete:
      operationId: fragments/deleteVersion
      tags:
        - Fragment Versioning
      summary: |
        Delete a Content Fragment Version
      parameters:
        - $ref: '#/components/parameters/If-Match'
      responses:
        '204':
          $ref: '#/components/responses/204_NoContent'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/versions/restore/{versionId}:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
      - in: path
        name: versionId
        description: Content Fragment Version unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
    post:
      operationId: fragments/restoreVersion
      tags:
        - Fragment Versioning
      summary: Restore a Content Fragment Version
      description: |
        This operation will replace the current version (named or not) of the indicated Content Fragment with
        the contents stored in the passed Version.
      responses:
        '200':
          description: OK
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/tags:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      operationId: fragments/getTagsFromFragment
      tags:
        - Tagging
      summary: Get the Tags applied to a Content Fragment
      responses:
        '200':
          $ref: '#/components/responses/TagsListResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    post:
      operationId: fragment/addTagsToContentFragment
      tags:
        - Tagging
      summary: Add tags to a Content Fragment
      description: |
        This operation adds new tags to an existing Content Fragment.
        The tags must be already available in the system when this request is made.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagsRequest'
      responses:
        '200':
          $ref: '#/components/responses/TagsListResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    put:
      operationId: fragment/replaceTagsFromContentFragment
      tags:
        - Tagging
      summary: Replace the Tags applied to a Content Fragment
      description: |
        This operation updates all tags of an existing Content Fragment by replacing the existing tags with tags based on the details from the payload.
        The tags must be already available in the system when this request is made.
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagsRequest'
      responses:
        '200':
          $ref: '#/components/responses/TagsListResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    delete:
      operationId: fragment/deleteTagsFromContentFragment
      tags:
        - Tagging
      summary: |
        Delete the Tags applied to a Content Fragment
      parameters:
        - $ref: '#/components/parameters/If-Match'
      responses:
        '204':
          $ref: '#/components/responses/204_NoContent'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/variations/{name}/tags:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
      - in: path
        name: name
        description: The name of the variation for which the tags are retrieved.
        required: true
        schema:
          type: string
    get:
      operationId: fragments/getTagsFromVariation
      tags:
        - Tagging
      summary: Get the Tags applied to a Content Fragment Variation
      responses:
        '200':
          $ref: '#/components/responses/TagsListResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    post:
      operationId: fragments/addTagsToVariation
      tags:
        - Tagging
      summary: Add Tags to a Content Fragment Variation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagsRequest'
      responses:
        '200':
          $ref: '#/components/responses/TagsListResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    put:
      operationId: fragments/replaceTagsFromVariation
      tags:
        - Tagging
      summary: |
        Replace the Tags applied to a Content Fragment Variation
      description: |
        This operation updates all tags of an existing Content Fragment Variation by replacing the existing tags with tags based on the details from the payload.
        The tags must be already available in the system when this request is made.
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TagsRequest'
      responses:
        '200':
          $ref: '#/components/responses/TagsListResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    delete:
      operationId: fragments/deleteTagsFromVariation
      tags:
        - Tagging
      summary: |
        Delete the Tags applied to a Content Fragment Variation
      parameters:
        - $ref: '#/components/parameters/If-Match'
      responses:
        '204':
          $ref: '#/components/responses/204_NoContent'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/scheduledPublicationStatus:
    get:
      operationId: fragments/scheduledPublicationStatus
      summary: Get the scheduled publication status for a Content Fragment
      parameters:
        - in: path
          name: fragmentId
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      tags:
        - Fragment Management
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledPublicationStatus'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/model/uiSchema:
    parameters:
      - $ref: '#/components/parameters/X-Adobe-Accept-Unsupported-API'
      - in: path
        name: fragmentId
        required: true
        description: Content Fragment unique identifier
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      operationId: fragments/retrieveModelUISchema
      tags:
        - Fragment Management
      summary: Get the UI schema associated with the Content Fragment Model of a Content Fragment
      description: |
        This operation allows retrieving the Model UI Schema of a Content Fragment.

        This operation is an alias for `models/retrieveUISchema`.
      parameters:
        - $ref: '#/components/parameters/partial'
        - $ref: '#/components/parameters/variation'
      responses:
        '200':
          description: A response containing a UI schema
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UISchema'
              examples:
                ui-schema-response:
                  $ref: '#/components/examples/UISchemaResponseBody'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/permissions:
    parameters:
      - in: path
        name: fragmentId
        required: true
        description: Content Fragment unique identifier
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      operationId: fragments/getPermissions
      summary: Get the current user's permissions on a Content Fragment
      description: |
        This operation returns the list of permissions the user has over a specific Content Fragment.
      tags:
        - Permissions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                description: List of actions the user is allowed to perform.
                type: object
                properties:
                  items:
                    type: array
                    description: List user permissions.
                    items:
                      $ref: '#/components/schemas/Permission'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/permissions:
    post:
      operationId: fragments/permissions
      summary: Get the current's user permissions on a list of resources
      description: |
        This operation returns the list of permissions the user has over a list of resources. The resources have to be either Content Fragments or Folders and be stored under `/content/dam`.
      tags:
        - Fragment Management
      requestBody:
        description: Request parameters to retrieve permissions.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PermissionsRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                description: List of actions the user is allowed to perform.
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/PermissionsResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '413':
          $ref: '#/components/responses/413_ContentTooLarge'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/publish:
    post:
      operationId: fragments/publish
      summary: Publish Content Fragments
      description: |
        This operation starts an AEM workflow for publishing Content Fragments.
      tags:
        - Fragment Management
      requestBody:
        description: Request parameters to publish content fragments.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentFragmentPublishRequest'
            examples:
              using-ids:
                $ref: '#/components/examples/PublishFragmentsByIds'
              using-paths:
                $ref: '#/components/examples/PublishFragmentsByPaths'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublishResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '413':
          $ref: '#/components/responses/413_ContentTooLarge'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/workflows:
    get:
      operationId: workflows/getWorkflows
      tags:
        - Workflows
      summary: List Workflows
      description: |
        This operation provides support for retrieving all the workflows
        accessible to the current user, determined via the applied request authorization. 
        This operation supports filtering and sorting of workflows based on the provided search criteria.
        By default this call will return a maximum of 50 sorted in descending order by the workflow’s start time.

        The caller can define other limits suited to their application (see the `limit` query
        parameter), but the limit cannot be higher than 50. To ask for the next set of items
        pass the value of the `cursor` provided in the response to the `cursor` query parameter.
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/WorkflowSearchParameter'
      responses:
        '200':
          description: A response containing a potentially paginated list of workflows.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/Workflow'
                  cursor:
                    $ref: '#/components/schemas/Cursor'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    post:
      operationId: workflows/start
      summary: Start a workflow
      description: |
        This operation starts an AEM workflow related to Content Fragments.
        The following type of operations are available:
          * publish-folder - recursively publishes the fragments from a certain folder
          * unpublish-fragments - unpublish content fragments
          * unpublish-models - unpublish content fragment models
          * create-translation-structure - creates the folder structure for Language Copies of Content Fragments
          * move-fragments - move multiple Content Fragments
      tags:
        - Workflows
      requestBody:
        description: Request parameters to start a workflow.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkflowRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '413':
          $ref: '#/components/responses/413_ContentTooLarge'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/workflows/{workflowInstanceId}:
    get:
      operationId: workflows/getWorkflow
      tags:
        - Workflows
      summary: Get a Workflow
      parameters:
        - in: path
          name: workflowInstanceId
          description: The workflow instance identifier.
          required: true
          schema:
            $ref: '#/components/schemas/Path'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Workflow'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/referencedBy:
    post:
      operationId: fragments/referencedBy
      summary: Get the parent references of a given list of resources
      description: |
        This operation returns the parent references of type Page, Experience Fragment and Content Fragments
        which are referencing the resources specified in the payload.
      tags:
        - References
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentFragmentsReferencedBy'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentParentReference'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '413':
          $ref: '#/components/responses/413_ContentTooLarge'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/references:
    get:
      operationId: fragments/getFragmentReferences
      summary: Get the references of a Content Fragment
      parameters:
        - in: path
          name: fragmentId
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      tags:
        - References
      responses:
        '200':
          description: OK
          headers:
            X-Max-References-Depth:
              description: Informs of reference tree recursive depth
              schema:
                type: integer
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/BaseReference'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/referencesTree:
    get:
      operationId: fragments/getFragmentReferencesTree
      summary: Get the references of a Content Fragment as a list
      parameters:
        - in: path
          name: fragmentId
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      tags:
        - References
      responses:
        '200':
          description: OK
          headers:
            X-Max-References-Depth:
              description: Informs of reference tree recursive depth
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentTreeResult'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/referencedBy:
    get:
      operationId: fragments/fragmentReferencedBy
      summary: Get the parent references of a Content Fragment
      description: |
        This operation returns the parent references of type Page, Experience Fragment and Content Fragments which are referencing the
        given Content Fragment.
      tags:
        - References
      parameters:
        - in: path
          name: fragmentId
          description: Content Fragment unique identifier
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParentReferencesList'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/copy:
    post:
      operationId: fragments/copy
      summary: Copy a Content Fragment
      description: |
        This operation copies a Content Fragment from one location to another.
      tags:
        - Fragment Management
      parameters:
        - in: path
          name: fragmentId
          description: The unique identifier of the Content Fragment to be copied.
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CopyContentFragment'
      responses:
        '201':
          description: The Content Fragment was successfully copied.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
            Location:
              schema:
                type: string
                format: uri
              description: The URI at which the copied Content Fragment can be accessed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragment'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/translations:
    get:
      operationId: fragments/getTranslations
      summary: Get the locales and language copies of a Content Fragment
      tags:
        - Translations
      parameters:
        - in: path
          name: fragmentId
          description: Content Fragment unique identifier
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentLanguageCopy'
              example:
                locale: en
                languageCopies:
                  - path: /content/dam/wknd-shared/en/contributors/ian-provo
                    title: Title changed using PATCH
                    locale: en
                    model: Author
                    status: DRAFT
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/translations:
    post:
      operationId: fragments/translations
      summary: Get the locales and language copies of a given list of resources
      tags:
        - Translations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentFragmentsTranslations'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                description: List of Content Fragments Language Copies
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/ContentFragmentPathToLanguageCopy'
              example:
                items:
                  - path: /content/dam/wknd-shared/en/contributors/ian-provo
                    locale: en
                    languageCopies:
                      - path: /content/dam/wknd-shared/en/contributors/ian-provo
                        title: Title changed using PATCH
                        locale: en
                        model: Author
                        status: DRAFT
                  - path: /content/dam/wknd-shared/en/contributors/jacob-wester
                    locale: en
                    languageCopies:
                      - path: /content/dam/wknd-shared/en/contributors/jacob-wester
                        title: Jacob Wester
                        locale: en
                        model: Author
                        status: DRAFT
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/languages:
    get:
      operationId: fragments/getLanguages
      summary: Get the available language(s) for creating Language Copies for a given Content Fragment path
      tags:
        - Translations
      parameters:
        - in: query
          name: path
          description: Required UTF-8 encoded parameter to specify a Content Fragment path for which to retrieve the available language roots.
          schema:
            $ref: '#/components/schemas/ContentFragmentPath'
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Languages'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/scheduledPublicationStatus:
    post:
      operationId: fragments/scheduledPublicationStatusMultipleFragments
      tags:
        - Fragment Management
      summary: Get the scheduled publication status for a list of Content Fragment IDs
      requestBody:
        required: true
        description: Request parameters to retrieve scheduled publication status of Content Fragments.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScheduledPublicationStatusRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduledPublicationStatusListResult'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/findAndReplace:
    post:
      operationId: fragments/findAndReplace
      tags:
        - Fragment Management
      summary: |
        Find and replace text in Content Fragments
      description: |
        This operation provides support for bulk editing the selected content fragments in the sense of replacing text occurrences for all fields of type `text` and `long-text`.
        This operation executes synchronously. For performance considerations, the operation applies on a batch of selected CFs identified by a list of their paths.
      requestBody:
        description: Request payload for Content Fragments Bulk Edit Find and Replace
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FindAndReplace'
      responses:
        '200':
          description: A response containing s result for FindAndReplace operation for each of the selected Content Fragment.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FindAndReplaceResolution'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/domains:
    get:
      operationId: fragments/getDomain
      x-audience: cloud
      summary: Get the domain URL matching the AEM tier environment provided.
      tags:
        - Fragment Management
      description: |
        This operation returns the domain URL based on the AEM tier provided: author, publish or preview.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainResponse'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/permissions:
    post:
      operationId: permissions
      summary: Get the current's user permissions on a list of resources
      description: |
        This operation returns the list of permissions the user has over a list of Folder, Content Fragments or Content Fragment Models. The Content Fragments are expected to be within the `/content/dam` directory, the Content Fragment Models within the `/conf` directory, and the Folders could be within the `/content/dam`, the `/conf` or the `/content/launches` directory. For folders within `/content/launches`, the permissions returned describe whether the user can read and create launches in that folder.
      tags:
        - Permissions
      requestBody:
        description: Request parameters to retrieve permissions.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PermissionsRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                description: List of actions the user is allowed to perform.
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/PermissionsResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '413':
          $ref: '#/components/responses/413_ContentTooLarge'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/graphql:
    post:
      operationId: graphQL/post
      summary: GraphQL POST request
      tags:
        - GraphQL
      x-audience: cloud
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GraphQLRequest'
      responses:
        '200':
          description: The passed query got executed.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/GraphQLSuccessResponse'
                  - $ref: '#/components/schemas/GraphQLErrorResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    get:
      operationId: graphQL/get
      summary: GraphQL GET request
      tags:
        - GraphQL
      x-audience: cloud
      parameters:
        - in: query
          name: query
          schema:
            type: string
          required: true
          description: GraphQL query string
        - in: query
          name: variables
          schema:
            type: string
          description: Variables simplify GraphQL queries by letting you pass data separately. Can be declared after the query are passed like arguments to a function and begin with `$`.
      responses:
        '200':
          description: The passed query got executed.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/GraphQLSuccessResponse'
                  - $ref: '#/components/schemas/GraphQLErrorResponse'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/search:
    get:
      operationId: fragments/search
      tags:
        - Search
      summary: |
        Search API for Content Fragments based on various Search Criteria.
      description: |
        This is a filtering API to find Content Fragments that match specific criteria. Results can be paginated.
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/includeMetadata'
        - $ref: '#/components/parameters/ContentFragmentSearchParameter'
        - in: query
          name: projection
          description: |
            If this optional parameter is provided and its value is 'summary', the fragments in the response will contain
            only the required properties.
          schema:
            $ref: '#/components/schemas/Projection'
          required: false
      responses:
        '200':
          description: List of detailed Content Fragments matching Search criteria.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentListResult'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/models/search:
    get:
      operationId: models/search
      tags:
        - Search
      summary: |
        Search API for Content Fragment Models based on various Search Criteria.
      description: |
        This is a filtering API to find Content Fragment Models that match specific criteria. Results can be paginated.
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/ContentFragmentModelSearchParameter'
        - in: query
          name: projection
          description: |
            This parameter is optional. If set to 'minimal', the response will include include only the resource identifiers
            of the Content Fragment Model: id, path, and name.
            If set to 'summary', the Content Fragment Model's fields will not be populated in the response.
            If set to 'full', the response will include all properties.
            By default, the value of this query parameter is 'full'.
          schema:
            $ref: '#/components/schemas/Projection'
          required: false
      responses:
        '200':
          description: List of detailed Content Fragment Models matching Search Criteria.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentModelListResult'
              examples:
                minimal:
                  $ref: '#/components/examples/ContentFragmentModelMinimal'
                summary:
                  $ref: '#/components/examples/ContentFragmentModelSummary'
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/batch:
    post:
      operationId: batch/create
      tags:
        - Batching
      summary: Create a batch request
      description: |
        This operation creates a batch request to execute multiple operations asynchronously in a single HTTP request.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchRequest'
      responses:
        '202':
          description: The request was accepted for processing and it will be executed asynchronously.
          headers:
            Location:
              schema:
                type: string
                format: uri
              description: The URI at which the status of the batch request can be monitored.
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    get:
      operationId: batch/list
      summary: List batch requests
      description: |
        This operation lists all batch requests that have been created.
      tags:
        - Batching
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
        - in: query
          name: jobStatus
          description: |
            If this optional parameter is provided, the batch requests will be filtered based on their status.
          schema:
            $ref: '#/components/schemas/BatchJobStatus'
          required: false
      responses:
        '200':
          description: A response containing a potentially paginated list of batch requests.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponseListResult'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/batch/{id}:
    parameters:
      - in: path
        name: id
        required: true
        description: The ID of the Batch Request
        schema:
          type: string
    get:
      operationId: batch/get
      tags:
        - Batching
      summary: Retrieve the status of a batch request
      description: |
        This operation retrieves the status of a batch request and the results of the operations that were executed.
      responses:
        '200':
          description: The status of the batch request and the results of the operations that were executed.
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponse'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/model:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      operationId: fragments/getModel
      tags:
        - Fragment Management
      summary: Get the model of a Content Fragment
      description: |
        This operation allows a caller to get the Content Fragment Model belonging to a specific Content Fragment.
        It is an alias for the endpoint /cf/models/{id}.
      parameters:
        - $ref: '#/components/parameters/partial'
        - $ref: '#/components/parameters/variation'
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFragmentModel'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    put:
      operationId: fragments/changeModel
      tags:
        - Fragment Management
      summary: Change the model of a Content Fragment
      description: |
        This operation allows a caller to change the Content Fragment Model for a Content Fragment. As a result of this operation, the Content Fragment can become invalid if the new Model does not match the existing content.
        To edit the Content Fragment's fields after a Content Fragment Model change, use a partial or a full update operation on the Fragment.
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentFragmentChangeModel'
      responses:
        '204':
          $ref: '#/components/responses/204_NoContent'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/create:
    post:
      operationId: fragments/create
      tags:
        - Fragment Management
      summary: Create a Content Fragment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContentFragment'
      responses:
        '201':
          description: The Content Fragment was successfully created.
          headers:
            Location:
              schema:
                type: string
                format: uri
              description: The URI at which the created content fragment can be accessed.
        '400':
          $ref: '#/components/responses/400_BadRequest_WithValidation'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/copyTree:
    post:
      operationId: fragments/copyTree
      summary: Copy a Content Fragment
      description: |
        This operation asynchronously creates a copy of a Content Fragment and its Content Fragment references.
        By default, references will be copied under their original folders and their names will automatically be adjusted by the server. 
        Optionally, references can also be copied into the same folder as the main Content Fragment. 
        The limit of references that can be handled is configurable server-side, with a default value of 1000.
      tags:
        - Fragment Management
      parameters:
        - in: path
          name: fragmentId
          description: The unique identifier of the Content Fragment to be copied.
          required: true
          schema:
            $ref: '#/components/schemas/UUID'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CopyContentFragmentTree'
      responses:
        '202':
          description: The request was accepted for processing and it will be executed asynchronously.
          headers:
            Location:
              schema:
                type: string
                format: uri
              description: The URI at which the status of the copy request can be monitored.
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '409':
          $ref: '#/components/responses/409_Conflict'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/fragments/{fragmentId}/metadata:
    parameters:
      - in: path
        name: fragmentId
        description: Content Fragment unique identifier
        required: true
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      operationId: fragments/getFragmentMetadata
      tags:
        - Metadata
      summary: Get Content Fragment metadata
      description: |
        Returns all metadata properties for a Content Fragment, including the metadata form identifier.

        The form identifier is resolved from the fragment itself or its parent folder hierarchy.
        If no form is found up to the root folder, the default form is used.

        The response includes an `ETag` header. Clients can pass this value in the `If-None-Match` header
        of subsequent requests to avoid re-fetching unchanged data. When the metadata has not changed,
        the server replies with a `304 Not Modified` response and an empty body.
      parameters:
        - $ref: '#/components/parameters/If-None-Match'
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FragmentMetadata'
        '304':
          $ref: '#/components/responses/304_NotModified'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    patch:
      operationId: fragments/patchFragmentMetadata
      tags:
        - Metadata
      summary: Update Content Fragment metadata
      description: |
        This operation allows updating metadata properties of a Content Fragment according to its resolved metadata schema.
        The changes are passed as [JSON Patch documents](https://www.rfc-editor.org/rfc/rfc6902).

        Properties must be defined in the resolved metadata schema, unless the resolved schema is the default
        schema, in which case any property can be set. Attempting to modify properties not defined in a
        non-default resolved schema or read-only properties will result in a `400` error.

        Save conflicts are detected by leveraging [conditional](https://www.rfc-editor.org/rfc/rfc9110.html#conditional.requests) HTTP
        requests. When a conflict occurs, the server will reply with a `412` response.
      parameters:
        - $ref: '#/components/parameters/If-Match'
        - $ref: '#/components/parameters/createVersion'
      requestBody:
        required: true
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/JSONPatch'
      responses:
        '200':
          description: OK - Metadata updated successfully
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FragmentMetadata'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '428':
          $ref: '#/components/responses/428_PreconditionRequired'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/metadata/schemas:
    get:
      operationId: metadataSchemasGetSchema
      tags:
        - Metadata
      summary: Get metadata for a resource path
      description: |
        Returns all metadata properties for a content fragment or folder, including the metadata form identifier.

        The form identifier is resolved from the resource itself or its parent folder hierarchy,
        falling back to the default form if none is found up to the root folder.

        All properties under the metadata node are always returned.
      parameters:
        - in: query
          name: path
          required: true
          description: |
            The folder or content fragment path for which to resolve and return metadata.
          schema:
            $ref: '#/components/schemas/AssetOrLaunchPath'
          example: /content/dam/campaigns/summer-2026
        - $ref: '#/components/parameters/If-None-Match'
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FragmentMetadata'
        '304':
          $ref: '#/components/responses/304_NotModified'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /cf/metadata/schemas/bindings:
    put:
      operationId: metadata/schemas/bindSchema
      summary: Bind a metadata schema to a resource
      description: |
        Links a metadata schema to a content fragment or DAM folder.
        The schema defines which metadata properties are available for the resource.

        **Binding a Schema:**
        - Set `schemaId` to the ID of the metadata schema to bind
        - Child resources (fragments in folders) will inherit the schema unless overridden

        **Unbinding a Schema:**
        - Set `schemaId` to `null` to remove the schema binding
        - The resource will then inherit from its parent folder, if any

        Only DAM folders and content fragments are supported. Other resource types will result in a 400 Bad Request response.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataSchemaBinding'
            examples:
              bindSchema:
                summary: Bind a schema to a folder
                value:
                  resourcePath: /content/dam/campaigns/summer-2026
                  schemaId: campaign.schema.json
              unbindSchema:
                summary: Unbind a schema from a resource
                value:
                  resourcePath: /content/dam/campaigns/summer-2026
      tags:
        - Metadata
      responses:
        '204':
          description: Schema binding updated successfully
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
x-webhooks:
  content-fragment-created:
    post:
      summary: Content Fragment Created Event
      operationId: content-fragment-created
      x-audience: development
      description: |
        An `aem.sites.contentFragment.created` event will be triggered when a new Content Fragment is created on the server.
      security: []
      tags:
        - Fragment Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragment.created
                    data:
                      $ref: '#/components/schemas/ContentFragmentCreatedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-modified:
    post:
      summary: Content Fragment Modified Event
      operationId: content-fragment-modified
      x-audience: development
      description: |
        An `aem.sites.contentFragment.modified` event will be triggered when a Content Fragment is modified on the server.
      security: []
      tags:
        - Fragment Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragment.modified
                    data:
                      $ref: '#/components/schemas/ContentFragmentModifiedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-deleted:
    post:
      summary: Content Fragment Deleted Event
      operationId: content-fragment-deleted
      x-audience: development
      description: |
        An `aem.sites.contentFragment.deleted` event will be triggered when a Content Fragment is deleted on the server.
      security: []
      tags:
        - Fragment Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragment.deleted
                    data:
                      $ref: '#/components/schemas/ContentFragmentDeletedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-moved:
    post:
      summary: Content Fragment Moved Event
      operationId: content-fragment-moved
      x-audience: development
      description: |
        An `aem.sites.contentFragment.moved` event will be triggered when a Content Fragment is moved on the server.
      security: []
      tags:
        - Fragment Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragment.moved
                    data:
                      $ref: '#/components/schemas/ContentFragmentMovedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-published:
    post:
      summary: Content Fragment Published Event
      operationId: content-fragment-published
      x-audience: development
      description: |
        An `aem.sites.contentFragment.published` event will be triggered when a Content Fragment is replicated to the publish tier.
      security: []
      tags:
        - Fragment Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragment.published
                    data:
                      $ref: '#/components/schemas/ContentFragmentPublishedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-unpublished:
    post:
      summary: Content Fragment Unpublished Event
      operationId: content-fragment-unpublished
      x-audience: development
      description: |
        An `aem.sites.contentFragment.unpublished` event will be triggered when a Content Fragment is removed from the publish tier.
      security: []
      tags:
        - Fragment Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragment.published
                    data:
                      $ref: '#/components/schemas/ContentFragmentUnpublishedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-variation:
    post:
      summary: Content Fragment Variation Event
      operationId: content-fragment-variation
      x-audience: development
      description: |
        An `aem.sites.contentFragment.variation` event will be triggered when a Content Fragment Variation is added, modified or deleted on the server.
      security: []
      tags:
        - Fragment Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragment.variation
                    data:
                      $ref: '#/components/schemas/ContentFragmentVariationEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-model-created:
    post:
      summary: Content Fragment Model Created Event
      operationId: content-fragment-model-created
      x-audience: development
      description: |
        An `aem.sites.contentFragmentModel.created` event will be triggered when a new Content Fragment Model is created on the server.
      security: []
      tags:
        - Model Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragmentModel.created
                    data:
                      $ref: '#/components/schemas/ContentFragmentModelCreatedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-model-deleted:
    post:
      summary: Content Fragment Model Deleted Event
      operationId: content-fragment-model-deleted
      x-audience: development
      description: |
        An `aem.sites.contentFragmentModel.deleted` event will be triggered when a Content Fragment Model is deleted on the server.
      security: []
      tags:
        - Model Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragmentModel.deleted
                    data:
                      $ref: '#/components/schemas/ContentFragmentModelDeletedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-model-published:
    post:
      summary: Content Fragment Model Published Event
      operationId: content-fragment-model-published
      x-audience: development
      description: |
        An `aem.sites.contentFragmentModel.published` event will be triggered when a Content Fragment is replicated to the publish tier.
      security: []
      tags:
        - Model Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragmentModel.published
                    data:
                      $ref: '#/components/schemas/ContentFragmentModelPublishedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-model-unpublished:
    post:
      summary: Content Fragment Model Unpublished Event
      operationId: content-fragment-model-unpublished
      x-audience: development
      description: |
        An `aem.sites.contentFragmentModel.unpublished` event will be triggered when a Content Fragment Model is removed from the publish tier.
      security: []
      tags:
        - Model Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragmentModel.unpublished
                    data:
                      $ref: '#/components/schemas/ContentFragmentModelUnpublishedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  content-fragment-model-modified:
    post:
      summary: Content Fragment Model Modified Event
      operationId: content-fragment-model-modified
      x-audience: development
      description: |
        An `aem.sites.contentFragmentModel.modified` event will be triggered when a Content Fragment Model is modified on the server.
      security: []
      tags:
        - Model Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.contentFragmentModel.modified
                    data:
                      $ref: '#/components/schemas/ContentFragmentModelModifiedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  page-created:
    post:
      summary: Page Created Event
      operationId: page-created
      x-audience: cloud
      description: |
        An `aem.sites.page.created` event will be triggered when a Page is created on the server.
      security: []
      tags:
        - Page Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.page.created
                    data:
                      $ref: '#/components/schemas/PageCreatedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  page-modified:
    post:
      summary: Page Modified Event
      operationId: page-modified
      x-audience: cloud
      description: |
        An `aem.sites.page.modified` event will be triggered when a Page is modified on the server.
      security: []
      tags:
        - Page Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.page.modified
                    data:
                      $ref: '#/components/schemas/PageModifiedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  page-deleted:
    post:
      summary: Page Deleted Event
      operationId: page-deleted
      x-audience: cloud
      description: |
        An `aem.sites.page.deleted` event will be triggered when a Page is deleted on the server.
      security: []
      tags:
        - Page Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.page.deleted
                    data:
                      $ref: '#/components/schemas/PageDeletedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  page-moved:
    post:
      summary: Page Moved Event
      operationId: page-moved
      x-audience: cloud
      description: |
        An `aem.sites.page.moved` event will be triggered when a Page is moved on the server.
      security: []
      tags:
        - Page Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.page.moved
                    data:
                      $ref: '#/components/schemas/PageMovedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  page-published:
    post:
      summary: Page Published Event
      operationId: page-published
      x-audience: cloud
      description: |
        An `aem.sites.page.published` event will be triggered when a Page is replicated to the publish tier.
      security: []
      tags:
        - Page Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.page.published
                    data:
                      $ref: '#/components/schemas/PagePublishedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  page-unpublished:
    post:
      summary: Page Unpublished Event
      operationId: page-unpublished
      x-audience: cloud
      description: |
        An `aem.sites.page.unpublished` event will be triggered when a Page is removed from the publish tier.
      security: []
      tags:
        - Page Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.page.unpublished
                    data:
                      $ref: '#/components/schemas/PageUnpublishedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  page-versioned:
    post:
      summary: Page Versioned Event
      operationId: page-versioned
      x-audience: cloud
      description: |
        An `aem.sites.page.versioned` event will be triggered when a Page version is created on the server.
      security: []
      tags:
        - Page Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.page.versioned
                    data:
                      $ref: '#/components/schemas/PageVersionedEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
  page-restored:
    post:
      summary: Page Restored Event
      operationId: page-restored
      x-audience: cloud
      description: |
        An `aem.sites.page.restored` event will be triggered when a Page is restored on the server from a server.
      security: []
      tags:
        - Page Events
      requestBody:
        content:
          application/json:
            schema:
              type: object
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.sites.page.restored
                    data:
                      $ref: '#/components/schemas/PageRestoredEventData'
      responses:
        '200':
          description: Return a 200 status to indicate that the data was received successfully
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
    basicAuth:
      type: http
      scheme: basic
  schemas:
    Cursor:
      description: |
        A cursor is an opaque string that can be used in API calls which support paginating the response. A non-existent cursor
        signifies that the returned list does not have more elements.
      type: string
      minLength: 1
    Limit:
      description: |
        For a paginated request, this parameter defines the maximum number of items to retrieve.
      type: integer
      format: int32
      minimum: 1
      maximum: 50
    Projection:
      type: string
      description: |
        This parameter defines how much data is present in the response. The following options are available:
          * `minimal` - only resource identifiers will be included in the response
          * `summary` - only the required properties will be included in the response
          * `full` - potentially all the properties will be included in the response, depending on whether the optional properties are present
      enum:
        - minimal
        - summary
        - full
      default: full
    Base64URLId:
      description: Defines a `base64url` with no padding encoded ID.
      type: string
      minLength: 1
    ContentFragmentModelPath:
      type: string
      description: A valid path to a Content Fragment Model resource.
      pattern: ^\/conf(\/.*)?$
      readOnly: true
    ETag:
      type: string
      description: |
        The `ETag` field in a response provides the current entity tag for the selected representation, as determined at the
        conclusion of handling the request. An entity tag is an opaque validator for differentiating between multiple
        representations of the same resource, regardless of whether those multiple representations are due to resource state
        changes over time, content negotiation resulting in multiple representations being valid at the same time, or both.
        An entity tag consists of an opaque quoted string, possibly prefixed by a weakness indicator.

        For more details, please head over to [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-etag).
    AuthoringInfo:
      readOnly: true
      type: object
      description: Provides details about an authoring operation (e.g. user and date).
      properties:
        at:
          type: string
          format: date-time
          description: Date and time of the operation.
          example: '2021-01-30T08:30:00Z'
        by:
          type: string
          description: The identifier of the user who performed the operation.
          example: jdoe
        fullName:
          type: string
          description: The full name of the user who performed the operation.
          example: John Doe
        firstName:
          type: string
          description: The first name of the user who performed the operation.
          example: John
        lastName:
          type: string
          description: The last name of the user who performed the operation.
          example: Doe
    ContentFragmentModelStatus:
      description: |
        The status of this model. A model is in `draft` as soon as it's
        created, unless the user specifically marks the model as `enabled`.
        A model is in `disabled` state only when a user explicitly disables
        the model.
      type: string
      readOnly: true
      enum:
        - enabled
        - disabled
        - draft
    ReplicationStatus:
      description: |
        The replication status of a resource, which can also act as a a filtering criterion that allows users 
        to select resources based on their replication status. The following options are available:
          * `PUBLISHED` - the resource is published
          * `UNPUBLISHED` - the resource was published and then later unpublished
          * `MODIFIED` - the resource was published and then later modified on the author
          * `NEVER_PUBLISHED` - the resource has never been published
      type: string
      readOnly: true
      enum:
        - PUBLISHED
        - UNPUBLISHED
        - MODIFIED
        - NEVER_PUBLISHED
    PreviewReplicationStatus:
      description: |
        The preview replication status of a resource, which can also act as a a filtering criterion that allows users 
        to select resources based on their replication status. The following options are available:
          * `PUBLISHED` - the resource is published
          * `UNPUBLISHED` - the resource was published and then later unpublished
          * `MODIFIED` - the resource was published and then later modified on the author
          * `NEVER_PUBLISHED` - the resource has never been published
      type: string
      readOnly: true
      enum:
        - PUBLISHED
        - UNPUBLISHED
        - MODIFIED
        - NEVER_PUBLISHED
      x-audience: cloud
    ContentFragmentModelField:
      description: Defines a Content Fragment Model field.
      type: object
      discriminator:
        propertyName: type
        mapping:
          text: '#/components/schemas/TextModelField'
          long-text: '#/components/schemas/LongTextModelField'
          number: '#/components/schemas/LongNumberModelField'
          float-number: '#/components/schemas/DoubleNumberModelField'
          boolean: '#/components/schemas/BooleanModelField'
          content-fragment: '#/components/schemas/FragmentReferenceModelField'
          content-reference: '#/components/schemas/ContentReferenceModelField'
          date: '#/components/schemas/DateModelField'
          time: '#/components/schemas/TimeModelField'
          date-time: '#/components/schemas/DateTimeModelField'
          enumeration: '#/components/schemas/EnumerationModelField'
          tag: '#/components/schemas/TagModelField'
          json: '#/components/schemas/JsonModelField'
          composite: '#/components/schemas/CompositeModelField'
      properties:
        name:
          type: string
          description: The name of this field.
        label:
          type: string
          description: |
            A label to be used when rendering this field in an editable form.
        description:
          type: string
          description: |
            A human-readable description for this field.
        required:
          type: boolean
          description: Defines whether this field is required or optional.
          default: false
        multiple:
          type: boolean
          description: Defines if this field should store multiple values.
          default: false
        minItems:
          type: integer
          description: A positive integer number that defines the minimum number of values that can be stored into this field
          format: int32
          minimum: 0
        maxItems:
          type: integer
          description: A positive integer number that defines the maximum number of values that can be stored into this field
          format: int32
          minimum: 1
        type:
          $ref: '#/components/schemas/DataType'
        extensionConfig:
          type: object
          description: |
            If this field is related to an extension, this object contains the configuration of the field for use by the extension.
            The values in this object are defined by the extension and can be used to configure the field's behavior or appearance.
            The values can be primitive types (string, boolean, number) or arrays of primitive types.
            More information about Content Fragments extensions can be found at <a href="https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/developing/extensibility/ui/content-fragments/overview">AEM Content Fragments extensibility</a>.
          additionalProperties:
            oneOf:
              - type: string
              - type: boolean
              - type: number
              - type: array
                items:
                  oneOf:
                    - type: string
                    - type: boolean
                    - type: number
      required:
        - name
        - label
        - type
    TextModelField:
      description: A data type for representing strings up to 256 characters
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            placeholder:
              type: string
            defaultValue:
              type: string
            maxLength:
              type: integer
              description: The maximum length this text should have. If no value is provided, it will default to 255.
              format: int32
              minimum: 0
            unique:
              type: boolean
            translatable:
              type: boolean
            validationType:
              type: string
              enum:
                - none
                - email
                - url
                - custom
              default: none
            customValidationRegex:
              type: string
            customErrorMessage:
              type: string
    MimeType:
      type: string
      description: The mime type of a multiline text field
      enum:
        - text/html
        - text/plain
        - text/x-markdown
        - text/markdown
    LongTextModelField:
      description: A data type for representing longer texts (paragraphs)
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            mimeType:
              allOf:
                - $ref: '#/components/schemas/MimeType'
              default: text/plain
            allowFragmentReference:
              type: boolean
              description: |
                Whether the text contained by the field can reference a Content Fragment
            allowedModels:
              type: array
              items:
                $ref: '#/components/schemas/Base64URLId'
              description: |
                The types of fragments that can be referenced by a field of this type. This field is required 
                when allowFragmentReference is true, and shouldn't be present otherwise
            translatable:
              type: boolean
    LongNumberModelField:
      description: A data type for representing long numbers
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            placeholder:
              type: string
            defaultValue:
              type: integer
              format: int64
            min:
              type: integer
              description: The minimum value that can be used by a field of this type
              format: int64
            max:
              type: integer
              description: The maximum value that can be used by a field of this type
              format: int64
            customErrorMessage:
              type: string
    DoubleNumberModelField:
      description: A data type for representing fractional (double-precision) numbers
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            placeholder:
              type: string
            defaultValue:
              type: number
              format: double
            min:
              type: number
              description: The minimum value that can be used by a field of this type
              format: double
            max:
              type: number
              description: The maximum value that can be used by a field of this type
              format: double
            customErrorMessage:
              type: string
    BooleanModelField:
      description: A type for representing boolean fields (checkboxes in web forms)
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            defaultValue:
              type: boolean
            customErrorMessage:
              type: string
    Path:
      type: string
      pattern: ^[^\\\[\]|*]*$
      description: A valid path to a resource
    TagId:
      description: Tag identifier
      type: string
      pattern: ^(?:(?!%|\*|\?|\[|\]|\|).)*$
      example: wknd-shared:season/summer
    FragmentReferenceModelField:
      description: A data type for representing references to Content Fragments
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            placeholder:
              type: string
            defaultValue:
              $ref: '#/components/schemas/Path'
              description: A Content Fragment path that can be used as the default value for a field of this type
            root:
              $ref: '#/components/schemas/Path'
              description: The root folder from where references can be selected for a field of this type
            allowFragmentCreation:
              type: boolean
              default: true
            items:
              type: array
              description: An array of Content Fragment Model IDs. During create model operation the field can reference its own model using the short path.
              items:
                $ref: '#/components/schemas/Base64URLId'
            tags:
              type: array
              description: An array of Content Fragment Model Tags
              items:
                $ref: '#/components/schemas/TagId'
            uuidBased:
              type: boolean
              description: Whether the reference field is uuid-based or path-based
              default: false
    MinMax:
      type: object
      description: Defines a minimum and maximum value for a field.
      properties:
        min:
          type: integer
          minimum: 0
        max:
          type: integer
          minimum: 0
    FileSize:
      type: object
      description: Defines a file size in a given storage unit.
      properties:
        size:
          type: integer
          description: The file size a reference should have
          format: int32
          minimum: 0
        unit:
          type: string
          description: 'The storage unit of a file size: B, KB, MB, GB, TB'
          enum:
            - B
            - KB
            - MB
            - GB
            - TB
      required:
        - size
        - unit
    ContentType:
      type: string
      description: |
        The type of content for a Content Reference field.
        This property supports a set of predefined values that represent the different types of content that can be referenced.
      enum:
        - plaintext
        - richtext
        - image
        - audio
        - video
        - pdf
        - spreadsheet
        - presentation
        - archive
        - markup
        - contentfragment
    CustomContentType:
      type: string
      description: |
        A custom content type for this field. The value must correspond to an existing AEM content type overlay.
        These overlays are created according to the mechanism described in the <a href="https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developing/full-stack/overlays">AEM documentation</a>.
        The provided value will be validated against the MIME types configured in the corresponding overlay.
    AllowedContentTypes:
      type: array
      description: |
        The allowed content types for a field of this type.
        This can include both standard predefined content types from the predefined list and custom content types
        created as overlays according to the <a href="https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/developing/full-stack/overlays">AEM documentation</a>.

        Custom content types allow specifying additional MIME types that will be validated against the content.
        To determine if a content type is predefined, check if it exists in the ContentType enum.

        When both predefined and custom content types are present, they will be merged and validated against both sets of rules.
      items:
        anyOf:
          - $ref: '#/components/schemas/ContentType'
          - $ref: '#/components/schemas/CustomContentType'
      minItems: 1
      uniqueItems: true
    ContentReferenceModelField:
      description: 'A data type for representing references to various content types like: plain text, rich text, content fragments, images, audio clips or video clips'
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            placeholder:
              type: string
            showThumbnail:
              type: boolean
              default: false
            root:
              $ref: '#/components/schemas/Path'
              description: The root folder from where references can be selected for a field of this type
            defaultValue:
              $ref: '#/components/schemas/Path'
            imageWidth:
              $ref: '#/components/schemas/MinMax'
              description: The minimum and maximum width of an image that can be used as a reference
            imageHeight:
              $ref: '#/components/schemas/MinMax'
              description: The minimum and maximum height of an image that can be used as a reference
            fileSizeMin:
              $ref: '#/components/schemas/FileSize'
            fileSizeMax:
              $ref: '#/components/schemas/FileSize'
            allowedContentTypes:
              $ref: '#/components/schemas/AllowedContentTypes'
            uuidBased:
              type: boolean
              description: Whether the reference field is uuid-based or path-based
              default: false
    DateModelField:
      description: A data type for representing dates using the yyyy-MM-dd format
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            placeholder:
              type: string
              default: YYYY-MM-DD
            defaultValue:
              type: string
              format: date
    TimeModelField:
      description: A data type for representing time in the HH:mm:ss format
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            defaultValue:
              type: string
              format: time
            placeholder:
              type: string
              default: HH:mm
    DateTimeModelField:
      description: A data type for representing an offset date time using the yyyy-MM-dd'T'HH:mm:ss±hh:mm format
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            defaultValue:
              type: string
              format: date-time
            placeholder:
              type: string
              default: YYYY-MM-DD HH:mm:ss
    EnumerationModelField:
      description: A data type for representing enumerations of key-value pairs
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            hint:
              type: string
              description: 'A usage hint for this enumeration, possible values are: radio, select, checkbox'
              enum:
                - select
                - checkbox
                - radio
              default: select
            values:
              type: array
              description: A list of key-value pairs that comprise this enumeration
              items:
                type: object
                properties:
                  key:
                    type: string
                    description: The label of the enumeration option
                  value:
                    type: string
                    description: The value of the enumeration option
                required:
                  - key
                  - value
            defaultValue:
              type: string
              description: The default value for this enumeration. The value must be defined in the enumeration options.
            unique:
              type: boolean
              description: Whether the values for this field across all content fragments belonging to the specific model must be unique. Not applicable to enumeration fields with multiple values and only applicable on the select type.
              default: false
            placeholder:
              type: string
          required:
            - values
    TagModelField:
      description: A data type for storing tag references
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            placeholder:
              type: string
            root:
              $ref: '#/components/schemas/Path'
              description: The root path from which tags can be referenced
    JsonModelField:
      description: Defines the properties of a json model field
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            placeholder:
              type: string
            translatable:
              type: boolean
    CompositeModelField:
      description: A data type for embedding structured data into a single fragment
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelField'
        - type: object
          properties:
            modelIds:
              description: |
                Resolved list of model IDs that determine the allowed structures for items
                in this composite field. Each item can use one of these models to define
                its fields. When `tags` is set, this list also includes models discovered
                via tag resolution at read time.
              type: array
              items:
                $ref: '#/components/schemas/Base64URLId'
            tags:
              description: |
                An array of Content Fragment Model Tags. Any CF model carrying one of these
                tags is dynamically added to the allowed-models set, in addition to any
                explicit IDs in `modelIds`. New models tagged later are picked up
                automatically without editing this field.
              type: array
              items:
                $ref: '#/components/schemas/TagId'
    DataType:
      type: string
      description: Type of data stored in the field.
      enum:
        - text
        - long-text
        - number
        - float-number
        - date-time
        - date
        - time
        - boolean
        - enumeration
        - tag
        - content-fragment
        - content-reference
        - json
        - composite
    PreviewStatus:
      type: string
      x-audience: cloud
      deprecated: true
      enum:
        - IN_SYNC
        - OUT_OF_SYNC
      readOnly: true
    Tag:
      description: A representation of a tag.
      type: object
      readOnly: true
      properties:
        id:
          type: string
          description: Short tag ID.
          minLength: 1
        title:
          type: string
          description: Title that should be displayed instead of the tag name or tag id.
        i18n:
          description: Localised title and title path variants.
          type: array
          items:
            type: object
            properties:
              locale:
                type: string
                minLength: 2
                description: A RFC 5646 locale tag.
              title:
                type: string
                description: The localised title
              titlePath:
                type: string
                description: The localised title variant.
            minItems: 0
        titlePath:
          type: string
          description: Title variant of the tag ID.
        name:
          type: string
          description: The tag name.
        path:
          type: string
          description: Full absolute path of a tag.
        description:
          type: string
          description: Optional description for a tag.
      required:
        - id
        - i18n
    ContentFragmentModelListItem:
      type: object
      description: |
        Fields which are not required will get populated based on the level of projection selected in the request:
          * `minimal` - only the required properties will be populated
          * `summary` - the Content Fragment Model's fields will not be populated
          * `full` - all the properties of the model will be populated
      properties:
        id:
          $ref: '#/components/schemas/Base64URLId'
        path:
          allOf:
            - $ref: '#/components/schemas/ContentFragmentModelPath'
          description: The path where this model is currently stored.
        name:
          type: string
          description: A human-readable name for this model.
          minLength: 1
        technicalName:
          type: string
          readOnly: true
          description: The technical name of the model.
        etag:
          allOf:
            - $ref: '#/components/schemas/ETag'
          description: The current entity tag for the selected Content Fragment Model.
        description:
          type: string
          description: A human-readable description for this model.
        created:
          $ref: '#/components/schemas/AuthoringInfo'
        modified:
          $ref: '#/components/schemas/AuthoringInfo'
        published:
          $ref: '#/components/schemas/AuthoringInfo'
        locked:
          type: boolean
          description: |
            If a model is locked, then no edits can be performed on this model,
            except for unlocking it.
            If this field is not populated, it means that the check was not executed in the backend.
        status:
          $ref: '#/components/schemas/ContentFragmentModelStatus'
        replicationStatus:
          $ref: '#/components/schemas/ReplicationStatus'
        previewReplicationStatus:
          $ref: '#/components/schemas/PreviewReplicationStatus'
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ContentFragmentModelField'
        previewStatus:
          $ref: '#/components/schemas/PreviewStatus'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
        previewUrlPattern:
          x-audience: cloud
          type: string
          format: url
          description: Preview URL Pattern for the given Model
        tagsCount:
          type: integer
          format: int32
          description: The number of metadata tags associated with the content fragment model.
      required:
        - id
        - path
        - name
    ContentFragmentModelListResult:
      description: |
        Paginated collection of content fragment models.
      type: object
      properties:
        items:
          description: List of Content Fragment Models
          type: array
          items:
            $ref: '#/components/schemas/ContentFragmentModelListItem'
        cursor:
          $ref: '#/components/schemas/Cursor'
    ProblemDetails:
      description: A [RFC7807](https://www.rfc-editor.org/rfc/rfc7807) JSON Problem Details Object
      type: object
      properties:
        type:
          type: string
          description: A URI reference [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) to a URL, which, when dereferenced, provides human readable documentation for the problem type.  The problem type may be equivalent to the `status` or may be a "sub-type".  This URI is not intended to be parsed by clients; rather it should be treated as an opaque string that uniquely represents the error condition as-is.
          minLength: 1
        title:
          type: string
          description: A short, human-readable summary of the problem type.
          minLength: 1
        status:
          type: integer
          description: The HTTP status code ([RFC9110], Section 15) generated by the origin server for this occurrence of the problem.
          minLength: 1
        detail:
          type: string
          description: A human-readable explanation specific to this occurrence of the problem.
          minLength: 1
        requestId:
          type: string
          description: |
            A unique identifier that is assigned to the request, either by the API caller or by the service itself.
          minLength: 1
      required:
        - type
        - title
        - status
        - detail
    CreateContentFragmentModel:
      description: The request payload for creating a new Content Fragment Model.
      type: object
      properties:
        configurationFolder:
          type: string
          description: The configuration folder where the model should be created.
        name:
          type: string
          description: A human-readable name for this model.
          minLength: 1
        technicalName:
          type: string
          description: |
            Optional technical name used for storing the Content Fragment Model.
            If omitted, it will be generated from the 'name' property (e.g., spaces replaced with hyphens).
            It cannot contain the characters: / : [ ] * | \t \r \n.
            If a model with the same technical name already exists in the target folder, an error will be returned due to the conflict.
          pattern: ^[^\/:\[\]|*]*$
        description:
          type: string
          description: A human-readable description for this model.
        locked:
          type: boolean
          description: |
            If a model is locked, then no edits can be performed on this model,
            except for unlocking it.
        status:
          $ref: '#/components/schemas/ContentFragmentModelStatus'
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ContentFragmentModelField'
        previewUrlPattern:
          x-audience: cloud
          type: string
          format: url
          description: Preview URL Pattern for the given Model
      required:
        - name
      example:
        name: A simple CFM
        description: This is a simple CFM
        locked: true
        status: enabled
        fields:
          - type: text
            name: title
            label: Title
            required: false
            multiple: false
            maxLength: 255
            validationType: none
          - type: text
            name: slug
            label: Slug
            description: A short path to be used to uniquely identify the article. Can be used for pathing in client applications.
            required: true
            multiple: false
            maxLength: 255
            validationType: custom
            customValidationRegex: ^[a-z0-9\-_]{5,40}$
            customErrorMessage: Slug must be at least 5 characters in length, lower case, using only letters and numbers and no spaces. Only special characters that can be used are dashes and underscore.
        previewUrlPattern: http://localhost:4502/${contentFragment.model.name}/${contentFragment.id}.html
    CreateContentFragmentModels:
      description: The request payload for creating multiple Content Fragment Models.
      type: object
      properties:
        configurationFolder:
          type: string
          description: |
            The configuration folder where the models should be created.
            If both `configurationFolder` and `models.configurationFolder` are provided,
            the latter will take precedence.
        locked:
          type: boolean
          description: |
            If the models are locked, then no edits can be performed on them,
            except for unlocking them.
            If both `locked` and `models.locked` are provided, the latter will take
            precedence.
          default: false
        status:
          description: |
            The status of the models to be created. Default is "enabled".
          $ref: '#/components/schemas/ContentFragmentModelStatus'
        models:
          type: array
          items:
            $ref: '#/components/schemas/CreateContentFragmentModel'
    ContentFragmentModelIdentifier:
      readOnly: true
      type: object
      description: Minimal information about a Content Fragment Model.
      properties:
        id:
          $ref: '#/components/schemas/Base64URLId'
        path:
          allOf:
            - $ref: '#/components/schemas/ContentFragmentModelPath'
          description: The path where this model is currently stored.
          minLength: 1
        name:
          type: string
          description: A human-readable name for this model.
          minLength: 1
        technicalName:
          type: string
          readOnly: true
          description: The technical name of the model.
        title:
          type: string
          description: Content fragment model title.
          deprecated: true
        description:
          type: string
          description: Content fragment model description.
        tagIds:
          type: array
          description: The ids of the metadata tags associated with this content fragment model
          items:
            $ref: '#/components/schemas/TagId'
      required:
        - id
        - path
        - name
      example:
        id: L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL2Etc2ltcGxlLWNmbQ
        path: /conf/global/settings/dam/cfm/models/a-simple-cfm
        name: A simple CFM
    ContentFragmentModel:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/Base64URLId'
        path:
          allOf:
            - $ref: '#/components/schemas/ContentFragmentModelPath'
          description: The path where this model is currently stored.
        name:
          type: string
          description: A human-readable name for this model.
          minLength: 1
        technicalName:
          type: string
          readOnly: true
          description: The technical name of the model.
        etag:
          allOf:
            - $ref: '#/components/schemas/ETag'
          description: The current entity tag for the selected Content Fragment Model.
        description:
          type: string
          description: A human-readable description for this model.
        created:
          $ref: '#/components/schemas/AuthoringInfo'
        modified:
          $ref: '#/components/schemas/AuthoringInfo'
        published:
          $ref: '#/components/schemas/AuthoringInfo'
        locked:
          type: boolean
          description: |
            If a model is locked, then no edits can be performed on this model,
            except for unlocking it.
          default: false
        status:
          $ref: '#/components/schemas/ContentFragmentModelStatus'
        replicationStatus:
          $ref: '#/components/schemas/ReplicationStatus'
        previewReplicationStatus:
          $ref: '#/components/schemas/PreviewReplicationStatus'
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ContentFragmentModelField'
        previewStatus:
          $ref: '#/components/schemas/PreviewStatus'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
        previewUrlPattern:
          x-audience: cloud
          type: string
          format: url
          description: Preview URL Pattern for the given Model
      required:
        - id
        - path
        - name
        - created
        - locked
        - status
        - fields
      example:
        id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvYWR2ZW50dXJl
        path: /conf/wknd-shared/settings/dam/cfm/models/adventure
        name: Adventure
        etag: eddd95e986a7aff0500f0649bcf6604c
        description: ''
        created:
          at: '2023-08-02T16:01:34.582+03:00'
          by: admin
        modified:
          at: '2022-06-01T10:17:43.668-07:00'
          by: admin
        locked: false
        status: enabled
        previewStatus: IN_SYNC
        fields:
          - type: text
            name: title
            label: Title
            required: true
            multiple: false
            maxLength: 255
            validationType: none
          - type: text
            name: slug
            label: Slug
            description: A short path to uniquely identify the Adventure. Can be used for pathing in client applications.
            required: true
            multiple: false
            maxLength: 255
            validationType: custom
            customValidationRegex: ^[a-z0-9\-_]{5,40}$
            customErrorMessage: Slug must be at least 5 characters in length, lower case, using only letters and numbers and no spaces. Only special characters that can be used are dashes and underscore..
          - type: long-text
            name: description
            label: Description
            description: An overview of the trip.
            required: false
            multiple: false
            mimeType: text/html
          - type: enumeration
            name: adventureType
            label: Adventure Type
            required: false
            multiple: true
            hint: select
            values:
              - key: Day Trip
                value: Day Trip
              - key: Overnight Trip
                value: Overnight Trip
              - key: Training Session
                value: Training Session
            placeholder: Select the type of adventure
          - type: text
            name: tripLength
            label: Trip Length
            required: false
            multiple: false
            maxLength: 255
            validationType: none
          - type: enumeration
            name: activity
            label: Activity
            required: false
            multiple: true
            hint: select
            values:
              - key: Camping
                value: Camping
              - key: Surfing
                value: Surfing
              - key: Skiing
                value: Skiing
              - key: Cycling
                value: Cycling
              - key: Hiking
                value: Hiking
              - key: Skateboarding
                value: Skateboarding
              - key: Rock Climbing
                value: Rock Climbing
              - key: Running
                value: Running
              - key: Snowboarding
                value: Snowboarding
              - key: Social
                value: Social
            placeholder: Select the activity
          - type: number
            name: groupSize
            label: Group Size
            description: Group size
            required: false
            multiple: false
            min: 1
          - type: enumeration
            name: difficulty
            label: Difficulty
            required: false
            multiple: true
            hint: select
            values:
              - key: Beginner
                value: Beginner
              - key: Intermediate
                value: Intermediate
              - key: Advanced
                value: Advanced
              - key: Expert
                value: Expert
            placeholder: Select the difficulty level
          - type: float-number
            name: price
            label: Price
            description: Price of the Adventure
            required: false
            multiple: false
            defaultValue: 100
          - type: content-reference
            name: primaryImage
            label: Primary Image
            required: false
            multiple: false
            showThumbnail: false
            root: /content/dam/wknd
            allowedContentTypes:
              - image
          - type: long-text
            name: itinerary
            label: Itinerary
            required: false
            multiple: false
            mimeType: text/html
          - type: long-text
            name: gearList
            label: What to Bring
            required: false
            multiple: false
            mimeType: text/html
        tags:
          - id: wknd-shared:season/summer
            title: Summer
            i18n: []
            titlePath: 'WKND Shared : Season / Summer'
            name: summer
            path: /content/cq:tags/wknd-shared/season/summer
            description: ''
          - id: wknd-shared:season/spring
            title: Spring
            i18n: []
            titlePath: 'WKND Shared : Season / Spring'
            name: spring
            path: /content/cq:tags/wknd-shared/season/spring
            description: ''
        previewUrlPattern: http://localhost:4502/${contentFragment.model.name}/${contentFragment.id}.html
    JSONPatchOperation:
      type: object
      description: Base schema for a JSON Patch operation
      discriminator:
        propertyName: op
        mapping:
          add: '#/components/schemas/AddOperation'
          copy: '#/components/schemas/CopyOperation'
          move: '#/components/schemas/MoveOperation'
          remove: '#/components/schemas/RemoveOperation'
          replace: '#/components/schemas/ReplaceOperation'
          test: '#/components/schemas/TestOperation'
      properties:
        op:
          type: string
          description: The operation to perform
          enum:
            - add
            - copy
            - move
            - remove
            - replace
            - test
      required:
        - op
    PatchValue:
      description: The information to place at the location indicated by the `path` parameter
      oneOf:
        - type: string
        - type: number
        - type: array
          items: {}
        - type: object
        - type: boolean
    AddOperation:
      type: object
      description: Adds the contents of the `value` parameter to the location indicated by the `path` parameter.
      additionalProperties: false
      allOf:
        - $ref: '#/components/schemas/JSONPatchOperation'
        - type: object
          properties:
            path:
              description: The location where information should be added
              type: string
              minLength: 1
            value:
              $ref: '#/components/schemas/PatchValue'
      required:
        - path
        - value
      example:
        op: add
        path: /dc:title
        value: Flower Photo
    CopyOperation:
      type: object
      description: Copies information from the location described by the `from` parameter to the location described by the `path` parameter.
      additionalProperties: false
      allOf:
        - $ref: '#/components/schemas/JSONPatchOperation'
        - type: object
          properties:
            from:
              description: A path that points to the entity to be copied
              type: string
              minLength: 1
            path:
              description: A path that points to the location where the entity is to be copied to
              type: string
              minLength: 1
      required:
        - from
        - path
      example:
        op: copy
        from: /dc:title
        path: /custom:title
    MoveOperation:
      type: object
      description: Move an entity from the location described by the `from` parameter to the location described by the `path` parameter. This operation is most often used to rename a property.
      additionalProperties: false
      allOf:
        - $ref: '#/components/schemas/JSONPatchOperation'
        - type: object
          properties:
            from:
              description: A path that points to the entity to be moved
              type: string
              minLength: 1
            path:
              description: A path that points to the location where the entity is to be moved to
              type: string
              minLength: 1
      required:
        - from
        - path
      example:
        op: move
        from: /cameraLocation
        path: /cameraPosition
    RemoveOperation:
      type: object
      description: Remove the entity at the location pointed to by the `path` parameter.
      additionalProperties: false
      allOf:
        - $ref: '#/components/schemas/JSONPatchOperation'
        - type: object
          properties:
            path:
              description: A path that points to the entity to be removed
              type: string
              minLength: 1
      required:
        - path
      example:
        op: remove
        path: /cameraLocation
    ReplaceOperation:
      type: object
      description: Replaces information at the location indicated by the `path` parameter with the contents of the `value` parameter.
      additionalProperties: false
      allOf:
        - $ref: '#/components/schemas/JSONPatchOperation'
        - type: object
          properties:
            path:
              description: The location where the information should be replaced
              type: string
              minLength: 1
            value:
              $ref: '#/components/schemas/PatchValue'
      required:
        - path
        - value
      example:
        op: replace
        path: /dc:title
        value: Sun Flower Photo
    TestOperation:
      type: object
      description: |
        Compares the contents of the `value` parameter with the value at the location indicated by the `path` parameter. `test` operations can be
        included in a `PATCH` request to validate that some condition is true before applying the transformations included in the `test`
        operation(s).  If any of the `test`s evaluate to false, a 412 response will be returned.
      additionalProperties: false
      allOf:
        - $ref: '#/components/schemas/JSONPatchOperation'
        - type: object
          properties:
            path:
              description: The location of the information to use for comparison
              type: string
              minLength: 1
            value:
              $ref: '#/components/schemas/PatchValue'
      required:
        - path
        - value
      example:
        op: test
        path: /dc:title
        value: Sun Flower Photo
    JSONPatch:
      type: array
      description: |
        JSON Patch defines a JSON document structure for expressing a
        sequence of operations to apply to a JavaScript Object Notation
        (JSON) document; it is suitable for use with the HTTP PATCH method.
        The `application/json-patch+json` media type is used to identify such
        patch documents.

        For more details check [RFC 6902](https://www.rfc-editor.org/rfc/rfc6902).
      items:
        $ref: '#/components/schemas/JSONPatchOperation'
      example:
        - op: test
          path: /dc:title
          value: old value
        - op: replace
          path: /dc:title
          value: new value
        - op: copy
          from: /dc:title
          path: /custom:title
    ContentFragmentModelPublishRequest:
      type: object
      properties:
        ids:
          type: array
          description: The list of content fragment model ids.
          items:
            $ref: '#/components/schemas/Base64URLId'
          minItems: 1
          maxItems: 50
          uniqueItems: true
        agentId:
          type: string
          description: The agent id used for publishing the content fragment models.
          default: publish
        filterAllowedModelIdsByStatus:
          type: array
          description: |
            The status of the referenced models. A model is in `draft` as soon as it's
            created, unless the user specifically marks the model as `enabled`.
            A model is in `disabled` state only when a user explicitly disables
            the model.
          items:
            enum:
              - ENABLED
              - DISABLED
              - DRAFT
          uniqueItems: true
        workflowModelId:
          type: string
          default: /etc/workflow/models/scheduled_model_activation_with_references
          description: The workflow model id used for initiating the workflow instance to handle the publication. AEM provides the designated model `/etc/workflow/models/scheduled_model_activation_with_references` for publishing contents including references.
        workflowTitle:
          type: string
          description: A freely defined non-empty string used to identify the workflow when it executes.
        scheduledTime:
          type: integer
          format: int64
          description: The scheduled time as an epoch timestamp.
      required:
        - ids
        - filterAllowedModelIdsByStatus
      example:
        ids:
          - L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvYXJ0aWNsZQ==
          - L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvYWR2ZW50dXJl
        filterAllowedModelIdsByStatus:
          - DRAFT
          - ENABLED
        workflowModelId: /etc/workflow/models/scheduled_model_activation_with_references
        workflowTitle: Workflow Title
        scheduledTime: 1635244063701
    UUID:
      description: Resource unique identifier
      type: string
      format: uuid
      example: 49af775d-0e7a-46c3-913d-00f762528373
    ContentFragmentPath:
      type: string
      pattern: ^\/content\/dam(\/.*)?$
      description: A valid path to a Content Fragment resource.
    WorkflowStatus:
      type: string
      description: |
        The workflow status of the entity:
          - `SUCCESS_TRIGGERED` - the processing of the entity is triggered successfully by the workflow
          - `ERROR_NOT_FOUND` - the entity was not found
          - `ERROR_REFERENCED` - the entity is referenced by another entity.
          - `ERROR_FORBIDDEN` - the user does not have the necessary permissions to perform the operation.
          - `ERROR_INVALID` - indicates that a content fragment or its references failed validation during the pre-validation check, meaning it cannot be safely published.
      enum:
        - SUCCESS_TRIGGERED
        - ERROR_NOT_FOUND
        - ERROR_REFERENCED
        - ERROR_FORBIDDEN
        - ERROR_INVALID
    PublishStatus:
      type: object
      description: |
        A publish or unpublish operation can fail for an individual Content Fragment.
        This status is returned in the response of a bulk publish or unpublish operation.
      properties:
        id:
          $ref: '#/components/schemas/UUID'
        path:
          $ref: '#/components/schemas/ContentFragmentPath'
        status:
          $ref: '#/components/schemas/WorkflowStatus'
        invalidResources:
          type: array
          items:
            $ref: '#/components/schemas/Path'
          description: |
            List of resource paths that failed validation. This includes both the main content fragment paths and any associated reference paths (direct or indirect) that were found to be invalid.
            This property is relevant when the status is ERROR_INVALID.
          uniqueItems: true
    PublishResponse:
      type: object
      properties:
        workflowInstanceId:
          $ref: '#/components/schemas/Path'
          description: |
            The workflow instance id. Can be used to monitor the status of the given publication workflow using the Workflow REST API.
            In case no workflow is started because all fragments cannot be published, this property is not set.
        items:
          type: array
          items:
            $ref: '#/components/schemas/PublishStatus'
      example:
        workflowInstanceId: /var/workflow/instances/server0/2022-01-21/scheduled_activation_with_references_23
        items:
          - path: /content/dam/fragment
            status: SUCCESS_TRIGGERED
          - path: /content/dam/missing_fragment
            status: ERROR_NOT_FOUND
          - path: /content/dam/referenced_fragment
            status: ERROR_REFERENCED
    ScheduledPublicationStatusModelsRequest:
      type: object
      properties:
        ids:
          type: array
          description: The list of Content Fragment Model IDs.
          items:
            $ref: '#/components/schemas/Base64URLId'
          uniqueItems: true
          maxItems: 50
          minItems: 1
      required:
        - ids
    ScheduledPublicationStatus:
      description: Details of Scheduled Publish operation for a Content Fragment.
      type: object
      properties:
        action:
          type: string
          description: One of publishing actions.
          enum:
            - PUBLISH
            - UNPUBLISH
        status:
          type: string
          description: Operation status.
          enum:
            - PENDING
            - SCHEDULED
            - QUEUED
        scheduledBy:
          type: string
          description: User performing the scheduling of the operation.
        scheduledDate:
          type: string
          format: date-time
          description: Moment when operation was scheduled.
      example:
        action: PUBLISH
        status: PENDING
        scheduledBy: admin
        scheduledDate: '2023-08-04T12:11:09.120Z'
    ScheduledPublicationStatusModelsMapping:
      type: object
      description: |
        The Scheduled Publication Status of a Content Fragment Model is returned along with the Content Fragment Model ID.
      properties:
        id:
          $ref: '#/components/schemas/Base64URLId'
        scheduledPublicationStatus:
          $ref: '#/components/schemas/ScheduledPublicationStatus'
    ScheduledPublicationStatusModelsListResult:
      description: |
        Collection of scheduled publication statuses for a list of Content Fragment Models.
      type: object
      properties:
        items:
          description: |
            List of Content Fragment Model Scheduled Publication Statuses corresponding to each Content Fragment Model ID provided.
            If a Content Fragment Model is not found or a Content Fragment Model Status for one of the given IDs is not found, it will be missing from the response.
          type: array
          items:
            $ref: '#/components/schemas/ScheduledPublicationStatusModelsMapping'
    TagList:
      type: object
      description: A list of tags.
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
      required:
        - items
      example:
        items:
          - id: wknd-shared:season/summer
            title: Summer
            i18n: []
            titlePath: 'WKND Shared : Season / Summer'
            name: summer
            path: /content/cq:tags/wknd-shared/season/summer
            description: A tag used for summer related content.
          - id: wknd-shared:season/spring
            title: Spring
            i18n: []
            titlePath: 'WKND Shared : Season / Spring'
            name: spring
            path: /content/cq:tags/wknd-shared/season/spring
            description: A tag used for spring related content.
    TagsRequest:
      type: object
      properties:
        tags:
          type: array
          description: List of tag IDs to be added to the Content Fragment
          items:
            $ref: '#/components/schemas/TagId'
          minItems: 1
      example:
        tags:
          - wknd-shared:season/summer
          - wknd-shared:season/spring
      required:
        - tags
    Element:
      type: object
      description: Common base interface for any UI schema element.
      discriminator:
        propertyName: type
        mapping:
          Control: '#/components/schemas/Control'
          HorizontalLayout: '#/components/schemas/HorizontalLayout'
          VerticalLayout: '#/components/schemas/VerticalLayout'
          Group: '#/components/schemas/GroupLayout'
          Category: '#/components/schemas/Category'
          Categorization: '#/components/schemas/Categorization'
      properties:
        type:
          description: Type of UI Schema element
          type: string
          enum:
            - Control
            - HorizontalLayout
            - VerticalLayout
            - Group
            - Category
            - Categorization
        options:
          $ref: '#/components/schemas/Option'
        rule:
          type: object
          description: |
            Rules allow for dynamic aspects for a form, e.g. by hiding or disabling UI schema elements.
          properties:
            effect:
              $ref: '#/components/schemas/Effect'
            condition:
              type: object
              description: |
                The condition of the rule to decide if the associated effect should be applied.
              properties:
                scope:
                  $ref: '#/components/schemas/Scope'
                schema:
                  $ref: '#/components/schemas/Operation'
              required:
                - scope
                - schema
          required:
            - effect
            - condition
      required:
        - type
    Scope:
      type: string
      description: |
        The mandatory scope property expects a JSON reference value.
        It defines to which property of the data the control should be bound to.
        It can be bound to multiple properties by using the "#" value.
      minLength: 1
      example:
        - scope: '#/properties/name'
        - scope: '#/properties/age'
        - scope: '#'
    Control:
      type: object
      description: |
        A control is usually displaying the value of one property from the data in a UI element such as an input field. 
        The scope property of the control determines to which part of the schema the control should be bound.
      allOf:
        - $ref: '#/components/schemas/Element'
        - type: object
          properties:
            label:
              type: string
              description: |
                By default, controls use the name of property they point to as a label. 
                You can customize this behaviour by specifying a label property.
              minLength: 1
            scope:
              $ref: '#/components/schemas/Scope'
          required:
            - scope
    Layout:
      type: object
      description: Represents a layout element which can order its children in a specific way.
      allOf:
        - $ref: '#/components/schemas/Element'
        - type: object
          properties:
            elements:
              type: array
              items:
                $ref: '#/components/schemas/Element'
          required:
            - elements
    HorizontalLayout:
      type: object
      description: A layout which orders its child elements horizontally (i.e. from left to right).
      allOf:
        - $ref: '#/components/schemas/Layout'
    VerticalLayout:
      type: object
      description: A layout which orders its child elements vertically (i.e. from top to bottom).
      allOf:
        - $ref: '#/components/schemas/Layout'
    GroupLayout:
      type: object
      description: A group resembles a vertical layout, but features an additional mandatory `label`. This layout is useful when grouping different elements by a certain criteria.
      allOf:
        - $ref: '#/components/schemas/Layout'
        - type: object
          properties:
            label:
              type: string
              description: The label property defines an additional string that is used to describe the elements of the Group.
              minLength: 1
          required:
            - label
    Category:
      type: object
      description: |
        The category layout itself acts as a container and has an `elements` of its own 
        as well as a `label` that describes the contained data.
      allOf:
        - $ref: '#/components/schemas/Layout'
        - type: object
          properties:
            label:
              type: string
              minLength: 1
          required:
            - label
    Categorization:
      type: object
      description: Categorizations are typically used to bundle related data using Category elements, for instance by means of Tabs.
      allOf:
        - $ref: '#/components/schemas/Element'
        - type: object
          properties:
            label:
              type: string
              minLength: 1
            elements:
              type: array
              items:
                $ref: '#/components/schemas/Category'
              minItems: 1
          required:
            - elements
    Option:
      type: object
      description: |
        Additional options for a UI Schema element.
        The options which are not defined in this schema must have a name that starts with 'x-'.
      properties:
        collapsible:
          type: boolean
          description: If set to `true`, the element to which this option is applied will be collapsible.
          default: false
        tooltip:
          type: string
          description: A tooltip to be displayed when hovering over the element.
        expanded:
          type: boolean
          description: For an element that is collapsible, this option indicates whether the element is expanded or collapsed.
          default: true
        format:
          type: string
          description: The format of the element to which this option is applied. This is a hint for the UI to render the element in a specific way.
      additionalProperties: true
    Effect:
      description: |
        The effect that is applied to the encompassing element if the condition is met.
      type: string
      enum:
        - HIDE
        - SHOW
        - ENABLE
        - DISABLE
    Operation:
      type: object
      description: The operation used to evaluate the rule
      allOf:
        - $ref: '#/components/schemas/BaseOperation'
        - type: object
          properties:
            required:
              $ref: '#/components/schemas/Required'
    BaseOperation:
      type: object
      description: The operation used to evaluate the rule, which is mapped to a specific property
      properties:
        contains:
          description: The operation that must be present for the scoped property
          $ref: '#/components/schemas/Operation'
        const:
          description: Matching the scope to a specific value
          oneOf:
            - type: string
            - type: number
            - type: boolean
        enum:
          description: Matching the scope to one of the values in the array
          type: array
          items:
            type: string
        not:
          $ref: '#/components/schemas/Operation'
        minimum:
          type: integer
          format: int64
          description: The minimum value for the scoped property
        maximum:
          type: integer
          format: int64
          description: The maximum value for the scoped property
        minLength:
          type: integer
          format: int64
          description: The minimum length for the value of the scoped property
        maxLength:
          type: integer
          format: int64
          description: The maximum length for the value for the scoped property
        exclusiveMinimum:
          type: integer
          format: int64
          description: The exclusive minimum value for the scoped property
        exclusiveMaximum:
          type: integer
          format: int64
          description: The exclusive maximum value for the scoped property
        multipleOf:
          type: integer
          format: int64
          description: The value of the scoped property must be a multiple of the number
        pattern:
          type: string
          description: The pattern the scoped property must match
        minItems:
          type: integer
          format: int64
          description: The minimum size of the array scoped property
        maxItems:
          type: integer
          format: int64
          description: The maximum size of the array scoped property
        uniqueItems:
          type: boolean
          description: In case the scoped property is an array, it must contain only unique values
    Required:
      description: A list of properties that must contain at least one value in order for the Rule to be enforced
      type: array
      items:
        type: string
    Properties:
      type: string
      nullable: true
      additionalProperties:
        $ref: '#/components/schemas/BaseOperation'
    MultiPropertiesOperation:
      type: object
      description: |
        The operation used to evaluate the rule which doesn't have to be mapped to a specific property 
        and can be applied to multiple properties at once
      properties:
        properties:
          description: |
            A mapping formed by the property's name 
            and the operations used to evaluate the conditions imposed upon the property
          $ref: '#/components/schemas/Properties'
        required:
          description: A list of properties that must contain values for the condition to be considered fulfilled
          $ref: '#/components/schemas/Required'
    Constraint:
      type: object
      properties:
        if:
          $ref: '#/components/schemas/MultiPropertiesOperation'
        then:
          $ref: '#/components/schemas/MultiPropertiesOperation'
        else:
          $ref: '#/components/schemas/MultiPropertiesOperation'
      required:
        - if
        - then
    UISchema:
      type: object
      description: A UI Schema and its associated metadata
      properties:
        uiSchema:
          $ref: '#/components/schemas/Element'
        staticSchema:
          description: |
            A schema representation of a content fragment model's fields, containing the name of the
            model field, along with all constraints supported by the scoped field (i.e minLength, maxLength
            required) in json format
          type: object
        constraints:
          type: array
          items:
            $ref: '#/components/schemas/Constraint'
        modified:
          $ref: '#/components/schemas/AuthoringInfo'
    UISchemaPayload:
      type: object
      properties:
        uiSchema:
          $ref: '#/components/schemas/Element'
        constraints:
          type: array
          items:
            $ref: '#/components/schemas/Constraint'
    CopyContentFragmentModel:
      description: Request payload for copying a Content Fragment Model
      type: object
      properties:
        parentPath:
          description: |
            The configuration folder to which the Content Fragment Model should be copied. The provided destination path should already exist. If
            the destination path does not exist, the copy operation will not be performed and the system will return an error.
          type: string
          minLength: 1
        name:
          description: |
            This property allows you to specify a new name for the resource being copied.
            When a value is not provided the original name of the resource will be used. In case of resource conflicts in the 
            destination folder, the server will automatically generate an alternative resource name based on the provided value.
          type: string
      required:
        - parentPath
    References:
      type: string
      description: |
        This parameter defines how references will be retrieved for Content Fragments. The following options are available:
          * `direct` - only direct references will be collected; they will not be hydrated;
          * `direct-hydrated` - only direct references will be collected; they will be fully hydrated;
          * `all` - all references up to the maximum allowed depth will be collected; they will not be hydrated;
          * `all-hydrated` - all references up to the maximum allowed depth will be collected; they will be fully hydrated
          * `none` - no references will be collected

        Non-hydrated responses will only include the properties defined by the `BaseReference` type when embedding references. 
        Hydrated responses are defined by
        each implementation of the `BaseReference` type. In particular, for Content Fragment references the response will include the
        fragment's fields, variations, tags.
      enum:
        - direct
        - direct-hydrated
        - all
        - all-hydrated
        - none
      default: direct-hydrated
    AssetOrLaunchPath:
      type: string
      pattern: ^\/content\/(dam|launches)(\/.*)?$
      description: A valid path to a Content Fragment or Content Fragment launch resource.
    ContentFragmentStatus:
      description: Status of a Resource
      type: string
      readOnly: true
      enum:
        - NEW
        - DRAFT
        - PUBLISHED
        - MODIFIED
        - UNPUBLISHED
    ValidationMessage:
      type: object
      properties:
        property:
          description: JSON pointer to an invalid property
          type: string
        message:
          description: The reason for the invalid status.
          type: string
    ValidationStatus:
      type: array
      description: |
        Provides the validation status of the resource addressed by the current request.
        An empty or missing array means that the request or resources are valid.
      items:
        $ref: '#/components/schemas/ValidationMessage'
    ContentFragmentField:
      type: object
      description: A field value of one of the supported types.
      discriminator:
        propertyName: type
        mapping:
          text: '#/components/schemas/TextFragmentField'
          long-text: '#/components/schemas/LongTextFragmentField'
          number: '#/components/schemas/LongNumberFragmentField'
          float-number: '#/components/schemas/DoubleNumberFragmentField'
          boolean: '#/components/schemas/BooleanFragmentField'
          content-fragment: '#/components/schemas/FragmentReferenceFragmentField'
          content-reference: '#/components/schemas/ContentReferenceFragmentField'
          date: '#/components/schemas/DateFragmentField'
          time: '#/components/schemas/TimeFragmentField'
          date-time: '#/components/schemas/DateTimeFragmentField'
          enumeration: '#/components/schemas/EnumerationFragmentField'
          tag: '#/components/schemas/TagFragmentField'
          json: '#/components/schemas/JsonFragmentField'
          composite: '#/components/schemas/CompositeFragmentField'
      properties:
        name:
          type: string
          description: The name of the field.
        type:
          $ref: '#/components/schemas/DataType'
        multiple:
          type: boolean
          description: Whether the field has multiple values.
          default: false
        locked:
          description: |
            If set to true, the field cannot be edited. 
            In case of live copies, the field inherits its value from the source content fragment and cannot be edited.
          type: boolean
          default: false
      required:
        - name
        - type
    TextFragmentField:
      description: A field containing text up to 256 characters
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                type: string
    LongTextFragmentField:
      description: A field containing longer text, like a paragraph
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            mimeType:
              $ref: '#/components/schemas/MimeType'
            values:
              type: array
              items:
                type: string
    LongNumberFragmentField:
      description: A field containing long numbers
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              description: An array of values of one of the supported types.
              items:
                type: integer
                format: int64
    DoubleNumberFragmentField:
      description: A field containing fractional (double-precision) numbers
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                type: number
                format: double
    BooleanFragmentField:
      description: A field containing a boolean value
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                type: boolean
    FragmentOrLaunchIdentifier:
      type: string
      pattern: ^\/content\/(dam|launches)(\/.*)?$|^([0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12})$
      description: A valid path to a Content Fragment or Content Fragment launch resource or the fragment's UUID.
    FragmentReferenceFragmentField:
      description: A field containing references to Content Fragments
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                $ref: '#/components/schemas/FragmentOrLaunchIdentifier'
    RemoteAssetRepository:
      type: string
      description: The hostname of the remote repository where the asset is stored.
      minLength: 1
    URN:
      description: A URN schema object
      type: string
      pattern: ^urn:[a-z0-9][a-z0-9-]{0,31}:[a-z0-9()+,-.:=@;$_!*'%/?#]+$
      example: urn:aaid:aem:49af775d-0e7a-46c3-913d-00f762528373
    RemoteAssetProperties:
      type: object
      description: The properties of a remote asset reference
      properties:
        repository:
          $ref: '#/components/schemas/RemoteAssetRepository'
        assetId:
          description: The ID of the asset
          allOf:
            - $ref: '#/components/schemas/URN'
      required:
        - repository
        - assetId
      example:
        repository: delivery-p123456-e123456.adobeaemcloud.com
        assetId: urn:aaid:aem:1fb05fe4-c12b-4f85-b1ca-aa92cdbd6a62
    ContentReferenceUrl:
      type: string
      format: url
      description: The URL of the content reference
    AssetValue:
      anyOf:
        - $ref: '#/components/schemas/Path'
        - $ref: '#/components/schemas/UUID'
        - $ref: '#/components/schemas/RemoteAssetProperties'
        - $ref: '#/components/schemas/ContentReferenceUrl'
    ContentReferenceFragmentField:
      description: 'A field containing references to various content types like: plain text, rich text, content fragments, images, audio clips or video clips'
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                $ref: '#/components/schemas/AssetValue'
    DateFragmentField:
      description: A field containing a date with the format yyyy-MM-dd
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                type: string
                format: date
    TimeFragmentField:
      description: A field containing time information in the HH:mm:ss format
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                type: string
                format: time
    DateTimeFragmentField:
      description: A field containing an offset date-time with the format yyyy-MM-dd'T'HH:mm:ss±hh:mm
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                type: string
                format: date-time
    EnumerationFragmentField:
      description: A field containing enumeration keys defined in the model
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                type: string
    TagFragmentField:
      description: A field containing tag references
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                $ref: '#/components/schemas/TagId'
              uniqueItems: true
    JsonFragmentField:
      description: A field containing a JSON object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                type: object
    CompositeFragmentFieldData:
      description: The data for a composite content fragment field
      type: object
      properties:
        modelId:
          description: The ID of the model that determines the structure of the composite field
          $ref: '#/components/schemas/Base64URLId'
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ContentFragmentField'
    CompositeFragmentField:
      description: A field containing a composite structure
      allOf:
        - $ref: '#/components/schemas/ContentFragmentField'
        - type: object
          properties:
            values:
              type: array
              items:
                $ref: '#/components/schemas/CompositeFragmentFieldData'
    BaseReference:
      type: object
      description: Information about referenced resources.
      discriminator:
        propertyName: type
        mapping:
          asset: '#/components/schemas/AssetReference'
          content-fragment: '#/components/schemas/ContentFragmentReference'
          page: '#/components/schemas/PageReference'
          experience-fragment: '#/components/schemas/ExperienceFragmentReference'
      properties:
        name:
          description: Item name
          type: string
        fieldName:
          description: Name of the field that contains the reference.
          type: string
        type:
          $ref: '#/components/schemas/ReferenceType'
        title:
          type: string
          description: Reference title.
        path:
          $ref: '#/components/schemas/Path'
        created:
          $ref: '#/components/schemas/AuthoringInfo'
        modified:
          $ref: '#/components/schemas/AuthoringInfo'
        published:
          $ref: '#/components/schemas/AuthoringInfo'
        status:
          $ref: '#/components/schemas/ContentFragmentStatus'
        previewReplicationStatus:
          $ref: '#/components/schemas/PreviewReplicationStatus'
        previewStatus:
          $ref: '#/components/schemas/PreviewStatus'
      required:
        - type
        - path
      example:
        name: ian_provo.jpg
        fieldName: profilePicture
        type: asset
        path: /content/dam/wknd-shared/en/contributors/ian_provo.jpg
        created:
          at: '2023-08-02T16:01:47.765+03:00'
          by: admin
        status: DRAFT
        assetId: urn:aaid:aem:1fb05fe4-c12b-4f85-b1ca-aa92cdbd6a62
        repo:size: 251434
        dc:format: image/jpeg
        tiff:ImageWidth: 1152
        tiff:ImageHeight: 1152
    AssetReference:
      readOnly: true
      description: Minimal information about referenced asset, can be used to generate preview.
      allOf:
        - $ref: '#/components/schemas/BaseReference'
        - type: object
          properties:
            description:
              type: string
              description: Asset description.
            assetId:
              $ref: '#/components/schemas/URN'
              description: Asset unique identifier expressed as a URN.
            repo:size:
              type: integer
              format: int64
              description: Asset size (bytes).
            dc:format:
              type: string
              description: Asset mime type.
            tiff:ImageWidth:
              type: integer
              format: int64
              description: Asset width (if applicable).
            tiff:ImageHeight:
              type: integer
              format: int64
              description: Asset height (if applicable).
    ContentFragmentVariation:
      description: A representation of a Content Fragment Variation.
      type: object
      properties:
        name:
          description: Variation name
          type: string
          readOnly: true
        title:
          description: Variation title
          type: string
          minLength: 1
        description:
          description: Variation description.
          type: string
        fields:
          type: array
          description: Content fragment fields.
          items:
            $ref: '#/components/schemas/ContentFragmentField'
        tags:
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/Tag'
        validationStatus:
          $ref: '#/components/schemas/ValidationStatus'
        references:
          type: array
          description: The properties of the references associated with this variation
          items:
            $ref: '#/components/schemas/BaseReference'
          readOnly: true
        fieldTags:
          description: The properties of the tags contained in the fragment's tag fields
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/Tag'
        created:
          $ref: '#/components/schemas/AuthoringInfo'
        modified:
          $ref: '#/components/schemas/AuthoringInfo'
        card:
          $ref: '#/components/schemas/Card'
      required:
        - title
        - fields
        - tags
        - validationStatus
        - references
        - fieldTags
      example:
        name: another
        title: Summit 2023
        description: The Summit 2023 variation
        fields:
          - type: text
            name: firstName
            multiple: false
            values:
              - IanX
          - type: text
            name: lastName
            multiple: false
            values:
              - Provo
          - type: content-reference
            name: profilePicture
            multiple: false
            values:
              - /content/dam/wknd-shared/en/contributors/ian_provo.jpg
          - type: date-time
            name: birthDay
            multiple: false
            values: []
          - type: long-text
            name: biography
            multiple: false
            mimeType: text/html
            values: []
          - type: enumeration
            name: occupations
            multiple: true
            values:
              - Influencer
        tags: []
        validationStatus: []
        references:
          - type: asset
            name: ian_provo.jpg
            fieldName: profilePicture
            path: /content/dam/wknd-shared/en/contributors/ian_provo.jpg
            created:
              at: '2023-08-02T16:01:47.765+03:00'
              by: admin
            status: DRAFT
            assetId: urn:aaid:aem:1fb05fe4-c12b-4f85-b1ca-aa92cdbd6a62
            repo:size: 251434
            dc:format: image/jpeg
            tiff:ImageWidth: 1152
            tiff:ImageHeight: 1152
        fieldTags: []
    ContentFragmentReference:
      description: An information about referenced asset.
      allOf:
        - $ref: '#/components/schemas/BaseReference'
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/UUID'
              description: Content fragment unique identifier.
            references:
              type: array
              description: An array of this entry references
              items:
                $ref: '#/components/schemas/BaseReference'
            model:
              $ref: '#/components/schemas/ContentFragmentModelIdentifier'
            description:
              type: string
              description: Content fragment description.
            fields:
              type: array
              description: Content fragment fields.
              items:
                $ref: '#/components/schemas/ContentFragmentField'
            variations:
              type: array
              description: Content fragment variations.
              items:
                $ref: '#/components/schemas/ContentFragmentVariation'
            tags:
              type: array
              items:
                $ref: '#/components/schemas/Tag'
      required:
        - tags
        - variations
        - fields
    PageReference:
      description: An information about referenced page.
      allOf:
        - $ref: '#/components/schemas/BaseReference'
    ExperienceFragmentReference:
      description: An information about referenced page.
      allOf:
        - $ref: '#/components/schemas/BaseReference'
    ReferenceType:
      type: string
      description: Type of referenced resource
      enum:
        - content-fragment
        - experience-fragment
        - asset
        - page
    Card:
      type: object
      description: A representation of a card.
      properties:
        assets:
          type: array
          description: These assets are extracted from the fragment fields and can be used to display a preview of the fragment's content.
          items:
            $ref: '#/components/schemas/AssetValue'
        texts:
          type: array
          description: These texts are extracted from the fragment fields and can be used to display a preview of the fragment's content.
          items:
            type: string
    FragmentMetadataBase:
      description: Response containing Content Fragment base metadata properties.
      type: object
      properties:
        schemaId:
          type: string
          description: |
            The identifier of the metadata form linked to this fragment.
            The form is resolved from the fragment itself or its parent folder hierarchy.
            If no form is found up to the root folder, "default" is returned.
          example: default
    ContentFragmentListItem:
      description: A representation of a content fragment used when listing or searching for fragments.
      type: object
      properties:
        path:
          description: Content fragment or launch path.
          minLength: 1
          allOf:
            - $ref: '#/components/schemas/AssetOrLaunchPath'
        title:
          type: string
          description: The title of the Content Fragment.
          minLength: 1
        description:
          type: string
          description: Content fragment description.
        id:
          description: Content fragment unique identifier.
          minLength: 1
          allOf:
            - $ref: '#/components/schemas/UUID'
        created:
          $ref: '#/components/schemas/AuthoringInfo'
        modified:
          $ref: '#/components/schemas/AuthoringInfo'
        published:
          $ref: '#/components/schemas/AuthoringInfo'
        status:
          $ref: '#/components/schemas/ContentFragmentStatus'
        previewReplicationStatus:
          $ref: '#/components/schemas/PreviewReplicationStatus'
        previewStatus:
          $ref: '#/components/schemas/PreviewStatus'
        model:
          $ref: '#/components/schemas/ContentFragmentModelIdentifier'
        validationStatus:
          $ref: '#/components/schemas/ValidationStatus'
        checkedOutBy:
          type: string
          description: |
            The identifier of the user who checked out the Content Fragment.
            This property is only present when the fragment is checked out.
            When this field is absent, the fragment is not checked out.
          example: user
        fields:
          type: array
          description: Content fragment fields.
          items:
            $ref: '#/components/schemas/ContentFragmentField'
        variations:
          type: array
          description: Content fragment variations.
          items:
            $ref: '#/components/schemas/ContentFragmentVariation'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
        references:
          type: array
          description: The properties of the references associated with this fragment
          items:
            $ref: '#/components/schemas/BaseReference'
          readOnly: true
        fieldTags:
          description: The properties of the tags contained in the fragment's tag fields
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/Tag'
        etag:
          description: |
            The current entity tag for the selected Content Fragment. 
            This will be used ONLY for List and Search operations.
          allOf:
            - $ref: '#/components/schemas/ETag'
        tagsCount:
          type: integer
          format: int32
          description: The number of metadata tags associated with the fragment. This count is not related to field tags.
        card:
          $ref: '#/components/schemas/Card'
        metadata:
          $ref: '#/components/schemas/FragmentMetadataBase'
      required:
        - id
        - path
        - model
        - title
        - status
        - created
      example:
        path: /content/dam/wknd-shared/en/contributors/ian-provo
        title: Ian Provo
        description: ''
        id: 6d980e6a-c9e7-444b-af43-5503c46a061c
        created:
          at: '2023-08-02T16:01:48.275+03:00'
          by: admin
        modified:
          at: '2023-08-04T14:51:58.597+03:00'
          by: admin
        status: DRAFT
        fields:
          - type: text
            name: firstName
            multiple: false
            values:
              - Ian
          - type: text
            name: lastName
            multiple: false
            values:
              - Provo
          - type: content-reference
            name: profilePicture
            multiple: false
            values:
              - /content/dam/wknd-shared/en/contributors/ian_provo.jpg
          - type: date-time
            name: birthDay
            multiple: false
            values:
              - '1988-09-26T14:09:00-07:00'
          - type: long-text
            name: biography
            multiple: false
            mimeType: text/html
            values: []
          - type: enumeration
            name: occupations
            multiple: true
            values:
              - Influencer
              - Photographer
        variations:
          - name: another
            title: Another
            description: ''
            fields:
              - type: text
                name: firstName
                multiple: false
                values:
                  - IanX
              - type: text
                name: lastName
                multiple: false
                values:
                  - Provo
              - type: content-reference
                name: profilePicture
                multiple: false
                values:
                  - /content/dam/wknd-shared/en/contributors/ian_provo.jpg
              - type: date-time
                name: birthDay
                multiple: false
                values: []
              - type: long-text
                name: biography
                multiple: false
                mimeType: text/html
                values: []
              - type: enumeration
                name: occupations
                multiple: true
                values:
                  - Influencer
            tags: []
        tags:
          - id: wknd-shared:activity/social
            title: Social
            i18n: []
            titlePath: 'WKND Shared : Activity / Social'
            name: social
            path: /content/cq:tags/wknd-shared/activity/social
            description: ''
        references:
          - type: asset
            name: ian_provo.jpg
            fieldName: profilePicture
            path: /content/dam/wknd-shared/en/contributors/ian_provo.jpg
            created:
              at: '2023-08-02T16:01:47.765+03:00'
              by: admin
            status: DRAFT
            assetId: urn:aaid:aem:1fb05fe4-c12b-4f85-b1ca-aa92cdbd6a62
            repo:size: 251434
            dc:format: image/jpeg
            tiff:ImageWidth: 1152
            tiff:ImageHeight: 1152
        model:
          id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvYXV0aG9y
          path: /conf/wknd-shared/settings/dam/cfm/models/author
          name: Author
          title: Author
        validationStatus: []
        fieldTags: []
        etag: 79d1081c7b275f62a99ccd92828c4c83
    ContentFragmentListResult:
      description: |
        Paginated collection of content fragments.
      type: object
      properties:
        items:
          description: List of Content Fragments
          type: array
          items:
            $ref: '#/components/schemas/ContentFragmentListItem'
        cursor:
          $ref: '#/components/schemas/Cursor'
    CreateContentFragment:
      description: Request payload for creating a new Content Fragment
      type: object
      properties:
        title:
          type: string
          description: The title of the new Content Fragment.
          minLength: 1
        description:
          type: string
          description: The description of the new Content Fragment.
        modelId:
          $ref: '#/components/schemas/Base64URLId'
        parentPath:
          type: string
          description: |
            The folder path where the new Content Fragment will be created, relative to `/content/dam`.

            Examples:
            - `/wknd-shared/en/adventures` creates fragment at `/content/dam/wknd-shared/en/adventures`
            - `/my-site/content` creates fragment at `/content/dam/my-site/content`
          pattern: ^/?.*$
          example: /wknd-shared/en/adventures
        name:
          type: string
          description: |
            Optional parameter that represents the name used when storing the new Content Fragment.
            When missing, the value will be derived by the server from the `title` value.
        fields:
          type: array
          description: Data needed for populating the content fragment fields defined in the model
          items:
            $ref: '#/components/schemas/ContentFragmentField'
      example:
        title: Snowboarding
        name: snowboarding-cf
        description: This new CF is created with the new POST endpoint
        modelId: L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL3NpbXBsZS1jZg
        parentPath: /wknd-shared/en/adventures
        fields:
          - name: location
            type: text
      required:
        - title
        - parentPath
        - modelId
    FragmentMetadataField:
      description: A single metadata field of a Content Fragment, enriched with schema information.
      type: object
      properties:
        name:
          type: string
          description: The property name as defined in the metadata schema.
        type:
          type: string
          description: The JSON Schema data type of the property.
          enum:
            - string
            - integer
            - number
            - boolean
            - array
            - object
        value: {}
        title:
          type: string
          description: Human-readable display title from the metadata schema.
      required:
        - name
        - value
    FragmentMetadata:
      description: Response containing Content Fragment metadata properties.
      type: object
      nullable: true
      allOf:
        - $ref: '#/components/schemas/FragmentMetadataBase'
        - type: object
          properties:
            fields:
              type: array
              description: |
                All metadata fields of the Content Fragment.
                Each field includes the property name, its value, the data type, and a human-readable title.
              items:
                $ref: '#/components/schemas/FragmentMetadataField'
              example:
                - name: dc:title
                  type: string
                  value: Summer Campaign 2026
                  title: Title
                - name: version
                  type: integer
                  value: 3
                  title: Version
                - name: enabled
                  type: boolean
                  value: true
                  title: Enabled
    ContentFragment:
      description: A representation of a content fragment.
      type: object
      properties:
        path:
          description: Content fragment path.
          minLength: 1
          allOf:
            - $ref: '#/components/schemas/AssetOrLaunchPath'
        title:
          type: string
          description: The title of the Content Fragment.
          minLength: 1
        description:
          type: string
          description: Content fragment description.
        id:
          description: Content fragment unique identifier.
          allOf:
            - $ref: '#/components/schemas/UUID'
        created:
          $ref: '#/components/schemas/AuthoringInfo'
        modified:
          $ref: '#/components/schemas/AuthoringInfo'
        published:
          $ref: '#/components/schemas/AuthoringInfo'
        status:
          $ref: '#/components/schemas/ContentFragmentStatus'
        previewReplicationStatus:
          $ref: '#/components/schemas/PreviewReplicationStatus'
        fields:
          type: array
          description: Content fragment fields.
          items:
            $ref: '#/components/schemas/ContentFragmentField'
        previewStatus:
          $ref: '#/components/schemas/PreviewStatus'
        variations:
          type: array
          description: Content fragment variations.
          items:
            $ref: '#/components/schemas/ContentFragmentVariation'
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
        references:
          type: array
          description: The properties of the references associated with this fragment
          items:
            $ref: '#/components/schemas/BaseReference'
          readOnly: true
        model:
          $ref: '#/components/schemas/ContentFragmentModelIdentifier'
        checkedOutBy:
          type: string
          description: |
            The identifier of the user who checked out the Content Fragment.
            This property is only present when the fragment is checked out.
            When this field is absent, the fragment is not checked out.
          example: user
        validationStatus:
          $ref: '#/components/schemas/ValidationStatus'
        fieldTags:
          description: The properties of the tags contained in the fragment's tag fields
          type: array
          readOnly: true
          items:
            $ref: '#/components/schemas/Tag'
        card:
          $ref: '#/components/schemas/Card'
        metadata:
          type: object
          description: |
            Metadata information for the content fragment.
            Only present when includeMetadata=true query parameter is set.
          allOf:
            - $ref: '#/components/schemas/FragmentMetadata'
      required:
        - id
        - path
        - model
        - title
        - status
        - fields
        - created
        - validationStatus
        - references
        - tags
        - fieldTags
      example:
        path: /content/dam/wknd-shared/en/contributors/ian-provo
        title: Ian Provo
        description: ''
        id: 6d980e6a-c9e7-444b-af43-5503c46a061c
        created:
          at: '2023-08-02T16:01:48.275+03:00'
          by: admin
        modified:
          at: '2023-08-04T14:51:58.597+03:00'
          by: admin
        status: DRAFT
        fields:
          - type: text
            name: firstName
            multiple: false
            values:
              - Ian
          - type: text
            name: lastName
            multiple: false
            values:
              - Provo
          - type: content-reference
            name: profilePicture
            multiple: false
            values:
              - /content/dam/wknd-shared/en/contributors/ian_provo.jpg
          - type: date-time
            name: birthDay
            multiple: false
            values:
              - '1988-09-26T14:09:00-07:00'
          - type: long-text
            name: biography
            multiple: false
            mimeType: text/html
            values: []
          - type: enumeration
            name: occupations
            multiple: true
            values:
              - Influencer
              - Photographer
        variations:
          - name: another
            title: Another
            description: ''
            fields:
              - type: text
                name: firstName
                multiple: false
                values:
                  - IanX
              - type: text
                name: lastName
                multiple: false
                values:
                  - Provo
              - type: content-reference
                name: profilePicture
                multiple: false
                values:
                  - /content/dam/wknd-shared/en/contributors/ian_provo.jpg
              - type: date-time
                name: birthDay
                multiple: false
                values: []
              - type: long-text
                name: biography
                multiple: false
                mimeType: text/html
                values: []
              - type: enumeration
                name: occupations
                multiple: true
                values:
                  - Influencer
            tags: []
        tags:
          - id: wknd-shared:activity/social
            title: Social
            i18n: []
            titlePath: 'WKND Shared : Activity / Social'
            name: social
            path: /content/cq:tags/wknd-shared/activity/social
            description: ''
        references:
          - type: asset
            name: ian_provo.jpg
            fieldName: profilePicture
            path: /content/dam/wknd-shared/en/contributors/ian_provo.jpg
            created:
              at: '2023-08-02T16:01:47.765+03:00'
              by: admin
            status: DRAFT
            assetId: urn:aaid:aem:1fb05fe4-c12b-4f85-b1ca-aa92cdbd6a62
            repo:size: 251434
            dc:format: image/jpeg
            tiff:ImageWidth: 1152
            tiff:ImageHeight: 1152
        model:
          id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvYXV0aG9y
          path: /conf/wknd-shared/settings/dam/cfm/models/author
          name: Author
          title: Author
        checkedOutBy: user
        validationStatus: []
        fieldTags: []
        metadata:
          schemaId: default
          fields:
            - name: title
              type: string
              value: Ian Provo
              title: Title
            - name: description
              type: string
              value: Author profile
              title: Description
    Locale:
      type: string
      description: |
        A language tag used to identify the language of the content.
        The expected format is a language tag as defined in ISO 639-1 language codes.
        For example: "en" for English, "de" for German, "fr" for French, etc.
      minLength: 2
    UpdateContentFragment:
      description: Request payload for fully updating existing Content Fragment
      type: object
      properties:
        title:
          type: string
          description: Updated title of the  Content Fragment.
          minLength: 1
        description:
          type: string
          description: Updated description of the  Content Fragment.
        fields:
          type: array
          description: Updated fields on the Content Fragment.
          items:
            $ref: '#/components/schemas/ContentFragmentField'
      example:
        title: Snowboarding
        description: This new CF is created with the new PUT endpoint
        fields:
          - name: location
            type: text
            values:
              - Paris
      required:
        - title
    PatchReferences:
      type: string
      description: |
        This parameter defines how references will be handled when patching Content Fragments. The following options are available:
          * `none` - no references will be collected;
          * `direct` - only direct references will be collected;
          * `direct-hydrated` - only direct references will be collected; they will be fully hydrated.
        If the parameter is missing, the default value is `direct-hydrated`.
      enum:
        - none
        - direct
        - direct-hydrated
      default: direct-hydrated
    CheckoutState:
      type: object
      description: |
        Represents the checkout state of a Content Fragment. When a fragment is checked out, it is locked 
        to the current user, preventing other users from editing or checking out the fragment.
      properties:
        checkedOut:
          type: boolean
          description: |
            Indicates whether the fragment should be checked out (true) or checked in (false).
            - `true`: Checks out the fragment, creating an exclusive lock for the current user
            - `false`: Checks in the fragment, removing the exclusive lock
      required:
        - checkedOut
    ContentFragmentPreviewURL:
      description: |
        A `ContentFragmentPreviewURL` defines the URL at which a certain variation of the Content Fragment can be previewed.
      type: object
      properties:
        name:
          type: string
          description: Variation name
        url:
          type: string
          format: url
          description: Preview URL for the given Variation
      example:
        name: main
        url: https://<preview-domain>/content/dam/test-folder/q-3
    ContentFragmentVariationListResult:
      description: |
        Paginated collection of content fragment variations.
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ContentFragmentVariation'
        cursor:
          $ref: '#/components/schemas/Cursor'
      required:
        - items
    CreateVariation:
      description: Request payload for creating a new Content Fragment Variation
      type: object
      properties:
        title:
          description: Variation title
          type: string
          minLength: 1
        description:
          description: Variation description.
          type: string
      required:
        - title
      example:
        title: Summit 2023
        description: The Summit 2023 variation
    TimeIntervalAndAuthorSearchCriteria:
      type: object
      description: |
        Search criteria that allows searching for resources based on auditable information (i.e. various change events
        performed by users).
      properties:
        after:
          type: string
          format: date-time
          description: Lower time bound for a resource event.
          example: '2021-01-30T08:30:00Z'
        before:
          type: string
          format: date-time
          description: Upper time bound for a resource event.
          example: '2021-01-30T08:30:00Z'
        by:
          type: array
          description: A list of users who could have performed the event.
          items:
            type: string
          uniqueItems: true
          minItems: 1
    SearchFilterBase:
      type: object
      description: Search Filter Criteria
      properties:
        created:
          $ref: '#/components/schemas/TimeIntervalAndAuthorSearchCriteria'
        modified:
          $ref: '#/components/schemas/TimeIntervalAndAuthorSearchCriteria'
        modifiedOrCreated:
          $ref: '#/components/schemas/TimeIntervalAndAuthorSearchCriteria'
        published:
          $ref: '#/components/schemas/TimeIntervalAndAuthorSearchCriteria'
    ContentFragmentVariationStatus:
      description: Status of a Content Fragment Variation
      type: string
      readOnly: true
      enum:
        - NOT_PUBLISHED
        - PUBLISHED
        - MODIFIED
    ContentFragmentVariationSearchFilter:
      allOf:
        - $ref: '#/components/schemas/SearchFilterBase'
        - type: object
          description: Search filter criteria for Content Fragment variations
          properties:
            status:
              type: array
              items:
                $ref: '#/components/schemas/ContentFragmentVariationStatus'
              uniqueItems: true
              minItems: 1
              description: |
                When provided, variations are returned only if the Content Fragment Variation's
                current lifecycle status matches one of the statuses in the list. If the variation's status
                does not match, the result set is empty.
    ContentFragmentVariationSearchPattern:
      type: object
      description: Filtering criteria applied when searching Content Fragment variations.
      properties:
        filter:
          $ref: '#/components/schemas/ContentFragmentVariationSearchFilter'
      required:
        - filter
      example: '%7B%22filter%22%3A%7B%22status%22%3A%5B%22NOT_PUBLISHED%22%2C%22PUBLISHED%22%5D%7D%7D'
    Version:
      description: A representation of a Content Fragment Version.
      type: object
      properties:
        createdBy:
          description: Version creator.
          type: string
          minLength: 1
        title:
          description: Version title.
          type: string
          minLength: 1
        id:
          description: Version identifier.
          allOf:
            - $ref: '#/components/schemas/UUID'
        label:
          description: Version label.
          type: string
        comment:
          description: Version comment.
          type: string
        created:
          description: Version creation date.
          type: string
          format: date-time
          minLength: 1
        modified:
          description: Provides details about an update operation (e.g. user and date).
          allOf:
            - $ref: '#/components/schemas/AuthoringInfo'
      required:
        - createdBy
        - title
        - id
        - created
      example:
        createdBy: admin
        title: '1.0'
        id: 4e6c78a1-67e0-430a-85c5-511a6458a666
        label: a label
        comment: a comment
        created: '2023-08-04T16:30:54.898+03:00'
        modified:
          at: '2022-06-01T10:17:43.668-07:00'
          by: admin
    ContentFragmentCreateVersion:
      type: object
      properties:
        label:
          type: string
          description: Content Fragment version label.
        comment:
          type: string
          description: Content Fragment version comment.
      example:
        label: first version
        comment: v1
    Permission:
      type: string
      description: |
        The user permissions
         * `READ` - The user is allowed to read a specific Content Fragment.
         * `EDIT` - The user is allowed to edit a specific Content Fragment.
         * `RENAME` - The user is allowed to rename a specific Content Fragment.
         * `DELETE` - The user is allowed to delete a specific Content Fragment.
         * `PUBLISH` - The user is allowed to publish/un-publish a specific Content Fragment.
         * `CREATE_CONTENT_FRAGMENT` - The user is allowed to crete a Content Fragment in a specific folder.
         * `CREATE_CONTENT_FRAGMENT_MODEL` - The user is allowed to crete a Content Fragment Model in a specific folder.
         * `CREATE_LAUNCH` - The user is allowed to create a launch in a specific folder.
         * `CHECKIN` - The user is allowed to check in a checked-out Content Fragment.
         * `CHECKOUT` - The user is allowed to check out a Content Fragment.
      enum:
        - READ
        - EDIT
        - RENAME
        - DELETE
        - PUBLISH
        - CREATE_CONTENT_FRAGMENT
        - CREATE_CONTENT_FRAGMENT_MODEL
        - CREATE_LAUNCH
        - CHECKIN
        - CHECKOUT
    PermissionsRequest:
      type: object
      properties:
        paths:
          type: array
          description: |
            The list of resource paths - Content Fragments, Content Fragment Models and Folder -  for which the system has to return the list of permissions for a user.
            The Content Fragments are expected to be within the `/content/dam` directory, the Content Fragment Models within the `/conf` directory, and the Folders could be within the `/content/dam`, the `/conf` or the `/content/launches` directory. For folders within `/content/launches`, the permissions returned describe whether the user can read and create launches in that folder.
          items:
            type: string
          minItems: 1
        preferredPermissions:
          type: array
          description: The preferred list of permissions to return.
          items:
            $ref: '#/components/schemas/Permission'
      example:
        paths:
          - /content/dam/sample-wknd-app
          - /content/dam/wknd-shared
          - /conf/global/settings/dam/cfm/models/sample-model
          - /content/launches/2026/01/01
        preferredPermissions:
          - READ
          - DELETE
          - CREATE_CONTENT_FRAGMENT
          - CREATE_LAUNCH
      required:
        - paths
    PermissionsResponse:
      type: object
      properties:
        path:
          $ref: '#/components/schemas/Path'
        permissions:
          type: array
          description: List user permissions.
          items:
            $ref: '#/components/schemas/Permission'
      example:
        path: /content/dam/wknd-shared
        permissions:
          - CREATE_CONTENT_FRAGMENT
    ContentFragmentPublishRequest:
      type: object
      properties:
        ids:
          type: array
          description: The list of content fragment IDs.
          items:
            $ref: '#/components/schemas/UUID'
          uniqueItems: true
          maxItems: 50
        paths:
          type: array
          description: The list of content fragment paths.
          items:
            $ref: '#/components/schemas/Path'
          uniqueItems: true
          maxItems: 50
        agentId:
          type: string
          description: The agent id used for publishing the content fragments.
          default: publish
        filterReferencesByStatus:
          type: array
          description: |
            Provides the option to select which references should be included in the publication based on their status.
            When a status is selected (e.g., `DRAFT`), references with that status will be published along with the content fragment.
            Multiple statuses can be selected to include references with any of those statuses.
            If no option is selected, no references will be published regardless of their status.
          items:
            enum:
              - DRAFT
              - UNPUBLISHED
              - MODIFIED
          maxItems: 3
        workflowModelId:
          type: string
          default: /etc/workflow/models/scheduled_activation_with_references
          description: |
            The workflow model id used for initiating the workflow instance to handle the publication. 
            AEM provides the designated model `/etc/workflow/models/scheduled_activation_with_references` for publishing 
            content fragments including their references.
        workflowTitle:
          type: string
          description: A freely defined non-empty string used to identify the workflow when it executes.
        scheduledTime:
          type: integer
          format: int64
          description: The scheduled time as an epoch timestamp.
        preValidationSeconds:
          type: integer
          format: int32
          description: |
            If this property is provided, a validation of all the fragments contained in the payload together with all their 
            references will be attempted. 
            This validation only applies when `filterReferencesByStatus` is populated, 
            as it validates the complete references tree based on the selected reference statuses. Without `filterReferencesByStatus`,
            there are no references to validate, making this property ineffective.
            The cutoff limit for this validation will be the provided value in seconds. 
            The fragments from the payload which will be found invalid in the allocated interval will be removed from the 
            publish operation and their status will be returned as such in the response.
            In case there are no valid fragments in the payload after the validation, the workflow will not be started.
          minimum: 1
          maximum: 5
      example:
        paths:
          - /content/dam/wknd-shared/en/contributors/ian-provo
          - /content/dam/wknd-shared/en/contributors/jacob-wester
        filterReferencesByStatus:
          - DRAFT
          - UNPUBLISHED
        workflowModelId: /etc/workflow/models/scheduled_activation_with_references
        workflowTitle: A workflow that publishes a fragment with its references
        scheduledTime: 1635244063701
    WorkflowSearchFilter:
      type: object
      description: Search Filter criteria for Workflows
      properties:
        fragmentId:
          description: An optional parameter that filters workflows associated with a Content Fragment by its Content Fragment ID.
          $ref: '#/components/schemas/UUID'
    WorkflowSearchPattern:
      type: object
      description: Filtering and Sorting criteria applied when searching for Workflows.
      properties:
        filter:
          $ref: '#/components/schemas/WorkflowSearchFilter'
      required:
        - filter
      example: '%7B%0A%20%20%22filter%22%20%3A%20%7B%0A%20%20%20%20%22fragmentId%22%20%3A%20%22593210d0-6ffe-42c9-818f-d7825e21d93d%22%0A%20%20%7D%0A%7D'
    Workflow:
      description: A representation of a workflow.
      type: object
      discriminator:
        propertyName: type
        mapping:
          publish-fragments: '#/components/schemas/PublishFragmentsWorkflowResponse'
          generic: '#/components/schemas/GenericWorkflowResponse'
      properties:
        workflowInstanceId:
          $ref: '#/components/schemas/Path'
          description: The unique identifier of the workflow instance.
        workflowModel:
          type: string
          description: The model from which this workflow instance was created.
        state:
          type: string
          enum:
            - RUNNING
            - SUSPENDED
            - COMPLETED
            - ABORTED
          description: The state of the workflow instance.
        initiator:
          type: string
          description: The user executing the workflow. When the user who started the workflow lacks permissions to complete the operation, this is set to a service user instead. See `requestedBy` for the original user.
        requestedBy:
          type: string
          description: The user who started the workflow. Unlike initiator, this always reflects the original user even when a service user executes the workflow.
        start:
          type: string
          format: date-time
          description: The date and time when the workflow was started.
        end:
          type: string
          format: date-time
          description: The date and time when the workflow was ended.
        payload:
          type: array
          items:
            type: string
            description: The payload of the workflow instance consisting of either paths or ids.
        comment:
          type: string
          description: The current comment of the workflow instance.
        type:
          $ref: '#/components/schemas/WorkflowResponseType'
      required:
        - workflowInstanceId
        - workflowModel
        - state
        - initiator
        - start
        - type
    InvalidFragment:
      type: object
      description: |
        Represents a content fragment that was identified as invalid during a workflow.
        A fragment can be invalid either due to its own content or because it contains references to other invalid resources.
      properties:
        fragmentPath:
          $ref: '#/components/schemas/Path'
        invalidReferences:
          type: array
          items:
            $ref: '#/components/schemas/Path'
          description: |
            A list containing the path to the first invalid reference that caused this fragment to be considered invalid.
            The validation process stops after finding the first invalid reference.
            This list is empty if the fragment is invalid for reasons other than its references.
    PublishFragmentsWorkflowResponse:
      type: object
      title: PublishFragmentsWorkflowResponse
      description: Response payload for publish workflows with validation info.
      allOf:
        - $ref: '#/components/schemas/Workflow'
        - type: object
          properties:
            invalidFragments:
              type: array
              description: |
                This property is only available for publish workflows and displays a list of invalid fragments that were not published.
                A resource can be invalid by itself or because it contains invalid references.
                In case it contains invalid references, the list will contain the path of the first invalid reference mapped to the root content fragment.
              items:
                $ref: '#/components/schemas/InvalidFragment'
    GenericWorkflowResponse:
      type: object
      title: GenericWorkflowResponse
      description: Response payload for workflows with validation info.
      allOf:
        - $ref: '#/components/schemas/Workflow'
    WorkflowResponseType:
      type: string
      description: Type of workflow response
      enum:
        - publish-fragments
        - generic
    WorkflowRequest:
      type: object
      discriminator:
        propertyName: type
        mapping:
          publish-folder: '#/components/schemas/PublishFolderWorkflowRequest'
          unpublish-fragments: '#/components/schemas/UnpublishFragmentWorkflowRequest'
          unpublish-models: '#/components/schemas/UnpublishModelWorkflowRequest'
          create-translation-structure: '#/components/schemas/CreateTranslationStructureWorkflowRequest'
          move-fragments: '#/components/schemas/MoveFragmentsWorkflowRequest'
          rename-fragments: '#/components/schemas/RenameFragmentsWorkflowRequest'
      properties:
        type:
          $ref: '#/components/schemas/WorkflowType'
        workflowModelId:
          type: string
          description: |
            The workflow model id used for initiating the workflow instance
        workflowTitle:
          type: string
          description: A freely defined string used to identify the workflow when it executes.
      required:
        - type
    ReplicationWorkflowBase:
      type: object
      description: Base properties for a content publishing workflow
      properties:
        agentId:
          type: string
          description: The agent id used for publishing the content fragments.
          default: publish
        scheduledTime:
          type: integer
          format: int64
          description: The scheduled time as an epoch timestamp
    PublishFolderWorkflowRequest:
      type: object
      description: Payload for recursively publishing the fragments from a certain folder
      allOf:
        - $ref: '#/components/schemas/WorkflowRequest'
        - $ref: '#/components/schemas/ReplicationWorkflowBase'
        - type: object
          properties:
            folderPath:
              $ref: '#/components/schemas/ContentFragmentPath'
            excludeSubFolders:
              type: boolean
              default: false
              description: Whether the subfolders should be ignored
            workflowModelId:
              type: string
              default: /etc/workflow/models/scheduled_tree_activation
              description: |
                The workflow model id used for initiating the workflow instance to handle the publishing of the fragments in a folder. 
                AEM provides the designated model `/etc/workflow/models/scheduled_tree_activation` for tree publishing
            filterReferencesByStatus:
              type: array
              description: |
                Provides the option to select which references should be included in the publication based on their status.
                When a status is selected (e.g., `DRAFT`), references with that status will be published along with the content fragment.
                Multiple statuses can be selected to include references with any of those statuses.
                If no option is selected, no references will be published regardless of their status.
              items:
                enum:
                  - DRAFT
                  - UNPUBLISHED
                  - MODIFIED
                maxItems: 3
              uniqueItems: true
            validateReferences:
              type: boolean
              default: false
              description: |
                Whether to validate content fragment references before publishing.
                When enabled, fragments with invalid references will be skipped during publish.
                Note: Enabling this option will significantly slow down the publish workflow.
          required:
            - folderPath
    UnpublishFragmentWorkflowRequest:
      type: object
      description: Payload for unpublishing content fragments
      allOf:
        - $ref: '#/components/schemas/WorkflowRequest'
        - $ref: '#/components/schemas/ReplicationWorkflowBase'
        - type: object
          properties:
            ids:
              type: array
              description: The list of content fragment IDs.
              items:
                $ref: '#/components/schemas/UUID'
              minItems: 1
              maxItems: 50
              uniqueItems: true
            workflowModelId:
              type: string
              default: /etc/workflow/models/scheduled_deactivation
              description: |
                The workflow model id used for initiating the workflow instance to handle the unpublishing of a fragment. 
                AEM provides the designated model `/etc/workflow/models/scheduled_deactivation`
            allowUnpublishingWhenReferenced:
              type: boolean
              default: false
              description: |
                Flag to allow unpublishing of fragments even when they are referenced by other resources. 
                By default, unpublishing is blocked for fragments that are still referenced.
                Unpublishing fragments which are referenced on the author tier may lead to broken references on the publish tier.
          required:
            - ids
      example:
        ids:
          - 6d980e6a-c9e7-444b-af43-5503c46a061c
          - 4e6c78a1-67e0-430a-85c5-511a6458a666
        type: unpublish-fragments
        workflowModelId: /etc/workflow/models/scheduled_deactivation
        workflowTitle: A workflow that unpublishes a fragment
        scheduledTime: 1635244063701
    UnpublishModelWorkflowRequest:
      type: object
      description: Payload for unpublishing Content Fragment Models
      allOf:
        - $ref: '#/components/schemas/WorkflowRequest'
        - $ref: '#/components/schemas/ReplicationWorkflowBase'
        - type: object
          properties:
            ids:
              type: array
              description: The list of Content Fragment Model IDs.
              items:
                $ref: '#/components/schemas/Base64URLId'
              minItems: 1
              maxItems: 50
              uniqueItems: true
            workflowModelId:
              type: string
              default: /etc/workflow/models/model_deactivation
              description: |
                The workflow model id used for initiating the workflow instance to handle the unpublishing of a fragment model. 
                AEM provides the designated model `/etc/workflow/models/model_deactivation`
          required:
            - ids
      example:
        ids:
          - L2NvbmYvdmlraW5nY3J1aXNlcy9zZXR0aW5ncy9kYW0vY2ZtL21vZGVscy90ZXN0bW9kZWwtbm9yZWZlcmVuY2Vz
          - L2NvbmYvdmlraW5nY3J1aXNlcy9zZXR0aW5ncy9kYW0vY2ZtL21vZGVscy90ZXN0bW9kZWw
        type: unpublish-models
        workflowModelId: /etc/workflow/models/model_deactivation
        workflowTitle: A workflow that unpublishes a fragment model
        scheduledTime: 1635244063701
    CreateTranslationStructureWorkflowRequest:
      type: object
      description: |
        Payload for creating the folder structure for Language Copies of Content Fragments.
        This workflow creates the target folder hierarchy within the target language root to match the hierarchy of the source folder within the source language root, without creating any translation project.
      allOf:
        - $ref: '#/components/schemas/WorkflowRequest'
        - type: object
          properties:
            path:
              $ref: '#/components/schemas/AssetOrLaunchPath'
            workflowModelId:
              type: string
              default: /etc/workflow/models/dam/dam-create-language-copy/jcr:content/model
              description: |
                The workflow model identifier used for initiating the translation structure workflow.
            translateLanguages:
              type: array
              description: The list of languages to translate the content to.
              items:
                $ref: '#/components/schemas/Locale'
              minItems: 1
              uniqueItems: true
          required:
            - path
            - translateLanguages
      example:
        path: /content/dam/we-retail/en/activities/summer
        type: create-structure-only
        translateLanguages:
          - de
          - fr
          - es
        workflowModelId: /etc/workflow/models/dam/dam-create-language-copy/jcr:content/model
        workflowTitle: Copy Structure Only
    MoveFragmentsWorkflowRequest:
      type: object
      description: |
        The request payload for moving multiple Content Fragments.

        Content Fragments in MODIFIED status cannot be moved.
      allOf:
        - $ref: '#/components/schemas/WorkflowRequest'
        - type: object
          properties:
            workflowModelId:
              type: string
              description: The ID of the workflow model.
              default: /etc/workflow/models/move_fragments
            destinationPath:
              description: |
                The folder to which the Content Fragment should be moved. The provided destination path should already exist. If
                the destination path does not exist, the copy operation will not be performed and the system will return an error.
                This path should start with `/content/dam` or should be relative to the `/content/dam` folder.
              allOf:
                - $ref: '#/components/schemas/AssetOrLaunchPath'
            ids:
              type: array
              minItems: 1
              maxItems: 100
              description: List of Content Fragments ids that are to be moved
              items:
                $ref: '#/components/schemas/UUID'
      required:
        - destinationPath
        - fragments
    RenameOperation:
      type: object
      description: Operation for renaming a Content Fragment
      properties:
        id:
          $ref: '#/components/schemas/UUID'
        newName:
          type: string
          description: |
            The new name for the Content Fragment.
          minLength: 1
        newTitle:
          type: string
          description: |
            The new title for the Content Fragment.
          minLength: 1
      required:
        - id
        - newName
    RenameFragmentsWorkflowRequest:
      type: object
      description: |
        The request payload for renaming multiple Content Fragments.

        Content Fragments in MODIFIED status cannot be renamed.
      allOf:
        - $ref: '#/components/schemas/WorkflowRequest'
        - type: object
          properties:
            workflowModelId:
              type: string
              description: The ID of the workflow model.
              default: /etc/workflow/models/rename_fragments
            renameOperations:
              type: array
              minItems: 1
              maxItems: 100
              description: List of rename operations containing fragment IDs, new names, and optional new titles
              items:
                $ref: '#/components/schemas/RenameOperation'
      required:
        - renameOperations
    WorkflowType:
      type: string
      description: Type of workflow
      enum:
        - publish-folder
        - unpublish-fragments
        - unpublish-models
        - create-translation-structure
        - move-fragments
        - rename-fragments
    WorkflowResponse:
      type: object
      discriminator:
        propertyName: type
        mapping:
          publish-folder: '#/components/schemas/PublishFolderWorkflowResponse'
          unpublish-fragments: '#/components/schemas/UnpublishFragmentWorkflowResponse'
          unpublish-models: '#/components/schemas/UnpublishModelWorkflowResponse'
          create-translation-structure: '#/components/schemas/CreateTranslationStructureWorkflowResponse'
          move-fragments: '#/components/schemas/MoveFragmentsWorkflowResponse'
          rename-fragments: '#/components/schemas/RenameFragmentsWorkflowResponse'
      properties:
        type:
          $ref: '#/components/schemas/WorkflowType'
        workflowInstanceId:
          $ref: '#/components/schemas/Path'
          description: |
            The workflow instance id. Can be used to monitor the status of the given workflow using the Workflow REST API.
            In case no workflow is started because the preconditions are not met, this property is not set.
      required:
        - type
    PublishFolderWorkflowResponse:
      type: object
      description: Response payload for recursively publishing the fragments from a certain folder
      allOf:
        - $ref: '#/components/schemas/WorkflowResponse'
    UnpublishFragmentWorkflowResponse:
      type: object
      description: Response payload for unpublishing content fragments
      allOf:
        - $ref: '#/components/schemas/WorkflowResponse'
        - type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/PublishStatus'
      example:
        workflowInstanceId: /var/workflow/instances/server0/2022-01-21/scheduled_activation_with_references_23
        items:
          - path: /content/dam/fragment
            status: SUCCESS_TRIGGERED
          - path: /content/dam/missing_fragment
            status: ERROR_NOT_FOUND
          - path: /content/dam/referenced_fragment
            status: ERROR_REFERENCED
    PublishModelStatus:
      type: object
      description: |
        A publish or unpublish operation can fail for an individual Content Fragment Model.
        This status is returned in the response of a bulk publish or unpublish operation.
      properties:
        id:
          $ref: '#/components/schemas/Base64URLId'
        path:
          $ref: '#/components/schemas/ContentFragmentModelPath'
        status:
          $ref: '#/components/schemas/WorkflowStatus'
    UnpublishModelWorkflowResponse:
      type: object
      description: Response payload for unpublishing Content Fragment Models.
      allOf:
        - $ref: '#/components/schemas/WorkflowResponse'
        - type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/PublishModelStatus'
      example:
        workflowInstanceId: /var/workflow/instances/server0/2024-04-22/model_deactivation_12
        items:
          - path: /path/to/model
            status: SUCCESS_TRIGGERED
          - path: /path/to/model/missing
            status: ERROR_NOT_FOUND
          - path: /path/to/model/with/references
            status: ERROR_REFERENCED
    CreateTranslationStructureWorkflowResponse:
      type: object
      description: Response payload for creating the folder structure for Language Copies of Content Fragments.
      allOf:
        - $ref: '#/components/schemas/WorkflowResponse'
    MoveStatus:
      type: object
      description: |
        A move operation of an individual fragment must pass several checks before it can be executed.
        If the checks pass, the move operation is triggered for that specific fragment.
        If the checks fail, the move operation is not triggered and the returned status indicates the reason for the failure.
      properties:
        id:
          $ref: '#/components/schemas/UUID'
        status:
          $ref: '#/components/schemas/WorkflowStatus'
    MoveFragmentsWorkflowResponse:
      type: object
      description: Response payload for moving content fragments
      allOf:
        - $ref: '#/components/schemas/WorkflowResponse'
        - type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/MoveStatus'
      example:
        type: move-fragments
        workflowInstanceId: /var/workflow/instances/server0/2022-01-21/move_fragments_23
        items:
          - id: 6d980e6a-c9e7-444b-af43-5503c46a061c
            status: SUCCESS_TRIGGERED
          - id: 6d980e6a-c9e7-444b-af43-5503c46a061c
            status: ERROR_NOT_FOUND
    RenameWorkflowStatus:
      type: string
      description: |
        The workflow status of the entity:
          - `SUCCESS_TRIGGERED` - the processing of the entity is triggered successfully by the workflow
          - `ERROR_NOT_FOUND` - the entity was not found
          - `ERROR_FORBIDDEN` - the user does not have the necessary permissions to perform the operation.
          - `ERROR_INVALID_NAME` - the provided name contains invalid characters or is not a valid resource name.
      enum:
        - SUCCESS_TRIGGERED
        - ERROR_NOT_FOUND
        - ERROR_FORBIDDEN
        - ERROR_INVALID_NAME
    RenameStatus:
      type: object
      description: |
        A rename operation of an individual fragment must pass several checks before it can be executed.
        If the checks pass, the rename operation is triggered for that specific fragment.
        If the checks fail, the rename operation is not triggered and the returned status indicates the reason for the failure.
      properties:
        id:
          $ref: '#/components/schemas/UUID'
        status:
          $ref: '#/components/schemas/RenameWorkflowStatus'
    RenameFragmentsWorkflowResponse:
      type: object
      description: Response payload for renaming content fragments
      allOf:
        - $ref: '#/components/schemas/WorkflowResponse'
        - type: object
          properties:
            items:
              type: array
              items:
                $ref: '#/components/schemas/RenameStatus'
      example:
        workflowInstanceId: /var/workflow/instances/server0/2022-01-21/rename_fragments_23
        items:
          - id: 550e8400-e29b-41d4-a716-446655440000
            status: SUCCESS_TRIGGERED
          - id: 6ba7b810-9dad-11d1-80b4-00c04fd430c8
            status: ERROR_NOT_FOUND
    ContentFragmentsReferencedBy:
      description: Request payload to retrieve the back references to a set of Content Fragments.
      type: object
      properties:
        paths:
          type: array
          description: The list of Content Fragment paths for which to retrieve the back references.
          items:
            $ref: '#/components/schemas/AssetOrLaunchPath'
          minItems: 1
      example:
        paths:
          - /content/dam/wknd-shared/en/contributors/ian-provo
          - /content/dam/wknd-shared/en/contributors/jacob-wester
      required:
        - paths
    BackReferences:
      type: object
      description: A parent reference for a Content Fragment used in bulk operations (getting references for multiple fragments at once).
      properties:
        type:
          description: Type of parent reference
          type: string
          enum:
            - content-fragment
            - experience-fragment
            - page
        title:
          type: string
          description: Parent reference title
          minLength: 1
        path:
          $ref: '#/components/schemas/Path'
        status:
          $ref: '#/components/schemas/ContentFragmentStatus'
      required:
        - type
        - title
        - path
        - status
    ContentFragmentParentReference:
      type: object
      properties:
        items:
          type: array
          items:
            description: Parent References for a Content Fragment
            type: object
            properties:
              path:
                $ref: '#/components/schemas/Path'
              parentReferences:
                description: The list of parent references that use the fragment from the `path`.
                type: array
                items:
                  $ref: '#/components/schemas/BackReferences'
          required:
            - path
            - parentReferences
      example:
        items:
          - path: /content/dam/wknd-shared/en/contributors/ian-provo
            parentReferences:
              - type: experience-fragment
                title: byline
                path: /content/experience-fragments/wknd/language-masters/en/contributors/stacey-roswells/byline
                status: DRAFT
              - type: experience-fragment
                title: master
                path: /content/experience-fragments/wknd/language-masters/en/contributors/stacey-roswells/master
                status: DRAFT
              - type: content-fragment
                title: ultimate-guide-to-la-skateparks
                path: /content/dam/wknd-shared/en/magazine/la-skateparks/ultimate-guide-to-la-skateparks
                status: DRAFT
    PointerReference:
      type: object
      description: A reference that contains the `fieldName` and a JSON Pointer to the hydrated reference.
      properties:
        fieldName:
          description: Name of the field that contains the reference.
          type: string
          minLength: 1
        identifier:
          description: The key where the hydrated reference is stored at - this can pe a UUID, URN or Path.
          type: string
          minLength: 1
        pointerReferences:
          type: array
          description: An array containing inner references.
          items:
            $ref: '#/components/schemas/PointerReference'
      required:
        - fieldName
        - identifier
      example:
        fieldName: fieldName
        identifier: 6d980e6a-c9e7-444b-af43-5503c46a061c
        pointerReferences:
          - fieldName: fieldName2
            identifier: 7d980e6a-c9e7-444b-af43-5503c46a061c
          - fieldName: fieldName3
            identifier: 8d980e6a-c9e7-444b-af43-5503c46a061c
    FlatReference:
      type: object
      description: Core information about referenced resources.
      discriminator:
        propertyName: type
        mapping:
          asset: '#/components/schemas/AssetFlatReference'
          content-fragment: '#/components/schemas/ContentFragmentFlatReference'
          page: '#/components/schemas/PageFlatReference'
          experience-fragment: '#/components/schemas/ExperienceFragmentFlatReference'
      properties:
        name:
          description: Item name
          type: string
        type:
          $ref: '#/components/schemas/ReferenceType'
        title:
          type: string
          description: Reference title.
        path:
          $ref: '#/components/schemas/Path'
        created:
          $ref: '#/components/schemas/AuthoringInfo'
        modified:
          $ref: '#/components/schemas/AuthoringInfo'
        published:
          $ref: '#/components/schemas/AuthoringInfo'
        status:
          $ref: '#/components/schemas/ContentFragmentStatus'
        previewReplicationStatus:
          $ref: '#/components/schemas/PreviewReplicationStatus'
        previewStatus:
          $ref: '#/components/schemas/PreviewStatus'
      required:
        - type
        - path
      example:
        name: ian_provo.jpg
        type: asset
        path: /content/dam/wknd-shared/en/contributors/ian_provo.jpg
        created:
          at: '2023-08-02T16:01:47.765+03:00'
          by: admin
        status: DRAFT
        assetId: urn:aaid:aem:1fb05fe4-c12b-4f85-b1ca-aa92cdbd6a62
        repo:size: 251434
        dc:format: image/jpeg
        tiff:ImageWidth: 1152
        tiff:ImageHeight: 1152
    AssetFlatReference:
      readOnly: true
      description: Minimal information about referenced asset, can be used to generate preview.
      allOf:
        - $ref: '#/components/schemas/FlatReference'
        - type: object
          properties:
            assetId:
              $ref: '#/components/schemas/URN'
              description: Asset unique identifier expressed as a URN.
            repo:size:
              type: integer
              format: int64
              description: Asset size (bytes).
            dc:format:
              type: string
              description: Asset mime type.
            tiff:ImageWidth:
              type: integer
              format: int64
              description: Asset width (if applicable).
            tiff:ImageHeight:
              type: integer
              format: int64
              description: Asset height (if applicable).
    ContentFragmentFlatReference:
      description: Information about a referenced content fragment.
      allOf:
        - $ref: '#/components/schemas/FlatReference'
        - type: object
          properties:
            id:
              $ref: '#/components/schemas/UUID'
              description: Content fragment unique identifier.
            model:
              $ref: '#/components/schemas/ContentFragmentModelIdentifier'
            description:
              type: string
              description: Content fragment description.
            fields:
              type: array
              description: Content fragment fields.
              items:
                $ref: '#/components/schemas/ContentFragmentField'
            variations:
              type: array
              description: Content fragment variations.
              items:
                $ref: '#/components/schemas/ContentFragmentVariation'
            tags:
              type: array
              items:
                $ref: '#/components/schemas/Tag'
          required:
            - tags
            - variations
            - fields
    PageFlatReference:
      description: An information about referenced page.
      allOf:
        - $ref: '#/components/schemas/FlatReference'
    ExperienceFragmentFlatReference:
      description: An information about referenced page.
      allOf:
        - $ref: '#/components/schemas/FlatReference'
    ContentFragmentTreeResult:
      description: |
        Tree and map representation of references. The tree representation is utilising the references stored in the map.
      type: object
      properties:
        items:
          description: A tree representation of references.
          type: array
          items:
            $ref: '#/components/schemas/PointerReference'
        references:
          description: Map of hydrated references with ids represented as UUID, Urn or Path, depending on the Resource type.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/FlatReference'
      example:
        items:
          - fieldName: fieldName
            identifier: 5dc7a777-d75e-4428-841a-81382fba71b2
          - fieldName: fieldName2
            identifier: 5dc7a777-d75e-4428-841a-81382fba71b2
          - fieldName: fieldName3
            identifier: 051f3e21-dcc9-4970-9410-2eda2f1a1611
            pointerReferences:
              - fieldName: references
                identifier: ee038ec6-8f43-4543-9f95-b193258d6bed
                pointerReferences:
                  - fieldName: references
                    identifier: 051f3e21-dcc9-4970-9410-2eda2f1a1611
        references:
          5dc7a777-d75e-4428-841a-81382fba71b2:
            name: a
            type: content-fragment
            title: A
            path: path/to/a
            created:
              at: '2024-08-22T11:54:40.276+03:00'
              by: author
              fullName: Author Name
            modified:
              at: '2024-08-22T11:56:40.276+03:00'
              by: author
              fullName: Author Name
            status: DRAFT
            id: 5dc7a777-d75e-4428-841a-81382fba71b2
            model:
              id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvY3ljbGU
              path: /path/to/model
              name: name
              title: title
            description: ''
            fields:
              - name: fieldLabel
                type: text
                multiple: false
                locked: false
                values:
                  - A
              - name: references
                type: content-fragment
                multiple: true
                locked: false
                values: []
            variations: []
            tags: []
          051f3e21-dcc9-4970-9410-2eda2f1a1611:
            name: c1
            type: content-fragment
            title: C1
            path: path/to/c1
            created:
              at: '2024-08-22T11:54:40.276+03:00'
              by: author
              fullName: Author Name
            modified:
              at: '2024-08-22T11:56:40.276+03:00'
              by: author
              fullName: Author Name
            status: DRAFT
            id: 051f3e21-dcc9-4970-9410-2eda2f1a1611
            model:
              id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvY3ljbGU
              path: /path/to/model
              name: name
              title: title
            description: ''
            fields:
              - name: fieldLabel
                type: text
                multiple: false
                locked: false
                values:
                  - C1
              - name: references
                type: content-fragment
                multiple: true
                locked: false
                values:
                  - /path/to/c2
            variations: []
            tags: []
          ee038ec6-8f43-4543-9f95-b193258d6bed:
            name: c2
            type: content-fragment
            title: C2
            path: path/to/c2
            created:
              at: '2024-08-22T11:54:40.276+03:00'
              by: author
              fullName: Author Name
            modified:
              at: '2024-08-22T11:56:40.276+03:00'
              by: author
              fullName: Author Name
            status: DRAFT
            id: ee038ec6-8f43-4543-9f95-b193258d6bed
            model:
              id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvY3ljbGU
              path: /path/to/model
              name: name
              title: title
            description: ''
            fields:
              - name: fieldLabel
                type: text
                multiple: false
                locked: false
                values:
                  - C2
              - name: references
                type: content-fragment
                multiple: true
                locked: false
                values:
                  - /path/to/c1
            variations: []
            tags: []
    ParentReference:
      type: object
      description: A parent reference for a Content Fragment.
      discriminator:
        propertyName: type
        mapping:
          content-fragment: '#/components/schemas/ParentContentFragmentReference'
          page: '#/components/schemas/ParentPageReference'
          experience-fragment: '#/components/schemas/ParentExperienceFragmentReference'
      properties:
        type:
          description: Type of parent reference
          type: string
          enum:
            - content-fragment
            - experience-fragment
            - page
        title:
          type: string
          description: Parent reference title
          minLength: 1
        path:
          $ref: '#/components/schemas/Path'
        status:
          $ref: '#/components/schemas/ContentFragmentStatus'
      required:
        - type
        - title
        - path
        - status
    ParentContentFragmentReference:
      description: An information about referenced content fragment.
      allOf:
        - $ref: '#/components/schemas/ParentReference'
        - type: object
          properties:
            model:
              $ref: '#/components/schemas/ContentFragmentModelIdentifier'
              description: Content Fragment Model identifiers.
            id:
              $ref: '#/components/schemas/UUID'
              description: Content Fragment unique identifier.
          required:
            - model
            - id
    ParentPageReference:
      description: |
        An information about parent referenced page.
        If a given fragment is referenced by another fragment used in a page, the page is considered a parent reference
        for the given fragment too.
      allOf:
        - $ref: '#/components/schemas/ParentReference'
    ParentExperienceFragmentReference:
      description: An information about parent referenced experience fragment.
      allOf:
        - $ref: '#/components/schemas/ParentReference'
    ParentReferencesList:
      type: object
      description: List of resources referencing the resource with the given `fragmentId`.
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ParentReference'
        cursor:
          $ref: '#/components/schemas/Cursor'
      example:
        items:
          - path: /path/to/parent/experience-fragment/reference
            title: Title
            status: DRAFT
            type: experience-fragment
          - path: /path/to/parent/page/reference
            title: Title
            status: NEW
            type: page
          - path: /path/to/parent/content-fragment/reference
            title: Title
            status: NEW
            type: content-fragment
            model:
              id: L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL2Etc2ltcGxlLWNmbQ
              path: /conf/global/settings/dam/cfm/models/a-simple-cfm
              name: A_simple_CFM
              title: A simple CFM
            id: uuid-of-content-fragment
        cursor: wqeaszrdxtgfcyguiohfgytdrsewq
    RelativePath:
      type: string
      pattern: ^(\/content\/dam.*?)$|^((?!\/).*)$
      description: |
        Path to a resource relative to the `/content/dam` folder. It either starts with `/content/dam` or is relative to it.
        The relative path never starts with a `/` character.
    CopyContentFragment:
      description: Request payload for copying a Content Fragment
      type: object
      properties:
        parentPath:
          allOf:
            - $ref: '#/components/schemas/RelativePath'
          description: |
            The folder to which the Content Fragment should be copied. The provided destination path should already exist. If
            the destination path does not exist, the copy operation will not be performed and the system will return an error.

            This path should start with `/content/dam` or should be relative to the `/content/dam` folder.
        name:
          description: |
            This property allows you to specify a new name for the resource being copied.

            When a value is not provided the original name of the resource will be used. In case of resource conflicts in the 
            destination folder, the server will automatically generate an alternative resource name based on the provided value.

            When a value is provided and a conflict exists in the destination folder, the caller will have to
            explicitly solve the conflict.
          type: string
      required:
        - parentPath
    ContentFragmentLanguageCopiesDetails:
      description: The object describing the language copy.
      type: object
      properties:
        id:
          allOf:
            - $ref: '#/components/schemas/UUID'
          description: The identifier of the language copy.
        path:
          type: string
          description: The path of the language copy.
        title:
          type: string
          description: The title of the language copy.
        locale:
          type: string
          description: The locale (language and country code as en_us) of the language copy.
        model:
          type: string
          description: The model of the Content Fragment.
        status:
          $ref: '#/components/schemas/ContentFragmentStatus'
    ContentFragmentLanguageCopy:
      description: Content Fragment Language Copy
      type: object
      properties:
        locale:
          type: string
          description: The locale (language and country code as en_us) of the Content Fragment
        languageCopies:
          type: array
          description: List of language copies for the locale.
          items:
            $ref: '#/components/schemas/ContentFragmentLanguageCopiesDetails'
    ContentFragmentsTranslations:
      type: object
      properties:
        paths:
          type: array
          description: The list of paths.
          items:
            $ref: '#/components/schemas/Path'
          minItems: 1
      example:
        paths:
          - /content/dam/wknd-shared/en/contributors/ian-provo
          - /content/dam/wknd-shared/en/contributors/jacob-wester
      required:
        - paths
    ContentFragmentPathToLanguageCopy:
      description: Mapping of Content Fragment paths to their respective language copies
      type: object
      allOf:
        - type: object
          properties:
            path:
              $ref: '#/components/schemas/ContentFragmentPath'
        - $ref: '#/components/schemas/ContentFragmentLanguageCopy'
      required:
        - path
    Languages:
      description: List of languages
      type: object
      properties:
        locales:
          type: array
          items:
            type: object
            description: Object description of a locale with Country and Language
            properties:
              locale:
                $ref: '#/components/schemas/Locale'
              language:
                type: string
              country:
                type: string
            required:
              - locale
            example:
              locale: en_us
              language: English
              country: United States
    ScheduledPublicationStatusRequest:
      type: object
      properties:
        ids:
          type: array
          description: The list of Content Fragment IDs.
          items:
            $ref: '#/components/schemas/UUID'
          uniqueItems: true
          maxItems: 50
    ScheduledPublicationStatusMapping:
      type: object
      description: |
        The Scheduled Publication Status of a Content Fragment is returned along with the Content Fragment ID.
      properties:
        id:
          $ref: '#/components/schemas/UUID'
        scheduledPublicationStatus:
          $ref: '#/components/schemas/ScheduledPublicationStatus'
    ScheduledPublicationStatusListResult:
      description: |
        Collection of scheduled publication statuses for a list of Content Fragments.
      type: object
      properties:
        items:
          description: |
            List of Content Fragment Scheduled Publication Statuses corresponding to each Content Fragment ID provided.
            If a Content Fragment with one of the given IDs is not found, it will be missing from the response.
          type: array
          items:
            $ref: '#/components/schemas/ScheduledPublicationStatusMapping'
    FindAndReplace:
      type: object
      properties:
        paths:
          type: array
          description: The list of Content Fragments paths on which Find And Replace operation is performed.
          items:
            $ref: '#/components/schemas/ContentFragmentPath'
          maxItems: 20
        find:
          description: String we want to replace in all TEXT fields in selected Content Fragments
          type: string
          pattern: ^[^<>]*$
        replace:
          description: Replacement string.
          type: string
          pattern: ^[^<>]*$
        dryRun:
          description: When enabled, the operation runs in simulation mode — only simulated results are returned and no changes are persisted.
          type: boolean
        ignoreErrors:
          description: True means that we want replacement taking place for all cases when Replacement would be successful and do nothing for cases in error.
          type: boolean
        isCaseSensitive:
          description: True means that we want to perform case sensitive search.
          type: boolean
          default: true
        matchExactWord:
          description: |
            A flag indicating whether to only consider the exact matches of the `find` String
            When set to `true` (optional), the replacement will occur only for occurrences of the `find` String that are entire words, excluding parts of compound words.
            When set to `false` (default), the replacement will happen for any occurrence of the `find` String, including within compound words.
          type: boolean
          default: false
        fieldNames:
          description: |
            An optional list of text and long text field names.
            If provided, it will be used to restrict the Find And Replace operation to those specific fields within the Content Fragments.
            If not provided, the operation will be performed on all text and long text fields.
          type: array
          items:
            type: string
          uniqueItems: true
          maxItems: 10
      required:
        - paths
        - find
        - replace
        - dryRun
        - ignoreErrors
      example:
        paths:
          - /content/dam/copy-of-my-new-adventure3
        find: adventure
        replace: fun
        dryRun: true
        ignoreErrors: true
    FindReplaceField:
      type: object
      description: This describes outcome of Find/Replace operation for specific Content Fragment Model Field.
      properties:
        fieldName:
          type: string
          description: This is the name of the Content Fragment Field, as exposed in the Content Fragment Model.
        details:
          type: array
          description: List containing details on all failing constraints when applying Replace for erroneous field.
          items:
            type: string
            description: Specific replace error for given field. One of REQUIRED, MAX_LENGTH, REGEX_CUSTOM, REGEX_URL, REGEX_EMAIL.
            enum:
              - REQUIRED
              - MAX_LENGTH
              - REGEX_CUSTOM
              - REGEX_URL
              - REGEX_EMAIL
    FindReplaceContentFragment:
      type: object
      description: |
        Provides details on the replacement operation outcome per Content Fragment. Besides the path identifying
        the Content Fragment, the schema provides a replacement status (OK, ERROR) and a detailed report on each field
        from a Content Fragment that was subject to a replace.
      properties:
        path:
          type: string
          description: Path identifying the Content Fragment that is subject to the Find/Replace operation.
        status:
          type: string
          description: |
            Possible statuses when a `FindAndReplace` operation is attempted for a Content Fragment:
            * `REPLACE_OK` is returned when replace can be successfully performed as field values after replace obey validation constraints
            * `REPLACE_ERROR` is returned when replace cannot be successfully  performed because of validation constraints violations
            * `REPLACE_NOT_APPLICABLE` is returned when the `find` string cannot be found in any of the fields of the Content Fragment
          enum:
            - REPLACE_OK
            - REPLACE_ERROR
            - REPLACE_NOT_APPLICABLE
        fieldsInError:
          type: array
          description: This contains detailed status of Replace operation outcome for all fields of the corresponding Content Fragment.
          items:
            $ref: '#/components/schemas/FindReplaceField'
      example:
        path: /content/dam/copy-of-my-new-adventure3
        status: REPLACE_OK
        fieldsInError: []
    FindAndReplaceResolution:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/FindReplaceContentFragment'
    AemTier:
      type: string
      description: The tier corresponding to the AEM instance.
      enum:
        - author
        - publish
        - preview
    Domain:
      type: object
      properties:
        tier:
          $ref: '#/components/schemas/AemTier'
        domainURL:
          type: string
          format: url
          description: Absolute URL prefix matching the environment provided through the `tier` parameter.
    DomainResponse:
      description: List of domain URLs
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Domain'
    GraphQLSuccessResponse:
      description: |
        A successful GraphQL response that returns the queried results.
      type: object
      properties:
        data:
          type: object
          description: The `data` field, where the result of the operation is stored.
      required:
        - data
      example:
        data:
          contentFragments:
            edges:
              - node:
                  path: /content/dam/wknd-shared/en/adventures/cycling-tuscany/cycling-tuscany
                  title: Cycling Tuscany
                  status: MODIFIED
                  statusPreview: null
                  created:
                    at: '2023-04-20T11:12:56.752Z'
                    by: admin
                  modified:
                    at: '2023-07-27T04:42:43.126Z'
                    by: admin
                  tags: []
                  modifiedOrCreated:
                    at: '2023-07-27T04:42:43.126Z'
                    by: admin
                  published:
                    at: '2023-06-17T05:17:47.656Z'
                    by: user
                  model:
                    name: Adventure
                    path: /conf/wknd-shared/settings/dam/cfm/models/adventure
                  parent:
                    path: /content/dam/wknd-shared/en/adventures/cycling-tuscany
                    name: cycling-tuscany
                    title: Cycling Tuscany
              - node:
                  path: /content/dam/wknd-shared/en/adventures/riverside-camping-australia/riverside-camping-australia
                  title: Riverside Camping Australia
                  status: MODIFIED
                  statusPreview: IN_SYNC
                  created:
                    at: '2023-04-20T11:13:05.621Z'
                    by: admin
                  modified:
                    at: '2023-07-12T09:32:18.224Z'
                    by: user
                  tags: []
                  modifiedOrCreated:
                    at: '2023-07-12T09:32:18.224Z'
                    by: user
                  published:
                    at: '2022-11-05T01:05:50.611Z'
                    by: user
                  model:
                    name: Adventure
                    path: /conf/wknd-shared/settings/dam/cfm/models/adventure
                  parent:
                    path: /content/dam/wknd-shared/en/adventures/riverside-camping-australia
                    name: riverside-camping-australia
                    title: Riverside Camping Australia
            pageInfo:
              startCursor: bnVsbAo1OTMyMTBkMC02ZmZlLTQyYzktODE4Zi1kNzgyNWUyMWQ5M2Q=
              endCursor: bnVsbAo2YzkzMTRlZC1lYWE4LTQ2NzEtYTFjNS04YzhiODhjZTY2ZjY=
              hasNextPage: false
              hasPreviousPage: false
    GraphQLErrorResponse:
      description: A GraphQL response that describes a query execution error.
      type: object
      properties:
        errors:
          type: array
          description: The `errors` field, where all the errors accumulated during the execution of the operation are kept.
          items:
            type: object
            properties:
              message:
                type: string
                description: The error message describing the error.
              locations:
                type: array
                description: A list of graph coordinates where the errors have occurred.
                items:
                  type: object
                  properties:
                    line:
                      type: integer
                    column:
                      type: integer
              extensions:
                type: object
                description: An optional extensions field with arbitrary contents, usually meta-data about the response.
      required:
        - errors
    GraphQLRequest:
      description: Describes a GraphQL query payload over POST.
      type: object
      properties:
        query:
          type: string
          minLength: 1
        variables:
          type: object
          additionalProperties: true
          description: |
            Variables simplify GraphQL queries by letting you pass data separately. Can be declared after the query and are
            passed like arguments to a function and begin with `$`.
      required:
        - query
      example:
        query: |
          query (
            $sort: String
            $after: String
            $first: Int
            $filter: String
          ) {
            contentFragments(sort: $sort, after: $after, limit: $first, filter: $filter) {
              edges {
                node {
                  path
                  title
                  status
                  statusPreview
                  created {
                    at
                    by
                  }
                  modified {
                    at
                    by
                  }
                  tags {               id               name               path               description               title               titlePath             }
                  modifiedOrCreated {
                    at
                    by
                  }
                  published {
                    at
                    by
                  }
                  model {
                    name
                    path
                  }
                  parent {
                    path
                    name
                    title
                  }
                }
              }
              pageInfo {
                startCursor
                endCursor
                hasNextPage
                hasPreviousPage
              }
            }
          }
        variables:
          sort: modifiedOrCreated DESC
          after: null
          first: 100
          filter: path=/content/dam/wknd-shared;
          withStatusPreview: true
          withTags: true
    FullTextSearchCriteria:
      type: object
      description: Full text search criteria on Content Fragments.
      properties:
        text:
          type: string
          description: A text value used to search for Content Fragments.
        queryMode:
          description: |
            Query mode in case of search by full text.
            * EXACT_WORDS = terms will be rendered as they are
            * EXACT_PHRASE = the terms will be rendered as a phrase
            * ALL_TERMS = every term will be rendered as a "contains" operation
            * EDGES = only edge terms will be rendered as a "contains" operation
            * AS_IS = will use the search term as it is (this is the default)
          type: string
          enum:
            - EXACT_WORDS
            - EXACT_PHRASE
            - ALL_TERMS
            - EDGES
            - AS_IS
          default: AS_IS
    MetadataSearchEntry:
      type: object
      description: Pair of key-value consisting of a metadata property's name and value used for Content Fragment search filtering
      required:
        - key
        - value
      properties:
        key:
          type: string
          minLength: 1
          description: The name of the metadata property to filter by
          pattern: ^[^\[\]\*|/]+$
        value:
          type: string
          minLength: 1
          description: The value of the metadata property to filter by
    ContentFragmentSearchFilter:
      allOf:
        - $ref: '#/components/schemas/SearchFilterBase'
        - type: object
          description: Search Filter criteria for Content Fragments
          properties:
            modelIds:
              type: array
              description: |
                When provided, only the Content Fragments based on models that match at least one tag from this array will be retrieved.
                If both `modelTags` and `modelIds` are specified, the result will include fragments based on models that match either of the criteria.
              items:
                $ref: '#/components/schemas/Base64URLId'
              uniqueItems: true
              minItems: 1
            modelTags:
              type: array
              description: |
                When provided, only the Content Fragments based on models that match at least one tag from this array will be retrieved.
                If both `modelTags` and `modelIds` are specified, the result will include fragments based on models that match either of the criteria.
              items:
                $ref: '#/components/schemas/TagId'
              uniqueItems: true
              minItems: 1
            fullText:
              allOf:
                - $ref: '#/components/schemas/FullTextSearchCriteria'
              description: Full text search - when provided, only the Content Fragments whose content matches the provided text will be retrieved.
            path:
              allOf:
                - $ref: '#/components/schemas/AssetOrLaunchPath'
              description: |
                When provided, only the Content Fragments under the path mentioned above will be retrieved.
                The path is relative to the `/content/dam` or `/content/launches` folders.
            onlyDirectChildren:
              description: only direct children under the path mentioned above
              type: boolean
              default: false
            status:
              type: array
              items:
                $ref: '#/components/schemas/ContentFragmentStatus'
              uniqueItems: true
              minItems: 1
              description: When provided, only the Content Fragments whose status matches one of the statuses from the list will be retrieved.
            locale:
              type: array
              items:
                $ref: '#/components/schemas/Locale'
              uniqueItems: true
              minItems: 1
              description: |
                When provided, only the resources with at least one of the locales in the list will be retrieved.
            tags:
              type: array
              items:
                $ref: '#/components/schemas/TagId'
              uniqueItems: true
              minItems: 1
              description: When provided, only the Content Fragments tagged with at least one of the tags in the list will be retrieved.
            metadata:
              type: array
              maxItems: 10
              minItems: 1
              items:
                $ref: '#/components/schemas/MetadataSearchEntry'
              description: When provided, return only Content Fragments whose metadata matches at least one of the provided key-value entries.
    SearchSort:
      type: array
      description: |
        Defines the sorting criteria for searching Content Fragments and Content Fragment Models. The criteria will be applied
        in the provided order.
      items:
        type: object
        properties:
          'on':
            description: A sorting criterion.
            type: string
            enum:
              - title
              - created
              - modified
              - modifiedOrCreated
          order:
            description: The sorting order that will be applied for the criterion.
            type: string
            enum:
              - ASC
              - DESC
            default: ASC
    ContentFragmentSearchPattern:
      type: object
      description: Filtering and Sorting criteria applied when searching for Content Fragments.
      properties:
        filter:
          $ref: '#/components/schemas/ContentFragmentSearchFilter'
        sort:
          $ref: '#/components/schemas/SearchSort'
      required:
        - filter
      example: '%7B%0A%20%20%20%22filter%22%3A%20%7B%0A%20%20%20%20%20%20%20%22created%22%3A%7B%0A%20%20%20%20%20%20%20%20%20%20%20%22by%22%3A%20%5B%22admin%22%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%22after%22%3A%20%222019-10-12T07%3A20%3A50.52Z%22%0A%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%0A%20%20%20%20%20%20%20%22path%22%3A%20%22%2Fcontent%2Fdam%22%2C%0A%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%22modelIds%22%3A%20%5B%22L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvYXV0aG9y%22%5D%0A%20%20%20%7D%0A%7D'
    NameSearchCriteria:
      type: object
      description: Search Content Fragment Model by name (title) or technical name (the name used for storing the Content Fragment Model).
      properties:
        name:
          type: string
          description: Name (title) or technical name used to search for Content Fragment Model.
        nameMatching:
          description: |
            Defines how the search will be performed base on the model's technical name or title:
            * EXACT_MATCH = case insensitive exact match of the model's technical name or title
            * PARTIAL_MATCH = looks for a case insensitive substring `name` in the model's technical name or title
          type: string
          enum:
            - EXACT_MATCH
            - PARTIAL_MATCH
          default: PARTIAL_MATCH
    ContentFragmentModelSearchFilter:
      allOf:
        - $ref: '#/components/schemas/SearchFilterBase'
        - type: object
          description: Search Filter criteria for Content Fragment Models
          properties:
            name:
              allOf:
                - $ref: '#/components/schemas/NameSearchCriteria'
              description: When provided, only the Content Fragment Model matching the given name will be retrieved.
            technicalName:
              allOf:
                - $ref: '#/components/schemas/NameSearchCriteria'
              description: When provided, only the Content Fragment Model matching the given technical name will be retrieved.
            configurationFolder:
              allOf:
                - $ref: '#/components/schemas/ContentFragmentModelPath'
              description: |
                When provided, only the Content Fragment Models that belong to the given configuration will be retrieved.
            status:
              type: array
              items:
                $ref: '#/components/schemas/ContentFragmentModelStatus'
              uniqueItems: true
              minItems: 1
              description: |
                When provided, only the Content Fragment Models matching the given status will be retrieved.
            replicationStatus:
              type: array
              items:
                $ref: '#/components/schemas/ReplicationStatus'
              uniqueItems: true
              minItems: 1
              description: |
                When provided, only the Content Fragment Models matching the given replication status on the `publish` tier will be retrieved.
            locked:
              type: boolean
              description: When provided, only the Content Fragment Models whose lock status matches this status will be retrieved.
            includeModelReferences:
              allOf:
                - $ref: '#/components/schemas/Base64URLId'
              description: When provided, only the parent references of the Content Fragment Model with the given id will be retrieved.
            enabledForFolder:
              allOf:
                - $ref: '#/components/schemas/ContentFragmentPath'
              description: |
                The `enabledForFolder` query parameter allows the caller to filter the list of Content Fragment Models based on their availability for a certain DAM (Digital Assets Management) folder. 
                As such, the provided path must be a DAM folder.
            ids:
              type: array
              description: |
                When provided, only the Content Fragment Models with the given ids will be retrieved.
                If both `ids` and `tags` are specified, the result will include models that match either of the criteria.
              items:
                $ref: '#/components/schemas/Base64URLId'
              uniqueItems: true
              minItems: 1
            tags:
              type: array
              items:
                $ref: '#/components/schemas/TagId'
              uniqueItems: true
              minItems: 1
              description: |
                When provided, only the Content Fragment Models tagged with at least one of the tags in the list will be retrieved.
                If both `ids` and `tags` are specified, the result will include models that match either of the criteria.
    ContentFragmentModelSearchPattern:
      type: object
      description: Filtering and Sorting criteria applied when searching for Content Fragment Models.
      properties:
        filter:
          $ref: '#/components/schemas/ContentFragmentModelSearchFilter'
        sort:
          $ref: '#/components/schemas/SearchSort'
      required:
        - filter
      example: '%7B%0A%20%20%20%22filter%22%3A%20%7B%0A%20%20%20%20%20%20%20%22created%22%3A%7B%0A%20%20%20%20%20%20%20%20%20%20%20%22by%22%3A%20%5B%22admin%22%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%22after%22%3A%20%222019-10-12T07%3A20%3A50.52Z%22%0A%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%0A%20%20%20%20%20%20%20%22configurationFolder%22%3A%20%22%2Fcontent%2Fdam%2Fwknd-shared%2Fen%2Fadventures%2Fwest-coast-cycling%22%2C%0A%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%22name%22%3A%20%22West%20Coast%20Cycling%22%0A%20%20%20%7D%0A%7D'
    BatchJobStatus:
      type: string
      description: This filter is used to filter the batch requests by their status.
      enum:
        - FINISHED
        - FINISHED_SUCCESS
        - FINISHED_FAILURE
        - UNFINISHED
        - UNFINISHED_ACTIVE
        - UNFINISHED_QUEUED
      default: FINISHED
    Status:
      type: string
      description: The status of a batch request
      enum:
        - QUEUED
        - ACTIVE
        - SUCCEEDED
        - STOPPED
        - GIVEN_UP
        - ERROR
        - DROPPED
    NameValue:
      type: object
      description: |
        The Header schema allows to define a name-value pair that could be used as a header or query parameter.
      properties:
        name:
          type: string
          description: The name.
        value:
          type: string
          description: The value.
    SingleResponse:
      type: object
      description: |
        This schema defines the response to a single request included in a batch request.
      properties:
        headers:
          type: array
          items:
            $ref: '#/components/schemas/NameValue'
        statusCode:
          type: integer
          description: The status code of the response.
          minimum: 100
          maximum: 599
        body:
          type: object
    BatchResponse:
      type: object
      properties:
        id:
          description: The ID of the Batch Request
          type: string
        status:
          $ref: '#/components/schemas/Status'
        responses:
          type: array
          items:
            $ref: '#/components/schemas/SingleResponse'
        created:
          type: string
          format: date-time
          description: The date and time when the batch request was created.
        finished:
          type: string
          format: date-time
          description: The date and time when the batch request was finished.
      required:
        - status
    BatchResponseListResult:
      type: object
      description: List of batch responses
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/BatchResponse'
        cursor:
          $ref: '#/components/schemas/Cursor'
    UrlPath:
      type: string
      description: The path part of the request URL.
      pattern: ^(?:(?!\*|\[|\]|\||\\|\|).)*$
    Method:
      type: string
      description: The HTTP method of the request.
      enum:
        - POST
        - PUT
        - DELETE
        - PATCH
    SingleRequest:
      type: object
      description: |
        The SingleRequest schema allows to define a single request that should be executed as part of a batch request.
      properties:
        path:
          $ref: '#/components/schemas/UrlPath'
        method:
          $ref: '#/components/schemas/Method'
        headers:
          type: array
          items:
            $ref: '#/components/schemas/NameValue'
        queryParameters:
          type: array
          items:
            $ref: '#/components/schemas/NameValue'
        body:
          type: object
      required:
        - path
        - method
    BatchRequest:
      type: object
      description: |
        The batch request schema allows to define a list of requests that should be executed in a batch.
      properties:
        requests:
          type: array
          items:
            $ref: '#/components/schemas/SingleRequest'
          minItems: 1
      required:
        - requests
    ContentFragmentChangeModel:
      type: object
      properties:
        modelId:
          $ref: '#/components/schemas/Base64URLId'
          description: The new model ID to be assigned to the Content Fragment.
      required:
        - modelId
    CopyContentFragmentTree:
      description: Request payload for copying a Content Fragment Tree
      allOf:
        - $ref: '#/components/schemas/CopyContentFragment'
        - type: object
          properties:
            copyReferencesToMainFolder:
              description: |
                If set to true, the references of the Content Fragment will be copied under the same folder as the main Content Fragment.
                If set to false, the references will be copied under their original folders.
              type: boolean
              default: false
    MetadataSchemaBinding:
      description: Request to bind a metadata schema to a resource (fragment or folder)
      type: object
      properties:
        resourcePath:
          type: string
          pattern: ^(\/content\/(dam|launches)\/.*)$
          description: |
            Absolute path to a content fragment, a content fragment included in a launch or a content folder under /content/dam.
          example: /content/dam/my-site/en/articles
        schemaId:
          type: string
          nullable: true
          description: |
            The metadata schema ID to bind. Set to null to unbind the schema.
          example: campaign.schema.json
      required:
        - resourcePath
    CloudEvents_3rdParty:
      description: |
        AEM Eventing uses the current schema definition for all eventing use cases. The schema definition is based on CloudEvents
        [1.0.2](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md).

        h2. Changes
        All Events once published MUST be treated like API. Changes to the event schema MUST be backwards compatible,
        i.e. prefer non-breaking changes (adding a field) which don't require an event type change and don't break the consumer.
        However, if there is a breaking change, it MUST be a new event type, while the old one is still sent out until no consumer
        still requires it.
      type: object
      properties:
        id:
          description: |
            An identifier for the event.  When used in combination with the `source` property, it allows for each instance of
            an event to be uniquely identified.  That is to say, the combination of the `source` + `id` properties will be
            unique for each distinct event. If a duplicate event is re-sent (e.g. due to a network error) it may have the same 
            id and should be treated as a duplicate.
          type: string
          minLength: 1
        source:
          description: |
            An instance of the [acct URI scheme](https://www.rfc-editor.org/rfc/rfc7565.html) that uniquely identifies the
            producer of this event, of the format `acct:aem-p<programId>-e<environmentId>@adobe.com`.
          type: string
          format: uri
          pattern: ^acct:aem(-cmstg)?-p\d+-e\d+@adobe\.com$
          minLength: 1
        specversion:
          description: |
            The version of the CloudEvents specification which the event uses.  AEM events use the CloudEvents spec version 
            1.0.2, hence this value will be 1.0.
          type: string
          enum:
            - '1.0'
          minLength: 3
        type:
          description: |
            The type for the event.  This will identify the AEM solution that has dispatched the event and may also include
            the type of entity and the activity that occurred.
          type: string
          pattern: ^aem\..*$
          minLength: 4
        datacontenttype:
          description: |
            The format of the data in the event.  This will always be `application/json` for AEM events.
          type: string
          enum:
            - application/json
          minLength: 1
        dataschema:
          description: |
            An optional attribute, which may point to a JSON schema document that covers the data object.
          type: string
          format: uri
        time:
          description: |
            A timestamp of when the event occurred.
          type: string
          format: date-time
          minLength: 1
        data:
          description: |
            The event payload.
          type: object
      required:
        - id
        - source
        - specversion
        - type
        - datacontenttype
        - time
        - data
      example:
        specversion: '1.0'
        type: aem.assets.asset.created
        source: acct:aem-p56789-e12345@adobe.com
        id: 7c1104e5-4cd7-47d6-a50f-2568c480f2e9
        time: '2018-04-05T17:31:00Z'
        datacontenttype: application/json
        data:
          myProp: myValue
    User:
      type: object
      description: This schema defines the properties of the user that generates an event
      properties:
        imsUserId:
          type: string
          description: The IMS user ID of the user who performed the action
        principalId:
          type: string
          description: The AEM principal ID of the user who performed the action
          minLength: 1
        displayName:
          type: string
          description: The display name of the user who performed the action
      required:
        - principalId
    SitesEventData:
      type: object
      properties:
        user:
          $ref: '#/components/schemas/User'
        path:
          $ref: '#/components/schemas/Path'
        sourceUrl:
          type: string
          description: The publicly accessible URL of the service from which the resource addressed by the current event could be retrieved.
          format: uri
      required:
        - user
        - path
    ContentFragmentModelIdentifierEvent:
      readOnly: true
      type: object
      description: Minimal information about a Content Fragment Model used in events payload.
      properties:
        id:
          $ref: '#/components/schemas/Base64URLId'
        path:
          $ref: '#/components/schemas/ContentFragmentModelPath'
          description: The path where this model is currently stored.
      required:
        - id
        - path
      example:
        id: L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL2Etc2ltcGxlLWNmbQ
        path: /conf/global/settings/dam/cfm/models/a-simple-cfm
    ContentFragmentEventData:
      allOf:
        - $ref: '#/components/schemas/SitesEventData'
        - type: object
          properties:
            model:
              $ref: '#/components/schemas/ContentFragmentModelIdentifierEvent'
            id:
              $ref: '#/components/schemas/UUID'
            tags:
              type: array
              description: |
                A list of tag IDs that are associated with the Content Fragment.
              items:
                $ref: '#/components/schemas/TagId'
          required:
            - model
            - id
    ContentFragmentCreatedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentEventData'
    Property:
      type: object
      additionalProperties: false
      properties:
        name:
          type: string
          minLength: 1
        changeType:
          type: string
          enum:
            - added
            - removed
            - modified
      required:
        - name
        - changeType
    PayloadProperties:
      description: An array of resource properties that have been affected by a change and are sent in the payload
      type: array
      minItems: 1
      items:
        $ref: '#/components/schemas/Property'
    ContentFragmentModifiedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentEventData'
        - type: object
          properties:
            properties:
              $ref: '#/components/schemas/PayloadProperties'
      required:
        - properties
    ContentFragmentDeletedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentEventData'
    ContentFragmentMovedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentEventData'
        - type: object
          properties:
            oldPath:
              $ref: '#/components/schemas/Path'
      required:
        - oldPath
    Tier:
      type: string
      description: The tier on which a publish operation has been performed, it can be either publish or preview.
      enum:
        - publish
        - preview
    ContentFragmentPublishedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentEventData'
        - type: object
          properties:
            tier:
              $ref: '#/components/schemas/Tier'
    ContentFragmentUnpublishedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentEventData'
        - type: object
          properties:
            tier:
              $ref: '#/components/schemas/Tier'
    ContentFragmentVariationEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentEventData'
        - type: object
          properties:
            properties:
              $ref: '#/components/schemas/PayloadProperties'
            variationName:
              type: string
              description: The path of the content fragment resource that was modified.
            changeSubType:
              type: string
              enum:
                - variation.added
                - variation.modified
                - variation.deleted
      required:
        - variationName
        - changeSubType
    ContentFragmentModelEventData:
      allOf:
        - $ref: '#/components/schemas/SitesEventData'
        - $ref: '#/components/schemas/ContentFragmentModelIdentifierEvent'
        - type: object
          properties:
            tags:
              type: array
              items:
                $ref: '#/components/schemas/TagId'
              description: The tags associated with the Content Fragment Model.
    ContentFragmentModelCreatedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelEventData'
    ContentFragmentModelDeletedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelEventData'
    ContentFragmentModelPublishedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelEventData'
        - type: object
          properties:
            tier:
              $ref: '#/components/schemas/Tier'
    ContentFragmentModelUnpublishedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelEventData'
        - type: object
          properties:
            tier:
              $ref: '#/components/schemas/Tier'
    ContentFragmentModelModifiedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/ContentFragmentModelEventData'
        - type: object
          properties:
            properties:
              $ref: '#/components/schemas/PayloadProperties'
      required:
        - properties
    PageTemplate:
      type: object
      description: AEM Sites Page Template
      properties:
        id:
          type: string
          description: The ID of the Page Template
          minLength: 1
      required:
        - id
    PageEventData:
      allOf:
        - $ref: '#/components/schemas/SitesEventData'
        - type: object
          properties:
            template:
              $ref: '#/components/schemas/PageTemplate'
          required:
            - template
    PageCreatedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/PageEventData'
    PageModifiedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/PageEventData'
        - type: object
          properties:
            properties:
              $ref: '#/components/schemas/PayloadProperties'
      required:
        - properties
    PageDeletedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/PageEventData'
    PageMovedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/PageEventData'
        - type: object
          properties:
            oldPath:
              $ref: '#/components/schemas/Path'
      required:
        - oldPath
    PagePublishedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/PageEventData'
        - type: object
          properties:
            tier:
              $ref: '#/components/schemas/Tier'
    PageUnpublishedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/PageEventData'
        - type: object
          properties:
            tier:
              $ref: '#/components/schemas/Tier'
    PageVersionedEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/PageEventData'
        - type: object
          properties:
            version:
              type: string
              description: The version of the resource that the event refers to
      required:
        - version
    PageRestoredEventData:
      type: object
      allOf:
        - $ref: '#/components/schemas/PageVersionedEventData'
  parameters:
    cursor:
      in: query
      name: cursor
      description: |
        When the number of results for a request exceeds the allowed limit, the response will include a `cursor`.  That value can then be sent via this parameter on a subsequent request to retrieve the next set of items.
      schema:
        $ref: '#/components/schemas/Cursor'
    limit:
      in: query
      name: limit
      description: |
        For a paginated request, this parameter defines the maximum number of items to retrieve.
      schema:
        $ref: '#/components/schemas/Limit'
    If-None-Match:
      name: If-None-Match
      description: |
        The `If-None-Match` header field makes the request method conditional on a recipient cache or origin server either
        not having any current representation of the target resource, when the field value is "*", or having a selected
        representation with an entity tag that does not match any of those listed in the field value.

        For more details, please head over to [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-if-none-match).
      in: header
      required: false
      schema:
        type: string
    If-Match:
      name: If-Match
      description: |
        The `If-Match` header field makes the request method conditional on the recipient origin server either having at least
        one current representation of the target resource, when the field value is "*", or having a current representation of
        the target resource that has an entity tag matching a member of the list of entity tags provided in the field value.

        For more details, please head over to [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-if-match).
      in: header
      required: true
      schema:
        type: string
        description: The value of an `ETag` received for a previous `HEAD` or `GET` request to this resource.
    X-Adobe-Accept-Unsupported-API:
      name: X-Adobe-Accept-Unsupported-API
      description: |
        The `X-Adobe-Accept-Unsupported-API` request header is required when a client wants to opt-in into using a product-only
        API, not designed for public consumption. Not providing this header to an endpoint that requires it will make the
        server answer with a 400 status code.
      in: header
      required: true
      schema:
        type: integer
        enum:
          - 1
    includeMetadata:
      in: query
      name: includeMetadata
      description: |
        When true, includes all metadata properties with the schema identifier.
        The schema identifier is resolved from the fragment itself or its parent folder hierarchy.
      schema:
        type: boolean
        default: false
      required: false
    partial:
      in: query
      name: partial
      x-audience: cloud
      description: |
        Optional UTF-8 encoded parameter that filters the response to include only a specific composite field or nested structure within a composite field. 

        **Syntax**: Uses path-like syntax with these formats:
        - '/fieldName/index' - Access specific instance of a named composite field
        - '/fieldIndex/index' - Access specific instance using field position instead of name

        Where:
        - fieldName: The name of the composite field to filter
        - fieldIndex: Zero-based position of the field in the fragment's field list
        - index: Zero-based index of the specific instance within a multi-value composite field

        **Behavior**: 
        - Transforms the targeted composite field's nested structure into a flat field list
        - Excludes all other fields from the response
        - Useful for focused operations like partial updates, validation, or when working with large fragments where only specific composite data is needed
      schema:
        type: string
      examples:
        single-composite-field:
          value: /companyAddress/0
          description: |
            Filters output to show only the first instance (index 0) of the 'companyAddress' composite field. 
            Result: Returns only the nested fields within the companyAddress composite (street, city, number), excluding all other top-level fields.

            Fragment structure before filtering:
            {
              "fields": [
                {"name": "companyName", "values": ["Adobe"]},
                {"name": "companyAddress", "values": [{"street": "Main St", "city": "San Jose", "number": 345}]},
                {"name": "numberOfEmployees", "values": [25000]}
              ]
            }

            Fragment structure after filtering with /companyAddress/0:
            {
              "fields": [
                {"name": "street", "values": ["Main St"]},
                {"name": "city", "values": ["San Jose"]},
                {"name": "number", "values": [345]}
              ]
            }
        field-by-position:
          value: /1/0
          description: |
            Filters output using positional indexing where the first number (1) refers to the second field in the fragment's field list (0-based indexing), and the second number (0) refers to the first instance of that composite field.

            Use case: When you know the field position but not the field name, or when working with dynamically generated field structures.

            Example: If a fragment has fields in order [textField, compositeField, numberField], then '/1/0' targets the first instance of the composite field at position 1.
      required: false
    ContentFragmentVariationSearchParameter:
      in: query
      name: query
      description: |
        The `query` parameter provides filtering criteria that should be applied
        when performing a search. The results are ordered by modifiedOrCreated date. The value passed should be valid JSON that has been
        URL encoded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ContentFragmentVariationSearchPattern'
      required: true
    variation:
      name: variation
      in: query
      required: false
      x-audience: cloud
      schema:
        type: string
        example: variation_2026
      description: |
        Optional variation name. When used together with `partial`, the composite
        fragment view is resolved in the context of the given variation instead of
        the master. Ignored when `partial` is not provided.
    WorkflowSearchParameter:
      in: query
      name: query
      description: |
        The `query` parameter provides filtering and sorting criteria that should be applied
        when performing a search. The value passed should be valid JSON that has been
        URL encoded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/WorkflowSearchPattern'
      required: false
    ContentFragmentSearchParameter:
      in: query
      name: query
      description: |
        The `query` parameter provides filtering and sorting criteria that should be applied
        when performing a search. The value passed should be valid JSON that has been
        URL encoded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ContentFragmentSearchPattern'
      required: true
    ContentFragmentModelSearchParameter:
      in: query
      name: query
      description: The `query` parameter provides filtering and sorting criteria that should be applied when performing a search. The value passed should be valid JSON that has been URL encoded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ContentFragmentModelSearchPattern'
      required: true
    createVersion:
      in: query
      name: createVersion
      required: false
      description: |
        When `true`, a new version of the Content Fragment is created after the update has
        been successfully applied. The version is created using the system default label.
        When the update fails, no version is created. Defaults to `false`.
      schema:
        type: boolean
        default: false
  examples:
    ContentFragmentModelMinimal:
      summary: Retrieve Content Fragment Models using minimal projection
      value:
        items:
          - id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvYWR2ZW50dXJl
            path: /conf/wknd-shared/settings/dam/cfm/models/adventure
            name: Adventure
    ContentFragmentModelSummary:
      summary: Retrieve Content Fragment Models using summary projection
      value:
        items:
          - id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NvbmYvY29udGVudC1mcmFnbWVudC1tb2RlbC1zY3JpcHRz
            path: /conf/wknd-shared/settings/dam/cfm/models/adventure
            name: Adventure
            etag: eddd95e986a7aff0500f0649bcf6604c
            description: ''
            created:
              at: '2023-08-02T16:01:34.582+03:00'
              by: admin
            modified:
              at: '2022-06-01T10:17:43.668-07:00'
              by: admin
            locked: false
            status: enabled
    CreateSelfReferencingModel:
      summary: Create a self-referencing Content Fragment Model
      description: |
        A `content-fragment` field references the model it belongs to by listing
        that model's short path (`/conf/<configurationFolder>/<name>`) in `items`.
        The short path can be combined with regular Content Fragment Model IDs in the same `items` array.
      value:
        configurationFolder: /conf/wknd
        models:
          - name: Article Model
            technicalName: article
            fields:
              - type: text
                name: title
                label: Title
                required: true
              - type: content-fragment
                name: relatedArticles
                label: Related Articles
                multiple: true
                root: /content/dam/wknd
                items:
                  - /conf/wknd/Article Model
                  - L2NvbmYvZ2xvYmFsL3NldHRpbmdzL2RhbS9jZm0vbW9kZWxzL3NpbXBsZS1jZg
    AddStringPatch:
      summary: Adds the string value from property `value ` to the location indicated by the `path` parameter.
      value:
        - op: add
          path: /dc:title
          value: Flower Photo
    AddNumberPatch:
      summary: Adds the number value from property `value ` to the location indicated by the `path` parameter.
      value:
        - op: add
          path: /value
          value: 20
    AddArrayPatch:
      summary: Adds the array from property `value` to the location indicated by the `path` parameter.
      value:
        - op: add
          path: /hello
          value:
            - world
    AddObjectPatch:
      summary: Adds the object from property `value ` to the location indicated by the `path` parameter.
      value:
        - op: add
          path: /plants/-
          value:
            type: flower
            name: Rose
            stage: blooming
    CopyPatch:
      summary: Copies information from the location described by the `from` parameter to the location described by the `path` parameter.
      value:
        - op: copy
          from: /dc:title
          path: /custom:title
    MovePatch:
      summary: Move an entity from the location described by the `from` parameter to the location described by the `path` parameter. This operation is most often used to rename a property.
      value:
        - op: move
          from: /cameraLocation
          path: /cameraPosition
    RemovePatch:
      summary: Remove the entity at the location pointed to by the `path` parameter.
      value:
        - op: remove
          path: /cameraLocation
    ReplaceStringPatch:
      summary: Replaces information at the location indicated by the `path` parameter with the string from `value` parameter.
      value:
        - op: replace
          path: /dc:title
          value: Sun Flower Photo
    ReplaceNumberPatch:
      summary: Replaces information at the location indicated by the `path` parameter with the number from `value` parameter.
      value:
        - op: replace
          path: /value
          value: 2024
    ReplaceArrayPatch:
      summary: Replaces information at the location indicated by the `path` parameter with the array from `value` parameter.
      value:
        - op: replace
          path: /hello
          value:
            - world
    ReplaceObjectPatch:
      summary: Replaces information at the location indicated by the `path` parameter with the object from `value` parameter.
      value:
        - op: replace
          path: /plants/0
          value:
            type: tree
            name: Oak
            stage: acorn
    MultipleOperationsPatch:
      summary: Chain of multiple patch operations
      value:
        - op: replace
          path: /title
          value: Sun Flower Photo
        - op: remove
          path: /description
        - op: move
          from: /cameraLocation
          path: /cameraPosition
    PatchContentFragmentModel:
      summary: Changing a CFM name using PATCH
      value:
        id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvYWR2ZW50dXJl
        path: /conf/wknd-shared/settings/dam/cfm/models/adventure
        name: Name changed by PATCH CFM
        description: ''
        created:
          at: '2023-08-02T16:01:34.582+03:00'
          by: admin
        modified:
          at: '2022-06-01T10:17:43.668-07:00'
          by: admin
        locked: false
        status: enabled
        fields:
          - type: text
            name: title
            label: Title
            required: true
            multiple: false
            maxLength: 255
            validationType: none
          - type: text
            name: slug
            label: Slug
            description: A short path to uniquely identify the Adventure. Can be used for pathing in client applications.
            required: true
            multiple: false
            maxLength: 255
            validationType: custom
            customValidationRegex: ^[a-z0-9\-_]{5,40}$
            customErrorMessage: Slug must be at least 5 characters in length, lower case, using only letters and numbers and no spaces. Only special characters that can be used are dashes and underscore..
          - type: long-text
            name: description
            label: Description
            description: An overview of the trip.
            required: false
            multiple: false
            mimeType: text/html
          - type: enumeration
            name: adventureType
            label: Adventure Type
            required: false
            multiple: true
            hint: select
            values:
              - key: Day Trip
                value: Day Trip
              - key: Overnight Trip
                value: Overnight Trip
              - key: Training Session
                value: Training Session
          - type: text
            name: tripLength
            label: Trip Length
            required: false
            multiple: false
            maxLength: 255
            validationType: none
          - type: enumeration
            name: activity
            label: Activity
            required: false
            multiple: true
            hint: select
            values:
              - key: Camping
                value: Camping
              - key: Surfing
                value: Surfing
              - key: Skiing
                value: Skiing
              - key: Cycling
                value: Cycling
              - key: Hiking
                value: Hiking
              - key: Skateboarding
                value: Skateboarding
              - key: Rock Climbing
                value: Rock Climbing
              - key: Running
                value: Running
              - key: Snowboarding
                value: Snowboarding
              - key: Social
                value: Social
          - type: number
            name: groupSize
            label: Group Size
            description: Group size
            required: false
            multiple: false
            min: 1
          - type: enumeration
            name: difficulty
            label: Difficulty
            required: false
            multiple: true
            hint: select
            values:
              - key: Beginner
                value: Beginner
              - key: Intermediate
                value: Intermediate
              - key: Advanced
                value: Advanced
              - key: Expert
                value: Expert
          - type: float-number
            name: price
            label: Price
            description: Price of the Adventure
            required: false
            multiple: false
            defaultValue: 100
          - type: content-reference
            name: primaryImage
            label: Primary Image
            required: false
            multiple: false
            showThumbnail: false
            root: /content/dam/wknd
            allowedContentTypes:
              - image
          - type: long-text
            name: itinerary
            label: Itinerary
            required: false
            multiple: false
            mimeType: text/html
          - type: long-text
            name: gearList
            label: What to Bring
            required: false
            multiple: false
            mimeType: text/html
        tags:
          - id: wknd-shared:season/summer
            title: Summer
            i18n: []
            titlePath: 'WKND Shared : Season / Summer'
            name: summer
            path: /content/cq:tags/wknd-shared/season/summer
            description: ''
          - id: wknd-shared:season/spring
            title: Spring
            i18n: []
            titlePath: 'WKND Shared : Season / Spring'
            name: spring
            path: /content/cq:tags/wknd-shared/season/spring
            description: ''
    UISchemaResponseBody:
      summary: An example of a response body containing the uiSchema and the static schema
      value:
        uiSchema:
          type: HorizontalLayout
          elements:
            - type: Control
              label: Source
              scope: '#/properties/source'
            - type: Control
              label: Image
              scope: '#/properties/image'
            - type: Control
              label: Video
              scope: '#/properties/video'
            - type: Control
              label: Image
              scope: '#/properties/image'
        staticSchema:
          type: object
          properties:
            source:
              type: boolean
              description: media source
            image:
              type: string
              description: image source
            video:
              type: string
              description: video source
          required:
            - source
    Tabs:
      summary: Create a Tab Structure through UI Schema
      value:
        uiSchema:
          type: Categorization
          elements:
            - type: Category
              label: Personal Information
              elements:
                - type: Control
                  scope: '#/properties/firstName'
                - type: Control
                  scope: '#/properties/secondName'
            - type: Category
              label: Address
              elements:
                - type: Control
                  scope: '#/properties/address/properties/street'
                - type: Control
                  scope: '#/properties/address/properties/streetNumber'
    CategoryHeadlines:
      summary: Create a Category Headlines through UI Schema
      value:
        uiSchema:
          type: VerticalLayout
          elements:
            - type: Group
              label: Header
              elements:
                - type: Control
                  label: Headline text
                  scope: '#/properties/headline-text'
                - type: Control
                  label: Headline HTML Tag
                  scope: '#/properties/headline-html-tag'
                - type: Control
                  label: Subline text
                  scope: '#/properties/subline-text'
            - type: Group
              label: Primary
              elements:
                - type: Control
                  label: Button Link - Text
                  scope: '#/properties/button-link-text'
                - type: Control
                  label: Button Link - URL
                  scope: '#/properties/button-link-url'
    CollapsibleFields:
      summary: Create Collapsible Fields through UI Schema
      value:
        uiSchema:
          type: Categorization
          elements:
            - type: Category
              label: First Tab
              elements:
                - type: Control
                  scope: '#/properties/firstName'
                - type: Group
                  label: Header
                  options:
                    collapsible: true
                  elements:
                    - type: Control
                      scope: '#/properties/secondName'
            - type: Category
              label: Second Tab
              elements:
                - type: Control
                  scope: '#/properties/address/properties/street'
                - type: Control
                  scope: '#/properties/address/properties/streetNumber'
    ConditionalFields:
      summary: Create Conditional Fields through UI Schema
      value:
        uiSchema:
          type: VerticalLayout
          elements:
            - type: Control
              label: Image name
              scope: '#/properties/image-name'
            - type: Control
              label: Show Image?
              scope: '#/properties/image'
            - type: Control
              scope: '#/properties/contentReferenceField'
              rule:
                effect: SHOW
                condition:
                  scope: '#/properties/image'
                  schema:
                    const: true
                    required:
                      - image-name
    ConditionalRequiredFields:
      summary: Create Conditional Required Fields through UI Schema
      value:
        uiSchema:
          type: VerticalLayout
          elements:
            - type: Control
              label: Source
              scope: '#/properties/source'
            - type: Control
              label: Source
              scope: '#/properties/image'
            - type: Control
              label: Source
              scope: '#/properties/video'
        constraints:
          - if:
              properties:
                source:
                  const: true
            then:
              required:
                - image
            else:
              required:
                - video
    ContentFragment:
      summary: Content Fragment response
      value:
        path: /content/dam/wknd-shared/en/contributors/ian-provo
        title: Title has been replaced
        description: ''
        id: 6d980e6a-c9e7-444b-af43-5503c46a061c
        created:
          at: '2023-08-02T16:01:48.275+03:00'
          by: admin
        modified:
          at: '2023-08-04T14:51:58.597+03:00'
          by: admin
        status: DRAFT
        fields:
          - type: text
            name: firstName
            multiple: false
            values:
              - Ian
          - type: text
            name: lastName
            multiple: false
            values:
              - Provo
          - type: content-reference
            name: profilePicture
            multiple: false
            values:
              - /content/dam/wknd-shared/en/contributors/ian_provo.jpg
          - type: date-time
            name: birthDay
            multiple: false
            values:
              - '1988-09-26T14:09:00-07:00'
          - type: long-text
            name: biography
            multiple: false
            mimeType: text/html
            values: []
          - type: enumeration
            name: occupations
            multiple: true
            values:
              - Influencer
              - Photographer
        variations:
          - name: another
            title: Another
            description: ''
            fields:
              - type: text
                name: firstName
                multiple: false
                values:
                  - IanX
              - type: text
                name: lastName
                multiple: false
                values:
                  - Provo
              - type: content-reference
                name: profilePicture
                multiple: false
                values:
                  - /content/dam/wknd-shared/en/contributors/ian_provo.jpg
              - type: date-time
                name: birthDay
                multiple: false
                values: []
              - type: long-text
                name: biography
                multiple: false
                mimeType: text/html
                values: []
              - type: enumeration
                name: occupations
                multiple: true
                values:
                  - Influencer
            tags: []
        tags:
          - id: wknd-shared:activity/social
            title: Social
            i18n: []
            titlePath: 'WKND Shared : Activity / Social'
            name: social
            path: /content/cq:tags/wknd-shared/activity/social
            description: ''
        references:
          - type: asset
            name: ian_provo.jpg
            fieldName: profilePicture
            path: /content/dam/wknd-shared/en/contributors/ian_provo.jpg
            created:
              at: '2023-08-02T16:01:47.765+03:00'
              by: admin
            status: DRAFT
            assetId: urn:aaid:aem:1fb05fe4-c12b-4f85-b1ca-aa92cdbd6a62
            repo:size: 251434
            dc:format: image/jpeg
            tiff:ImageWidth: 1152
            tiff:ImageHeight: 1152
        model:
          id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvYXV0aG9y
          path: /conf/wknd-shared/settings/dam/cfm/models/author
          name: Author
          title: Author
        validationStatus: []
        fieldTags: []
    PatchContentFragment:
      summary: Changed a CF title using PATCH
      value:
        path: /content/dam/wknd-shared/en/contributors/ian-provo
        title: Title has been replaced
        description: ''
        id: 6d980e6a-c9e7-444b-af43-5503c46a061c
        created:
          at: '2023-08-02T16:01:48.275+03:00'
          by: admin
        modified:
          at: '2023-08-04T14:51:58.597+03:00'
          by: admin
        status: DRAFT
        fields:
          - type: text
            name: firstName
            multiple: false
            values:
              - Ian
          - type: text
            name: lastName
            multiple: false
            values:
              - Provo
          - type: content-reference
            name: profilePicture
            multiple: false
            values:
              - /content/dam/wknd-shared/en/contributors/ian_provo.jpg
          - type: date-time
            name: birthDay
            multiple: false
            values:
              - '1988-09-26T14:09:00-07:00'
          - type: long-text
            name: biography
            multiple: false
            mimeType: text/html
            values: []
          - type: enumeration
            name: occupations
            multiple: true
            values:
              - Influencer
              - Photographer
        variations:
          - name: another
            title: Another
            description: ''
            fields:
              - type: text
                name: firstName
                multiple: false
                values:
                  - IanX
              - type: text
                name: lastName
                multiple: false
                values:
                  - Provo
              - type: content-reference
                name: profilePicture
                multiple: false
                values:
                  - /content/dam/wknd-shared/en/contributors/ian_provo.jpg
              - type: date-time
                name: birthDay
                multiple: false
                values: []
              - type: long-text
                name: biography
                multiple: false
                mimeType: text/html
                values: []
              - type: enumeration
                name: occupations
                multiple: true
                values:
                  - Influencer
            tags: []
        tags:
          - id: wknd-shared:activity/social
            title: Social
            i18n: []
            titlePath: 'WKND Shared : Activity / Social'
            name: social
            path: /content/cq:tags/wknd-shared/activity/social
            description: ''
        references:
          - type: asset
            name: ian_provo.jpg
            fieldName: profilePicture
            path: /content/dam/wknd-shared/en/contributors/ian_provo.jpg
            created:
              at: '2023-08-02T16:01:47.765+03:00'
              by: admin
            status: DRAFT
            assetId: urn:aaid:aem:1fb05fe4-c12b-4f85-b1ca-aa92cdbd6a62
            repo:size: 251434
            dc:format: image/jpeg
            tiff:ImageWidth: 1152
            tiff:ImageHeight: 1152
        model:
          id: L2NvbmYvd2tuZC1zaGFyZWQvc2V0dGluZ3MvZGFtL2NmbS9tb2RlbHMvYXV0aG9y
          path: /conf/wknd-shared/settings/dam/cfm/models/author
          name: Author
          title: Author
        validationStatus: []
        fieldTags: []
    PatchContentFragmentVariation:
      summary: Changed a CF Variation title using PATCH
      value:
        name: another
        title: Title has been replaced
        description: The Summit 2023 variation
        fields:
          - type: text
            name: firstName
            multiple: false
            values:
              - IanX
          - type: text
            name: lastName
            multiple: false
            values:
              - Provo
          - type: content-reference
            name: profilePicture
            multiple: false
            values:
              - /content/dam/wknd-shared/en/contributors/ian_provo.jpg
          - type: date-time
            name: birthDay
            multiple: false
            values: []
          - type: long-text
            name: biography
            multiple: false
            mimeType: text/html
            values: []
          - type: enumeration
            name: occupations
            multiple: true
            values:
              - Influencer
        tags: []
    PublishFragmentsByIds:
      summary: Publish a CF using an array of ids
      value:
        ids:
          - 21269b12-57ed-487c-ae0d-fe316a2f8ada
          - 3ce2bf53-7436-4d3e-b19a-2793bc2ca63e
        filterReferencesByStatus:
          - DRAFT
          - UNPUBLISHED
        workflowModelId: /etc/workflow/models/scheduled_activation_with_references
        workflowTitle: Workflow Title
        scheduledTime: 1635244063701
    PublishFragmentsByPaths:
      summary: Publish a CF using an array of paths
      value:
        paths:
          - /content/dam/wknd-shared/en/contributors/ian-provo
          - /content/dam/wknd-shared/en/contributors/jacob-wester
        filterReferencesByStatus:
          - DRAFT
          - UNPUBLISHED
        workflowModelId: /etc/workflow/models/scheduled_activation_with_references
        workflowTitle: Workflow Title
        scheduledTime: 1635244063701
  responses:
    400_BadRequest:
      description: |
        Bad Request.
        Indicates that the server cannot or will not process the request due to something that is perceived to be a client error. The Problem Details object will provide more information about the exact cause.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  status:
                    type: integer
                    default: 400
                  title:
                    type: string
                    default: Bad Request
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/bad_request
            title: Bad Request
            status: 400
            detail: Bad request, please check that you have provided the correct parameters and that they are valid.
    403_Forbidden:
      description: |
        Forbidden. Indicates that the server understood the request but refuses to fulfil it.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  status:
                    type: integer
                    default: 403
                  title:
                    type: string
                    default: Forbidden
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/forbidden
            title: Forbidden
            status: 403
            detail: The credentials provided do not have sufficient permissions to access this resource.
    406_Unacceptable:
      description: |
        Not Acceptable.
        Indicates that the target resource does not have a current representation that would be acceptable to the user agent,
        according to the proactive negotiation header fields received in the request.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  title:
                    type: string
                    example: Unacceptable
                  status:
                    type: integer
                    default: 406
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/not_acceptable
            title: Not Acceptable
            status: 406
            detail: |
              The target resource does not have a current representation that would be acceptable to the user agent, 
              according to the proactive negotiation header fields received in the request.
    500_InternalServerError:
      description: |
        Internal Server Error. Indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  status:
                    type: integer
                    default: 500
                  title:
                    type: string
                    default: Internal Server Error
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/internal_server_error
            title: Internal Server Error
            status: 500
            detail: The server encountered an unexpected condition that prevented it from fulfilling the request.
    409_Conflict:
      description: |
        Conflict. Indicates that the request could not be completed due to a conflict with the current state of the target resource.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  status:
                    type: integer
                    default: 409
                  title:
                    type: string
                    default: Conflict
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/conflict
            title: Conflict
            status: 409
            detail: The current state of the resource on the server is incompatible with your request.
    415_UnsupportedMediaType:
      description: |
        Unsupported Media Type. Indicates that the origin server is refusing to service the request because the content is in a format not supported by this method on the target resource.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  title:
                    type: string
                    example: Unsupported Media Type
                  status:
                    type: integer
                    default: 415
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/unsupported_media_type
            title: Unsupported Media Type
            status: 415
            detail: This request is not acceptable because the payload is in an unsupported format.
    304_NotModified:
      description: Not Modified
      content: {}
      headers:
        ETag:
          $ref: '#/components/headers/ETag'
        Last-Modified:
          $ref: '#/components/headers/Last-Modified'
    404_NotFound:
      description: |
        Not Found. Indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  status:
                    type: integer
                    default: 404
                  title:
                    type: string
                    default: Not Found
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/not_found
            title: Not Found
            status: 404
            detail: The requested resource could not be found.
    412_PreconditionFailed:
      description: |
        Precondition Failed. Indicates that one or more conditions given in the request header fields evaluated to false when tested on the server.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  title:
                    type: string
                    default: Precondition Failed
                  status:
                    type: integer
                    default: 412
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/precondition_failed
            title: Precondition Failed
            status: 412
            detail: The provided conditional header was not fulfilled.
    428_PreconditionRequired:
      description: |
        Precondition Required. Indicates that the origin server requires the request to be conditional.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  title:
                    type: string
                    default: Precondition Required
                  status:
                    type: integer
                    default: 428
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/precondition_required
            title: Precondition Required
            status: 428
            detail: This operation requires the use of a conditional header.
    TagsListResponse:
      description: A successful response that returns the list of tags.
      headers:
        ETag:
          $ref: '#/components/headers/ETag'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TagList'
    204_NoContent:
      description: No Content
    400_BadRequest_WithValidation:
      description: Bad Request. The Problem Details object will provide more information about the exact cause.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  status:
                    type: integer
                    default: 400
                  title:
                    type: string
                    default: Bad Request
                  validationStatus:
                    $ref: '#/components/schemas/ValidationStatus'
    413_ContentTooLarge:
      description: |
        Content Too Large. Indicates that the server is refusing to process a request because the request content is larger than the server is willing or able to process.
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  title:
                    type: string
                    default: Content Too Large
                  status:
                    type: integer
                    default: 413
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/content_too_large
            title: Content Too Large
            status: 413
            detail: The provided conditional header was not fulfilled.
  headers:
    ETag:
      schema:
        type: string
      description: |
        The `ETag` field in a response provides the current entity tag for the selected representation, as determined at the
        conclusion of handling the request. An entity tag is an opaque validator for differentiating between multiple
        representations of the same resource, regardless of whether those multiple representations are due to resource state
        changes over time, content negotiation resulting in multiple representations being valid at the same time, or both.
        An entity tag consists of an opaque quoted string, possibly prefixed by a weakness indicator.

        For more details, please head over to [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-etag).
      required: true
    Last-Modified:
      schema:
        type: string
      description: |
        The "Last-Modified" header field in a response provides a timestamp indicating the date and time at which the origin
        server believes the selected representation was last modified, as determined at the conclusion of handling the
        request.

        For more details, please head over to [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-last-modified).
      required: true
    X-References-Limit:
      schema:
        type: integer
        minimum: 0
      description: |
        The 'X-References-Limit' header provides the maximum configured number of references that can be included in the response.
      required: false
    X-References-Retrieved:
      schema:
        type: integer
        minimum: 0
      description: |
        The 'X-References-Retrieved' header provides the number of references retrieved for the given resource.
      required: false
    Location:
      schema:
        type: string
        format: uri
      description: |
        The `Location` header field is used in some responses to refer to a specific resource in relation to the response.
        The type of relationship is defined by the combination of request method and status code semantics.

        For more details, please head over to [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-location).
      required: true
    Retry-After:
      schema:
        anyOf:
          - type: string
            pattern: ^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (([0-2][0-9]|3[01] Jan)|([0-2][0-9] Feb)|([0-2][0-9]|3[01] Mar)|([0-2][0-9]|30 Apr)|([0-2][0-9]|3[01] May)|([0-2][0-9]|30 Jun)|([0-2][0-9]|3[01] Jul)|([0-2][0-9]|3[01] Aug)|([0-2][0-9]|30 Sep)|([0-2][0-9]|3[01] Oct)|([0-2][0-9]|30 Nov)|([0-2][0-9]|3[01] Dec)) ([0-9]{4}) ([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]) GMT$
            example: Fri, 31 Dec 1999 23:59:59 GMT
            description: The HTTP-date to which the user agent should wait to make a follow up request
          - type: integer
            format: int32
            minimum: 0
            example: 120
            description: The number of seconds the user agent should wait to make a follow up request
      description: |
        The `Retry-After` header indicates how long the user agent should wait before making a follow-up request.

        The Retry-After value can be either an HTTP-date or a number of seconds to delay after receiving the response.

        For more details, please head over to [RFC9110](https://datatracker.ietf.org/doc/html/rfc9110#name-retry-after).
