openapi: 3.0.3
info:
  title: Launches for Content Fragments API
  description: This API supports AEM as a Cloud Service version 2026.01 or newer and AEM 6.5 LTS SP2 or newer
  version: '2026.10'
servers:
  - url: https://{bucket}.adobeaemcloud.com/adobe/launches
    variables:
      bucket:
        default: ''
        description: The bucket to use for this request, e.g. author-p12345-e123456
security:
  - Bearer: []
paths:
  /:
    get:
      summary: List all Launches
      description: |
        This operation provides support for retrieving all the Content Fragments Launches 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.
      operationId: getLaunches
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/LaunchesSearchParameter'
      responses:
        '200':
          description: |
            List of Launches.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/LaunchDetails'
                  cursor:
                    $ref: '#/components/schemas/Cursor'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    post:
      summary: Create a Launch
      operationId: createLaunch
      description: This operation creates a Launch, given the appropriate parameters.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateLaunchRequest'
      responses:
        '202':
          description: This is an asynchronous operation. Please follow the URL from the `Location` header to get the status of the job that creates the Launch.
          headers:
            Location:
              $ref: '#/components/headers/Location'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '415':
          $ref: '#/components/responses/415_UnsupportedMediaType'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /{launchId}:
    parameters:
      - in: path
        name: launchId
        required: true
        description: Id of the launch for which the operation is performed
        schema:
          type: string
    delete:
      summary: Delete a Launch
      operationId: deleteLaunch
      description: |
        This operation deletes a Launch, given the appropriate parameters. 
        The `ETag` value required by the `If-Match` header must contain the value of the `ETag` header returned by the corresponding `GET` request.
      parameters:
        - $ref: '#/components/parameters/If-Match'
      responses:
        '202':
          description: Request to delete the launch was accepted. Use the Location header to get the status of the job that deletes the launch.
          headers:
            Location:
              $ref: '#/components/headers/Location'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '412':
          $ref: '#/components/responses/412_PreconditionFailed'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    get:
      summary: Get a Launch
      operationId: getLaunch
      parameters:
        - $ref: '#/components/parameters/If-None-Match'
      responses:
        '200':
          description: Launch found
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LaunchDetails'
        '304':
          $ref: '#/components/responses/304_NotModified'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    put:
      operationId: updateLaunchDetails
      summary: Update properties of a Launch
      description: |
        This operation allows fully updating the properties of a Launch. The changes are passed as JSON.

        Update requests should pass the most recent `ETag` value received from the server using the getLaunch or from this endpoint.
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditLaunchDetailsPayload'
      responses:
        '200':
          description: OK
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LaunchDetails'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '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'
  /{launchId}/sources:
    parameters:
      - in: path
        name: launchId
        required: true
        description: Id of the launch for which the operation is performed
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      summary: Get all sources of a Launch
      operationId: get-launch-sources
      description: |
        This operation provides support for retrieving all the sources IDs that belong to the Launch. 
        The `ETag` value that can be passed to the `If-None-Match` header must contain the value of the `ETag` header returned by the `GET /launches/{launchId}`  request.
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/If-None-Match'
      responses:
        '200':
          description: |
            List of content fragment IDs that belong to the launch. 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.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    $ref: '#/components/schemas/LaunchSources'
                  cursor:
                    $ref: '#/components/schemas/Cursor'
                  self:
                    $ref: '#/components/schemas/LaunchDetails'
        '304':
          $ref: '#/components/responses/304_NotModified'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
    post:
      summary: Edit a Launch's sources
      operationId: editLaunch
      description: |
        This operation edits the sources of a Launch, given the appropriate parameters. 
        The `ETag` value required by the `If-Match` header must contain the value of the `ETag` header returned by the `GET /launches/{launchId}` request.
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditLaunchPayload'
      responses:
        '202':
          description: Request to edit the launch's sources was accepted. Use the Location header to get the status of the job that edits the launch.
          headers:
            Location:
              $ref: '#/components/headers/Location'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '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'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /{launchId}/rebase:
    parameters:
      - in: path
        name: launchId
        required: true
        description: Id of the launch for which the operation is performed.
        schema:
          $ref: '#/components/schemas/UUID'
      - $ref: '#/components/parameters/If-Match'
    post:
      description: |
        Perform a rebase of this Launch over the production sources or another Launch, depending on the provided parameters. 
        The `ETag` value that can be passed to the `If-Match` header must contain the value of the `ETag` header returned by the `GET /launches/{launchId}`  request.
      summary: Rebase a Launch
      operationId: performLaunchRebase
      parameters:
        - $ref: '#/components/parameters/If-Match'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LaunchOperationParameters'
      responses:
        '202':
          description: Request to perform Launch rebase was accepted.
          headers:
            Location:
              $ref: '#/components/headers/Location'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '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'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /{launchId}/promote:
    parameters:
      - in: path
        name: launchId
        required: true
        description: Id of the launch for which the operation is performed
        schema:
          $ref: '#/components/schemas/UUID'
    post:
      description: Perform a promote of this Launch to production or another Launch, depending on the provided parameters
      summary: Promote a Launch
      operationId: performLaunchPromote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LaunchOperationParameters'
      responses:
        '202':
          description: Request to perform Launch promote was accepted.
          headers:
            Location:
              $ref: '#/components/headers/Location'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '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'
  /{launchId}/diff:
    parameters:
      - in: path
        name: launchId
        required: true
        description: Id of the launch for which the operation is performed
        schema:
          $ref: '#/components/schemas/UUID'
    post:
      summary: Compute differences
      description: Compute the differences between Launch and the production or another Launch, depending on the provided parameters
      operationId: computeLaunchDifferences
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LaunchOperationParameters'
      responses:
        '202':
          description: Request to compute Launch differences was accepted.
          headers:
            Location:
              $ref: '#/components/headers/Location'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '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'
  /{launchId}/content:
    parameters:
      - in: path
        name: launchId
        required: true
        description: Id of the launch for which the operation is performed
        schema:
          $ref: '#/components/schemas/UUID'
    get:
      summary: Get the content of a Launch
      operationId: getLaunchContent
      description: |
        This operation provides support for retrieving the launch specific information of the content in the launch, as accessible to the current user, 
        determined via the applied request authorization. The query parameter and the pagination parameters (cursor and limit) are mutually exclusive: the user can specify either the query parameter or the pagination parameters, but not both.
        When using the pagination parameters, 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.
        When using the query parameter, a maximum number of 50 items can be requested.
      parameters:
        - $ref: '#/components/parameters/cursor'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/LaunchContentFilterParameter'
      responses:
        '200':
          description: |
            List of Launch's content information.
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    $ref: '#/components/schemas/LaunchContentResult'
                  cursor:
                    $ref: '#/components/schemas/Cursor'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
  /jobs/{jobId}/status:
    parameters:
      - in: path
        name: jobId
        required: true
        description: The id of the job.
        schema:
          type: string
    get:
      description: Get information about the processing of the job
      summary: Get Job status
      operationId: getJobStatus
      responses:
        '200':
          description: Job is processing.
          headers:
            Retry-After:
              $ref: '#/components/headers/Retry-After'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobProcessingModel'
        '303':
          description: Job completed.
          headers:
            Location:
              $ref: '#/components/headers/Location'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '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'
  /jobs/{jobId}/result:
    parameters:
      - in: path
        name: jobId
        required: true
        description: The id of the job.
        schema:
          type: string
    get:
      summary: Get the result of a processed job
      operationId: getJobResult
      responses:
        '200':
          description: Job completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobProcessedModel'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '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'
  /jobs:
    get:
      summary: Get launch jobs
      description: |
        Retrieve launch jobs with flexible pagination options.

        This operation returns a list of jobs associated with launches, including job status, 
        operation type, progress information, and execution timestamps.

        Jobs associated with a specific launch can be retrieved by providing the launchId query parameter.

        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.
      operationId: getLaunchJobs
      parameters:
        - in: query
          name: launchId
          required: true
          description: Id of the launch for which to retrieve jobs
          schema:
            $ref: '#/components/schemas/UUID'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/cursor'
      responses:
        '200':
          description: List of launch jobs
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LaunchJobList'
        '400':
          $ref: '#/components/responses/400_BadRequest'
        '401':
          $ref: '#/components/responses/401_Unauthorized'
        '403':
          $ref: '#/components/responses/403_Forbidden'
        '404':
          $ref: '#/components/responses/404_NotFound'
        '406':
          $ref: '#/components/responses/406_Unacceptable'
        '500':
          $ref: '#/components/responses/500_InternalServerError'
components:
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
  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
    TimeIntervalAndAuthorSearchCriteria:
      type: object
      description: |
        Search criteria that allows searching for launches based on auditable information (i.e. various change actions
        performed by users). At least one of the properties has to be provided.
      properties:
        after:
          type: string
          format: date-time
          description: Lower time bound for a launch property.
          example: '2021-01-30T08:30:00Z'
        before:
          type: string
          format: date-time
          description: Upper time bound for a launch property.
          example: '2021-01-30T08:30:00Z'
        by:
          type: array
          description: A list of users, one of whom performed the action.
          items:
            type: string
      anyOf:
        - required:
            - after
        - required:
            - before
        - required:
            - by
    TimeIntervalCriteria:
      type: object
      description: |
        Time Interval search criteria that allows searching for launches based on auditable information (i.e. various change actions
        performed by users). Either 'after' or 'before' or both can be provided.
      properties:
        after:
          type: string
          format: date-time
          description: Lower time bound for a launch property.
          example: '2021-01-30T08:30:00Z'
          minLength: 1
        before:
          type: string
          format: date-time
          description: Upper time bound for a launch property.
          example: '2021-01-30T08:30:00Z'
          minLength: 1
      anyOf:
        - required:
            - after
        - required:
            - before
    LaunchesSearchFilter:
      type: object
      description: Search Filter Criteria to be used when filtering launches. If multiple criteria are provided, they will be combined using the AND operator.
      properties:
        created:
          $ref: '#/components/schemas/TimeIntervalAndAuthorSearchCriteria'
        modified:
          $ref: '#/components/schemas/TimeIntervalAndAuthorSearchCriteria'
        published:
          $ref: '#/components/schemas/TimeIntervalCriteria'
        promoted:
          $ref: '#/components/schemas/TimeIntervalCriteria'
        liveDate:
          $ref: '#/components/schemas/TimeIntervalCriteria'
    SearchSort:
      type: array
      description: |
        Defines the sorting criteria for searching through Launches. The criteria will be applied
        in the provided order. If no sorting criteria is provided, the default sorting order will be
        based on 'created' property in descending order.
      items:
        type: object
        minItems: 1
        required:
          - 'on'
          - order
        properties:
          'on':
            description: A sorting criterion.
            type: string
            enum:
              - title
              - created
              - modified
              - promoted
              - liveDate
          order:
            description: The sorting order that will be applied for the criterion.
            type: string
            enum:
              - ASC
              - DESC
    LaunchesSearchPattern:
      type: object
      description: Filtering and Sorting criteria applied when searching for Launches.
      properties:
        filter:
          $ref: '#/components/schemas/LaunchesSearchFilter'
        sort:
          $ref: '#/components/schemas/SearchSort'
      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%0A%20%20%20%7D%2C%0A%20%20%20%22sort%22%20%3A%20%5B%0A%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%22on%22%3A%20%22title%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%22order%22%3A%20%22ASC%22%0A%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%22on%22%3A%20%22promoted%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%22order%22%3A%20%22DESC%22%0A%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%0A%20%20%20%5D%0A%7D'
    AuditInfo:
      readOnly: true
      type: object
      description: Provides audit details about an operation performed by a user (i.e. 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.
    LaunchDetails:
      type: object
      required:
        - path
        - name
        - title
        - launchId
        - productionReady
        - created
        - isDeep
      properties:
        launchId:
          type: string
          minLength: 1
          description: The unique identifier of the launch.
        path:
          type: string
          minLength: 1
          description: The path of the launch.
        name:
          type: string
          minLength: 1
          description: The unique name of the launch.
        title:
          type: string
          minLength: 1
          description: The title of the launch, used for display purposes.
        description:
          type: string
          description: The description of the launch, used for display purposes.
        liveDate:
          type: string
          format: date-time
          description: If this parameter is set along with the `productionReady` parameter, when the launch is promoted, the launch's content fragments are also published to the live environment at the time specified by this parameter.
        productionReady:
          type: boolean
          description: When the launch is marked as production ready, after a launch is promoted, the launch's content fragments are also published to the environment specified by publishAgent.
        publishAgent:
          type: string
          description: The agent id used for publishing the launch's content fragments if productionReady is set to true. If this parameter is not set, the default agent will be used.
        isDeep:
          type: boolean
          description: |
            This parameter specifies whether the Content Fragments that are transitively referenced by the
            Content Fragment Sources should be part of the Launch; otherwise only the Content Fragments
            that are directly referenced in the Sources will be included.
        modified:
          $ref: '#/components/schemas/AuditInfo'
        created:
          $ref: '#/components/schemas/AuditInfo'
        promoted:
          $ref: '#/components/schemas/AuditInfo'
    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
    UUID:
      description: Resource unique identifier
      type: string
      format: uuid
      readOnly: true
      example: 49af775d-0e7a-46c3-913d-00f762528373
    CreateLaunchRequest:
      type: object
      description: Create Launch Request
      properties:
        title:
          type: string
          minLength: 1
          description: The title of the launch, as used for display purposes
        description:
          type: string
          description: The description of the launch, as used for display purposes
        isDeep:
          type: boolean
          description: This parameter specifies if the content fragment referenced by the sources should be part of the launch
          default: true
        sources:
          type: array
          description: This parameter is an array of content fragment IDs and specifies the content that should be part of the launch.
          items:
            $ref: '#/components/schemas/UUID'
        liveDate:
          type: string
          format: date-time
          description: If this parameter is set along with the `productionReady` parameter, when the launch is promoted the launch's content fragments are also published to the environment specified by the `publishAgent` parameter at the time specified by this parameter, and not immediately.
        productionReady:
          type: boolean
          description: When the launch is marked as production ready, after a launch is promoted, the launch's content fragments are also published to the environment specified by the `publishAgent` parameter.
          default: false
        publishAgent:
          type: string
          description: The agent id used for publishing the launch's content fragments if productionReady is set to true. If this parameter is not set, the default agen will be used.
      required:
        - title
        - sources
      example:
        title: LaunchTitle
        isDeep: true
        sources:
          - 49af775d-0e7a-46c3-913d-00f762528373
    EditLaunchDetailsPayload:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          description: The title of the launch, as used for display purposes.
        description:
          type: string
          description: The description of the launch, as used for display purposes. Missing this property or setting it to 'null' will result in its erasure from JCR.
          nullable: true
        isDeep:
          type: boolean
          description: This parameter specifies whether the content fragment referenced by the sources should be part of the launch.
        liveDate:
          type: string
          format: date-time
          description: If this parameter is set along with the `productionReady` parameter, when the launch is promoted, the launch's content fragments are also published to the live environment at the time specified by this parameter, and not immediately. Missing this property or setting it to 'null' will result in its erasure from JCR.
          nullable: true
        productionReady:
          type: boolean
          description: When the launch is marked as production ready, after a launch is promoted, the launch's content fragments are also published to the environment specified by the `publishAgent` parameter.
        publishAgent:
          type: string
          description: The agent id used for publishing the launch's content fragments if productionReady is set to true. If this parameter is not set, the default agen will be used.
      required:
        - title
        - isDeep
        - productionReady
    LaunchSources:
      type: array
      description: This parameter is an array of content fragment ids and specifies the content that is part of the launch.
      items:
        $ref: '#/components/schemas/UUID'
    EditLaunchPayload:
      type: object
      properties:
        sourcesToRemove:
          type: array
          items:
            $ref: '#/components/schemas/UUID'
        sourcesToAdd:
          type: array
          items:
            $ref: '#/components/schemas/UUID'
    LaunchOperationParameters:
      type: object
      description: Parameters for performing launch operations
      properties:
        compare:
          type: string
          format: uuid
          description: The target launch against which the operation should be performed. If not specified, the operation is performed against the production.
        isDeep:
          type: boolean
          description: This parameter specifies if the content fragments that are transitively referenced by the content fragment sources should be part of the operation, otherwise only those fragments that are directly referenced in the sources will be included.
          default: false
        sources:
          description: The content fragments for which the operation should be performed. If not specified, then the operation is performed for all the content fragment sources in the launch.
          type: array
          items:
            $ref: '#/components/schemas/UUID'
    LaunchContentFilter:
      type: object
      description: Filtering criteria applied when searching for Launch's content.
      properties:
        contentIds:
          type: array
          description: |
            When provided, only information about the content of the launch with the given ids will be retrieved. These ids are of the content inside the launch, not of the sources of the launch.
          items:
            $ref: '#/components/schemas/UUID'
          uniqueItems: true
          minItems: 1
          maxItems: 50
      example: '%7B%0A%20%20%20%20contentIds%3A%20%5B%22c8064967-75e9-4827-b7c7-b251f5d5abe9%22%5D%0A%7D%0A'
    LaunchContent:
      type: object
      description: This object specifies the content that is part of the launch.
      required:
        - id
      properties:
        id:
          $ref: '#/components/schemas/UUID'
        sourceId:
          $ref: '#/components/schemas/UUID'
        lastPromoted:
          $ref: '#/components/schemas/AuditInfo'
        lastRebased:
          $ref: '#/components/schemas/AuditInfo'
    LaunchContentResult:
      type: object
      description: This object is a container for the content of the launch.
      required:
        - launchDetails
        - items
      properties:
        launchDetails:
          $ref: '#/components/schemas/LaunchDetails'
        items:
          type: array
          items:
            $ref: '#/components/schemas/LaunchContent'
    JobProcessingModel:
      type: object
      description: Job Processing Model
      properties:
        state:
          type: string
          minLength: 5
          enum:
            - QUEUED
            - ACTIVE
      required:
        - state
      example:
        state: ACTIVE
    CommandResultMessage:
      description: CommandResultMessage Object to encapsulate the result of a command.
      type: object
      properties:
        type:
          type: string
          description: A URI reference [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) that identifies the message type.
          minLength: 1
        title:
          type: string
          description: A short, human-readable summary of the problem type.
          minLength: 1
        detail:
          type: string
          description: A human-readable explanation specific to this occurrence of the problem.
      required:
        - type
        - title
    CommandResult:
      description: |
        The result of a command. A command is an operation that changes a system in a different way than via a CRUD
        request to a resource.
      type: object
      properties:
        operation:
          type: string
          description: The operation that was performed.
          minLength: 1
        status:
          type: integer
          format: int32
          description: |
            The HTTP status code ([RFC9110, Section 15](https://www.rfc-editor.org/rfc/rfc9110.html#section-15))
            generated by the origin server corresponding to this operation.
        description:
          type: string
          description: A human-readable explanation specific to this command, explaining the status.
          minLength: 1
        data:
          type: object
          description: |
            The data returned by the operation, which will vary by the implementing command. Each command
            MUST provide its own schema definition for this object, by defining all the properties a client is
            expected to encounter.
        errors:
          type: array
          description: An optional array of errors that occurred during the operation.
          items:
            $ref: '#/components/schemas/CommandResultMessage'
        warnings:
          type: array
          description: An optional array of warnings that occurred during the operation.
          items:
            $ref: '#/components/schemas/CommandResultMessage'
      required:
        - operation
        - status
        - description
    JobProcessedModelData:
      type: object
      required:
        - state
      properties:
        state:
          type: string
          minLength: 5
          enum:
            - SUCCEEDED
            - STOPPED
            - GIVEN_UP
            - ERROR
            - DROPPED
          description: |
            The state of the job processing.
              - SUCCEEDED: processing finished successfully
              - STOPPED: processing was stopped by a user
              - GIVEN_UP: number of retries reached
              - ERROR: processing signaled CANCELLED or throw an exception
              - DROPPED: dropped jobs
    LaunchDetailsJobProcessedModelData:
      type: object
      allOf:
        - $ref: '#/components/schemas/JobProcessedModelData'
        - type: object
          properties:
            launchDetails:
              type: object
              $ref: '#/components/schemas/LaunchDetails'
    CreateJobProcessedModel:
      type: object
      description: Create Job Processed Model
      allOf:
        - $ref: '#/components/schemas/CommandResult'
        - type: object
          properties:
            operation:
              type: string
              default: aem.launches.create
              readOnly: true
            data:
              $ref: '#/components/schemas/LaunchDetailsJobProcessedModelData'
              description: The details of the Launch that was created in case the operation succeeded.
      example:
        operation: aem.launches.create
        status: 200
        description: The job encountered an error during processing
        data:
          state: ERROR
        errors:
          - type: internal.error
            title: An internal server error was encountered while executing the job
    EditJobProcessedModel:
      type: object
      description: Create Job Processed Model
      allOf:
        - $ref: '#/components/schemas/CommandResult'
        - type: object
          properties:
            operation:
              type: string
              default: aem.launches.edit
              readOnly: true
            data:
              $ref: '#/components/schemas/LaunchDetailsJobProcessedModelData'
              description: The details of the Launch that was edited in case the operation succeeded.
      example:
        operation: aem.launches.edit
        status: 200
        description: The job encountered an error during processing
        data:
          state: ERROR
        errors:
          - type: internal.error
            title: An internal server error was encountered while executing the job
    PromoteJobProcessedModel:
      type: object
      description: Promote Job Processed Model
      allOf:
        - $ref: '#/components/schemas/CommandResult'
        - type: object
          properties:
            operation:
              type: string
              default: aem.launches.promote
              readOnly: true
            data:
              $ref: '#/components/schemas/LaunchDetailsJobProcessedModelData'
              description: The details of the Launch that was promoted in case the operation succeeded.
      example:
        operation: aem.launches.promote
        status: 200
        description: The job completed successfully.
        data:
          state: SUCCEEDED
          title: LaunchTitle
          name: LaunchTitle
          isDeep: true
          sources:
            - /content/dam/wknd-shared/en/contributors/justin-barr
    RebaseJobProcessedModel:
      type: object
      description: Rebase Job Processed Model
      allOf:
        - $ref: '#/components/schemas/CommandResult'
        - type: object
          properties:
            operation:
              type: string
              default: aem.launches.rebase
              readOnly: true
            data:
              $ref: '#/components/schemas/LaunchDetailsJobProcessedModelData'
              description: The details of the Launch that was rebased in case the operation succeeded.
      example:
        operation: aem.launches.rebase
        status: 200
        description: The job completed successfully.
        data:
          state: SUCCEEDED
          title: LaunchTitle
          name: LaunchTitle
          isDeep: true
          sources:
            - /content/dam/wknd-shared/en/contributors/justin-barr
    DifferenceFieldInfo:
      type: object
      properties:
        value:
          type: string
        contentFragmentPath:
          type: string
        contentFragmentId:
          $ref: '#/components/schemas/UUID'
        audit:
          type: object
          properties:
            modified:
              $ref: '#/components/schemas/AuditInfo'
            replicated:
              $ref: '#/components/schemas/AuditInfo'
    Difference:
      type: object
      required:
        - status
        - fieldName
        - variationName
      properties:
        fieldName:
          type: string
          minLength: 1
        variationName:
          type: string
          minLength: 1
        launch:
          $ref: '#/components/schemas/DifferenceFieldInfo'
        source:
          $ref: '#/components/schemas/DifferenceFieldInfo'
        status:
          type: string
          minLength: 8
          enum:
            - UPDATED_IN_SOURCE
            - UPDATED_IN_LAUNCH
            - CONFLICT
            - UP_TO_DATE
            - EXISTS_ONLY_IN_LAUNCH
            - EXISTS_ONLY_IN_SOURCE
          description: |
            The status of the difference between the source and launch content fragments.
              - UPDATED_IN_SOURCE: only the source content fragment's field has been updated.
              - UPDATED_IN_LAUNCH: only the launch content fragment's field has been updated.
              - CONFLICT: both the source and launch content fragment's field have been updated to different values.
              - UP_TO_DATE: the source and launch content fragment's field match.
              - EXISTS_ONLY_IN_LAUNCH: the content fragment field exists only in the launch (e.g. if the variation is only present in the launch, all the fields in the variation will be present only in the launch).
              - EXISTS_ONLY_IN_SOURCE: the content fragment field exists only in the source (e.g. if the variation is only present in the source, all the fields in the variation will be present only in the source).
    Differences:
      type: object
      allOf:
        - $ref: '#/components/schemas/JobProcessedModelData'
        - type: object
          properties:
            launchDetails:
              $ref: '#/components/schemas/LaunchDetails'
            differences:
              type: array
              items:
                $ref: '#/components/schemas/Difference'
    DifferencesJobProcessedModel:
      type: object
      description: Differences Job Processed Model
      allOf:
        - $ref: '#/components/schemas/CommandResult'
        - type: object
          properties:
            operation:
              type: string
              default: aem.launches.diff
              readOnly: true
            data:
              $ref: '#/components/schemas/Differences'
              description: The list of differences are returned in case the operation succeeded
      example:
        operation: adobe.launches.differences
        status: 200
        description: The job completed successfully.
        data:
          state: SUCCEEDED
          differences:
            - fieldName: firstName
              variationName: main
              status: CONFLICT
    DeleteJobProcessedModel:
      type: object
      description: Create Job Processed Model
      allOf:
        - $ref: '#/components/schemas/CommandResult'
        - type: object
          properties:
            operation:
              type: string
              default: aem.launches.delete
              readOnly: true
      example:
        operation: aem.launches.delete
        status: 204
        description: The launch was deleted
    JobProcessedModel:
      type: object
      description: Job Processed Model
      discriminator:
        propertyName: operation
        mapping:
          aem.launches.create: '#/components/schemas/CreateJobProcessedModel'
          aem.launches.edit: '#/components/schemas/EditJobProcessedModel'
          aem.launches.promote: '#/components/schemas/PromoteJobProcessedModel'
          aem.launches.rebase: '#/components/schemas/RebaseJobProcessedModel'
          aem.launches.diff: '#/components/schemas/DifferencesJobProcessedModel'
          aem.launches.delete: '#/components/schemas/DeleteJobProcessedModel'
      anyOf:
        - $ref: '#/components/schemas/CreateJobProcessedModel'
        - $ref: '#/components/schemas/EditJobProcessedModel'
        - $ref: '#/components/schemas/PromoteJobProcessedModel'
        - $ref: '#/components/schemas/RebaseJobProcessedModel'
        - $ref: '#/components/schemas/DifferencesJobProcessedModel'
        - $ref: '#/components/schemas/DeleteJobProcessedModel'
    LaunchJob:
      type: object
      description: Complete job information for launch operations
      properties:
        jobId:
          type: string
          minLength: 1
          description: Unique identifier for the job. Omitted for jobs with status `SCHEDULED`
        status:
          type: string
          enum:
            - SCHEDULED
            - QUEUED
            - ACTIVE
            - SUCCEEDED
            - STOPPED
            - GIVEN_UP
            - ERROR
            - DROPPED
          description: Current job status
        createdAt:
          type: string
          format: date-time
          minLength: 1
          description: When the job was created
        operation:
          type: string
          enum:
            - aem.launches.edit
            - aem.launches.promote
            - aem.launches.rebase
            - aem.launches.diff
            - aem.launches.delete
          description: Type of launch operation performed
        progress:
          type: object
          description: Job progress information showing completed vs total steps. Null when progress information is not yet known.
          nullable: true
          properties:
            completedSteps:
              type: integer
              minimum: 0
              description: Number of processing steps completed
            totalSteps:
              type: integer
              minimum: 1
              description: Total number of processing steps
          required:
            - completedSteps
            - totalSteps
        description:
          type: string
          description: Detailed description of the job
        startDate:
          type: string
          format: date-time
          minLength: 1
          description: When job execution started
        endDate:
          type: string
          format: date-time
          minLength: 1
          nullable: true
          description: When job execution completed (null if job has not finished)
      required:
        - status
        - createdAt
        - operation
    LaunchJobList:
      type: object
      description: A paginated collection of launch jobs
      required:
        - items
      properties:
        items:
          type: array
          description: List of launch jobs with complete information
          items:
            $ref: '#/components/schemas/LaunchJob'
        cursor:
          $ref: '#/components/schemas/Cursor'
  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'
    LaunchesSearchParameter:
      in: query
      name: query
      description: |
        The `query` parameter provides filtering and/or sorting criteria that must be applied
        when performing a search. The value passed must be valid JSON that has been
        URL encoded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LaunchesSearchPattern'
    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.
    LaunchContentFilterParameter:
      in: query
      name: query
      description: |
        The `query` parameter provides filtering criteria that must be applied
        when performing a search for the content of a Launch. The value passed must be valid JSON that has been
        URL encoded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/LaunchContentFilter'
  responses:
    400_BadRequest:
      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
          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.
    401_Unauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            allOf:
              - $ref: '#/components/schemas/ProblemDetails'
              - type: object
                properties:
                  status:
                    type: integer
                    default: 401
                  title:
                    type: string
                    default: Unauthorized
          example:
            type: http://api.adobeaemcloud.com/adobe/meta/errors/unauthorized
            title: Unauthorized
            status: 401
            detail: The request did not contain a valid Authorization header.
    403_Forbidden:
      description: Forbidden
      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: |
        Unacceptable. 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: |
        The server encountered an unexpected error. Retrying the request after a certain time could help.
      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.
    415_UnsupportedMediaType:
      description: |
        Unsupported Media Type. When provided as a response to a `PATCH` request,
        the response will provide an `Accept-Patch` response header to notify
        the client what patch document media types are supported.
      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
      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
      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
      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.
  headers:
    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
    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
    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).
