openapi: 3.0.3
info:
  title: Translation Management API
  version: '2026.10'
servers:
  - url: https://{bucket}.adobeaemcloud.com/adobe/translation
    variables:
      bucket:
        default: ''
        description: The bucket to use for this request, e.g. author-p12345-e123456
security:
  - bearerAuth: []
tags:
  - name: Translation Project API
    description: '*Allows user to manage [Translation Project](https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/sites/administering/reusing-content/translation/managing-projects) such as creating new translation project, adding jobs, updating projects, adding content in all or subset of project''s jobs.*'
  - name: Translation Job API
    description: '*Allows user can execute operations at [Translation job pods](https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/sites/administering/reusing-content/translation/managing-projects#adding-pages-assets-to-a-translation-job) level such as updating jobs status and adding content.*'
  - name: Sync Language Copy API
    description: '*Allows users to execute Sync Language Copy process - by creating new sync process instance and updating the status of instance.*'
  - name: Async Execution Status
    description: '*Allows user to retrieve status of requests executed in asynchronous mode.*'
  - name: Translation Events
    description: |
      A number of events are emitted for translation job creation and state updates.
      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:
  /projects:
    post:
      tags:
        - Translation Project API
      description: |
        ### Using this API, user can create new translation project and add content in all or subset of project's jobs.

        **Summary of the steps executed on call of this API**
        - A new translation project is created by the API, and will be placed within the path specified by the optional "folderPath" parameter, otherwise it defaults to the root project path "/content/projects".
          [TIF](https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/sites/administering/reusing-content/translation/integration-framework.html?lang=en) path given in "tifConfig" parameter will be used to configure the Translation-Method, Translation-Connector and Category of newly created project. 
          If TIF is not configured in the given path, then highest priority global config will be fetched. Following are the order of priority:<ul> <li>/conf/global</li><li>/apps</li><li>/libs</li></ul>
        - API will create individual jobs for all target languages given in "destinationLanguage" parameter.
        - *(Conditional Execution)* API will execute this step if "translateContent" parameter is not null. Content's path provided in "translateContent.sourcePath" parameter, will be added in project's job. If value of "translateContent" parameter is null then, jobs created will remain in DRAFT stage no further steps will be performed.
        - *(Conditional Execution)* API will Start Translation of all Jobs if 3rd step is successful and "automaticStartTranslation" parameter is true.
      operationId: createTranslationProject
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - in: header
          name: x-request-priority
          schema:
            type: string
            default: medium
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  description: Title of the new project.
                description:
                  type: string
                  description: Description of the new project.
                folderPath:
                  type: string
                  description: |
                    Nested folder path relative to root project path where the project will be created.
                    The nested folder path (relative to /content/projects) has the following constraints and behaviors:

                    -  It must not start with /.
                    -  It must not end with /.
                    -  Any folders specified in the path will be dynamically created if they do not already exist.
                tifConfig:
                  type: string
                  description: Translation-Method, Translation-Connector and Category will be picked from TIF path provided in this parameter. If cloud config is not configured in the given path, then highest priority global config will be fetched.
                useSitesConfig:
                  description: Flag for to use TIF's site configuration to get the Translation-Method, Translation-Connector and Category.
                  type: boolean
                  default: true
                sourceLanguage:
                  type: string
                  description: Language Code of source.
                destinationLanguage:
                  description: Array of target Language Code.
                  type: array
                  items:
                    type: string
                  example:
                    - fr
                    - de
                    - hi
                translateContent:
                  $ref: '#/components/schemas/translateContent'
                automaticApproveEnable:
                  description: Flag for auto Approval of Translation Jobs.
                  type: boolean
                  default: true
                automaticPromoteLaunchEnable:
                  description: Flag for auto promote of launches after translation job approval.
                  type: boolean
                  default: true
                automaticDeleteLaunchEnable:
                  description: Flag for auto delete of launches after promote.
                  type: boolean
                  default: true
                automaticStartTranslation:
                  description: Flag for auto start of translation.
                  type: boolean
                  default: false
              required:
                - title
                - tifConfig
                - sourceLanguage
                - destinationLanguage
              example:
                title: Translation Project
                tifConfig: /conf/global
                useSitesConfig: false
                sourceLanguage: en
                folderPath: folder1/folder2/folder3
                destinationLanguage:
                  - fr
                  - hi
                translateContent:
                  sourcePath:
                    - /content/wknd/language-masters/en/magazine
                  addChildPages: true
                  languageMask:
                    - fr
                automaticApproveEnable: true
                automaticPromoteLaunchEnable: true
                automaticDeleteLaunchEnable: false
                automaticStartTranslation: true
      responses:
        '202':
          description: ACCEPTED - on successful acknowledgement of request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asyncExecutionStatus'
          headers:
            location:
              schema:
                type: string
              description: Location to get the status of async invocation
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '412':
          $ref: '#/components/responses/412PreconditionFailed'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /projects/{projectId}:
    get:
      tags:
        - Translation Project API
      description: To retrieve a JSON representation of Translation Project.
      operationId: getTranslationProject
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/translationProject'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '500':
          $ref: '#/components/responses/500InternalServerError'
    put:
      tags:
        - Translation Project API
      description: |
        ### Using this API, user can [update the translation project](https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/sites/administering/reusing-content/translation/managing-projects.html?lang=en#seeing-translation-project-details) properties

        - User can add or remove language code from destination language list.
        - TIF path will be used to update the Translation-Method, Translation-Connector and Category.
      operationId: updateTranslationProject
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                title:
                  type: string
                  description: Title of the project.
                description:
                  type: string
                  description: Description of the project.
                tifConfig:
                  type: string
                  description: Translation-Method, Translation-Connector and Category will be picked from TIF path provided in this parameter. If cloud config is not configured in the given path, then highest priority global config will be fetched.
                useSitesConfig:
                  description: Flag for to use TIF's site configuration to get the Translation-Method, Translation-Connector and Category.
                  type: boolean
                  default: true
                sourceLanguage:
                  type: string
                  description: Language Code of source.
                destinationLanguage:
                  description: Array of target Language Code.
                  type: array
                  items:
                    type: string
                  example:
                    - fr
                    - de
                    - hi
                automaticApproveEnable:
                  description: Flag for auto Approval of Translation Jobs.
                  type: boolean
                  default: true
                automaticPromoteLaunchEnable:
                  description: Flag for auto promote of launches after translation job approval.
                  type: boolean
                  default: true
                automaticDeleteLaunchEnable:
                  description: Flag for auto delete of launches after promote.
                  type: boolean
                  default: true
              required:
                - title
                - tifConfig
                - sourceLanguage
                - destinationLanguage
              example:
                title: Translation Project
                tifConfig: /conf/wknd
                sourceLanguage: en
                destinationLanguage:
                  - de
                  - hi
                automaticApproveEnable: true
                automaticPromoteLaunchEnable: true
                automaticDeleteLaunchEnable: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/translationProject'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '412':
          $ref: '#/components/responses/412PreconditionFailed'
        '500':
          $ref: '#/components/responses/500InternalServerError'
    delete:
      tags:
        - Translation Project API
      description: Delete Translation Project.
      operationId: deleteTranslationProject
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
      responses:
        '200':
          description: OK
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /projects/{projectId}/content:
    post:
      tags:
        - Translation Project API
      description: |
        ### For addition or deletion of content from all jobpods of a specific project.
        Following result can be achieved if you add content using this API.
        - Content will be processed for all target language of the project. API will add content in target language's job which are in DRAFT state. For a target language if no job exist which is in DRAFT state, then a new job will be created, and content will be added in that job.
        - Content addition can be masked for subset of destination Language using "languageMask" field. LanguageMask field must contain language code which are present in target language of the project.

        Following result can be achieved if you delete content using this API.
        - API will remove the content from Jobs which are
        in DRAFT state.
        - Jobs which results in emplty content will not be deleted. It will remain in DRAFT state.
        - LanguageMask field can be used to mask the removal of
        content on subset of target Language’s job.
      operationId: updateTranslationProjectContent
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - in: header
          name: x-request-priority
          schema:
            type: string
            default: medium
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/addProjectContent'
                - $ref: '#/components/schemas/deleteProjectContent'
                - $ref: '#/components/schemas/addAndDeleteProjectContent'
              example:
                add:
                  sourcePath:
                    - /content/wknd/language-masters/en/adventures
                  languageMask:
                    - fr
      responses:
        '202':
          description: ACCEPTED - on successful acknowledgement of request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asyncExecutionStatus'
          headers:
            Location:
              schema:
                type: string
              description: Location to get the status of async invocation
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '412':
          $ref: '#/components/responses/412PreconditionFailed'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /projects/{projectId}/jobpods/command:
    post:
      tags:
        - Translation Project API
      description: |+
        ### Using this API, user can execute [command](https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/sites/administering/reusing-content/translation/managing-projects.html?lang=en#starting-translation-jobs) on all translation job pods.

        Any one of the following operations can be performed using this API:
        -  START
        -  COMPLETE
        -  CANCEL
        -  ARCHIVE.

        User can use "languageMask" parameter to mask the execution of job on subset of project's target language instead of complete set.

      operationId: bulkTranslationJobExecution
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - in: header
          name: x-request-priority
          schema:
            type: string
            default: medium
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                command:
                  type: string
                  enum:
                    - START
                    - COMPLETE
                    - CANCEL
                    - ARCHIVE
                languageMask:
                  type: array
                  items:
                    type: string
                  example:
                    - fr
                  description: It can be used to mask the execution of job on subset of project's target language instead of complete set..
              required:
                - operation
              example:
                command: START
      responses:
        '202':
          description: ACCEPTED - on successful acknowledgement of request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asyncExecutionStatus'
          headers:
            Location:
              schema:
                type: string
              description: Location to get the status of async invocation
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '412':
          $ref: '#/components/responses/412PreconditionFailed'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /projects/{projectId}/jobpods/{jobpodId}:
    get:
      tags:
        - Translation Job API
      description: To retrieve a JSON representation of [Translation Job Pods](https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/sites/administering/reusing-content/translation/managing-projects.html?lang=en#monitoring-the-status-of-a-translation-job).
      operationId: getTranslationJob
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
        - name: jobpodId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation job
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/translationJob'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '500':
          $ref: '#/components/responses/500InternalServerError'
    delete:
      tags:
        - Translation Job API
      description: Delete Translation Job.
      operationId: deleteTranslationJob
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
        - name: jobpodId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation job
      responses:
        '200':
          description: OK
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /projects/{projectId}/jobpods/{jobpodId}/command:
    post:
      tags:
        - Translation Job API
      description: |
        ### Using this API, user can execute [command](https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/sites/administering/reusing-content/translation/managing-projects.html?lang=en#starting-translation-jobs) on translation job pods.

        Any one of the following operations can be performed using this API:
        -  START
        -  COMPLETE
        -  CANCEL
        -  ARCHIVE.
      operationId: updateTranslationJob
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
        - name: jobpodId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation job
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                command:
                  type: string
                  enum:
                    - START
                    - COMPLETE
                    - CANCEL
                    - ARCHIVE
                  description: |
                    Any one of following operations: START, COMPLETE, CANCEL and ARCHIVE.
              required:
                - operation
              example:
                command: START
      responses:
        '202':
          description: ACCEPTED - on successful acknowledgement of request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asyncExecutionStatus'
          headers:
            Location:
              schema:
                type: string
              description: Location to get the status of async invocation
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '412':
          $ref: '#/components/responses/412PreconditionFailed'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /projects/{projectId}/jobpods/{jobpodId}/content:
    post:
      tags:
        - Translation Job API
      description: |
        ### Using this API, user can [add or remove contents](https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/sites/administering/reusing-content/translation/managing-projects.html?lang=en#adding-pages-assets-to-a-translation-job) of translation job.

        - Job should be in DRAFT state.
        - User will have the option to add the translation master content directly using "*add.isUpdateTranslationMaster*" parameter of request body.
      operationId: updateContentOfTranslationJob
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - in: header
          name: x-request-priority
          schema:
            type: string
            default: medium
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
        - name: jobpodId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation job
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/addJobContent'
                - $ref: '#/components/schemas/deleteJobContent'
                - $ref: '#/components/schemas/addAndDeleteJobContent'
              example:
                add:
                  sourcePath:
                    - /content/wknd/language-masters/en/adventures
                  addChildPages: false
                delete:
                  sourcePath:
                    - /content/wknd/language-masters/en/magazine/arctic-surfing
      responses:
        '202':
          description: ACCEPTED - on successful acknowledgement of request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asyncExecutionStatus'
          headers:
            Location:
              schema:
                type: string
              description: Location to get the status of async invocation
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '412':
          $ref: '#/components/responses/412PreconditionFailed'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /projects/{projectId}/jobpods/{jobpodId}/content/accept:
    post:
      tags:
        - Translation Job API
      description: |
        ### Using this API, user can [accept translated contents](https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/sites/administering/reusing-content/translation/managing-projects.html?lang=en#accept-reject-workflow), pending for review of a job.

        - When the content comes back after translation and it remains in READY FOR REVIEW state if automatic approve content is disabled. User can ACCEPT the translation using this API.
      operationId: acceptContentOfTranslationJob
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - in: header
          name: x-request-priority
          schema:
            type: string
            default: medium
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
        - name: jobpodId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation job
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                sourcePath:
                  description: Contains array of content's(sites/assets) source path .
                  type: array
                  items:
                    type: string
                processAllReference:
                  description: Flag to process reference of content.
                  type: boolean
                  default: true
              required:
                - sourcePath
              example:
                sourcePath:
                  - /content/wknd/language-masters/en/magazine
                processAllReference: true
      responses:
        '202':
          description: ACCEPTED - on successful acknowledgement of request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asyncExecutionStatus'
          headers:
            Location:
              schema:
                type: string
              description: Location to get the status of async invocation
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '412':
          $ref: '#/components/responses/412PreconditionFailed'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /projects/{projectId}/jobpods/{jobpodId}/content/reject:
    post:
      tags:
        - Translation Job API
      description: |
        ### Using this API, user can [reject translated contents](https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/sites/administering/reusing-content/translation/managing-projects.html?lang=en#accept-reject-workflow), pending for review of a job.

        - When the content comes back after translation and it remains in READY FOR REVIEW state when automatic approve is disabled. You can REJECT the translation using this API.
      operationId: rejectContentOfTranslationJob
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - in: header
          name: x-request-priority
          schema:
            type: string
            default: medium
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation project
        - name: jobpodId
          in: path
          required: true
          schema:
            type: string
            description: Id of translation job
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                sourcePath:
                  description: Contains array of content(sites/assets) source path.
                  type: array
                  items:
                    type: string
                processAllReference:
                  description: Flag to process reference of content.
                  type: boolean
                  default: true
                comment:
                  type: string
              required:
                - sourcePath
              example:
                sourcePath:
                  - /content/wknd/language-masters/en/magazine
                processAllReference: true
      responses:
        '202':
          description: ACCEPTED - on successful acknowledgement of request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asyncExecutionStatus'
          headers:
            Location:
              schema:
                type: string
              description: Location to get the status of async invocation
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '412':
          $ref: '#/components/responses/412PreconditionFailed'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /languagecopy/sync:
    parameters:
      - in: header
        name: X-Adobe-Accept-Unsupported-API
        schema:
          type: integer
          enum:
            - 1
        required: true
    post:
      tags:
        - Sync Language Copy API
      description: |
        It allows users to Sync Language Copy by creating new sync
        process instance. User can get the status of the process using “Get Sync LC Process Status” API.
      operationId: initiateSyncLanguageCopyProcess
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                sourcePath:
                  type: string
                  description: Source content's(sites/assets) Path.
                destinationLanguage:
                  description: Array of target Language Code.
                  type: array
                  items:
                    type: string
                  example:
                    - fr
                    - de
                    - hi
                title:
                  description: Title for the process instance.
                  type: string
              required:
                - sourcePath
                - destinationLanguage
              example:
                sourcePath: /content/dam/wknd/en/magazine
                destinationLanguage:
                  - fr
                title: titleForTheProcess
      responses:
        '201':
          description: Created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/syncProcessStatus'
          headers:
            location:
              schema:
                type: string
              description: Sync process created by the request.
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '412':
          $ref: '#/components/responses/412PreconditionFailed'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /languagecopy/sync/{id}:
    parameters:
      - in: header
        name: X-Adobe-Accept-Unsupported-API
        schema:
          type: integer
          enum:
            - 1
        required: true
    get:
      tags:
        - Sync Language Copy API
      description: Get Sync LC Process Status
      operationId: getSyncLanguageCopyProcessStatus
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: ID shared in response message of initiateSyncLanguageCopyProcess call.
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/syncProcessStatus'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '500':
          $ref: '#/components/responses/500InternalServerError'
    put:
      tags:
        - Sync Language Copy API
      description: |-
        Either **SUSPEND** or **ABORT** operation can be performed using this API.
        Sync process should be in RUNNING state in order to execute this API successfully.
      operationId: updateSyncLanguageCopyProcess
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            default: v0.0.1
        - in: header
          name: x-request-id
          schema:
            type: string
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: ID shared in response message of initiateSyncLanguageCopyProcess API call.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                operation:
                  type: string
                  enum:
                    - SUSPEND
                    - ABORT
                  description: |
                    Any one of following operations: SUSPEND or ABORT.
              required:
                - operation
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/syncProcessStatus'
        '400':
          $ref: '#/components/responses/400BadRequest'
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '412':
          $ref: '#/components/responses/412PreconditionFailed'
        '500':
          $ref: '#/components/responses/500InternalServerError'
  /async/execution/status/{asyncExecutionId}:
    get:
      tags:
        - Async Execution Status
      description: Some API requests support an asynchronous invocation mode. User can use this API to get the async execution status. Response will include links to resources affected by the operation.
      operationId: getAsyncBatchProcessStatus
      parameters:
        - in: header
          name: Accept-Version
          schema:
            type: string
            example: v0.0.1
          required: true
        - in: header
          name: x-request-id
          schema:
            type: string
        - name: asyncExecutionId
          in: path
          required: true
          schema:
            type: string
            description: Id of async execution
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asyncExecutionStatus'
        '303':
          description: See other
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asyncExecutionStatus'
          headers:
            location:
              schema:
                type: string
              description: location for resource to see the staus of operation.
        '401':
          $ref: '#/components/responses/401Unauthenticated'
        '403':
          $ref: '#/components/responses/403Forbidden'
        '404':
          $ref: '#/components/responses/404NotFound'
        '500':
          $ref: '#/components/responses/500InternalServerError'
x-webhooks:
  aem_translation_job_created:
    post:
      operationId: aem_translation_job_created
      summary: AEM translation job created event
      description: |
        Event triggered when a translation job is created in AEM.
      tags:
        - Translation Events
      security: []
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.core.translation.job.created
                    data:
                      type: object
                      properties:
                        jobPath:
                          type: string
                          description: The path of the job created in AEM
                        jobStatus:
                          type: string
                          enum:
                            - DRAFT
                            - TRANSLATION_IN_PROGRESS
                            - READY_FOR_REVIEW
                            - APPROVED
                            - COMPLETED
                          description: Status of the job created in AEM
                        jobDestinationLanguage:
                          type: string
                          description: ISO language code of destination content
                        createdAt:
                          type: string
                          format: date-time
                        jobMetadata:
                          $ref: '#/components/schemas/jobMetadata'
                        user:
                          $ref: '#/components/schemas/user'
                      required:
                        - jobPath
                        - jobStatus
                        - jobDestinationLanguage
                        - createdAt
                        - jobMetadata
      responses:
        '200':
          description: |
            AEM translation job created event data is received successfully
  aem_translation_job_updated:
    post:
      operationId: aem_translation_job_updated
      summary: AEM Translation job updated event
      description: |
        Event triggered when a translation job is updated in AEM.
      tags:
        - Translation Events
      security: []
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.core.translation.job.updated
                    data:
                      type: object
                      properties:
                        jobPath:
                          type: string
                          description: The path of the job updated in AEM
                        jobStatus:
                          type: string
                          enum:
                            - DRAFT
                            - TRANSLATION_IN_PROGRESS
                            - READY_FOR_REVIEW
                            - APPROVED
                            - COMPLETED
                          description: Status of the job updated in AEM
                        jobDestinationLanguage:
                          type: string
                          description: ISO language code of destination content
                        updatedAt:
                          type: string
                          format: date-time
                        translationObjectCount:
                          $ref: '#/components/schemas/translationObjectCount'
                        jobMetadata:
                          $ref: '#/components/schemas/jobMetadata'
                        user:
                          $ref: '#/components/schemas/user'
                      required:
                        - jobPath
                        - jobStatus
                        - jobDestinationLanguage
                        - updatedAt
                        - translationObjectCount
                        - jobMetadata
      responses:
        '200':
          description: |
            AEM translation job update event data is received successfully
  aem_translation_job_content_update_started:
    post:
      operationId: aem_translation_job_content_update_started
      summary: AEM translation job content update start event
      description: |
        Event triggered when a content update is started in translation job.
      tags:
        - Translation Events
      security: []
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.core.translation.job.content.update.started
                    data:
                      type: object
                      properties:
                        jobPath:
                          type: string
                          description: The path of the job in AEM
                        operation:
                          type: string
                          enum:
                            - ADDITION
                            - DELETION
                          description: The operations performed on the content of the job
                        jobStatus:
                          type: string
                          enum:
                            - DRAFT
                            - TRANSLATION_IN_PROGRESS
                            - READY_FOR_REVIEW
                            - APPROVED
                            - COMPLETED
                          description: Status of the job in AEM
                        jobDestinationLanguage:
                          type: string
                          description: ISO language code of destination content
                        startedAt:
                          type: string
                          format: date-time
                        jobMetadata:
                          $ref: '#/components/schemas/jobMetadata'
                        user:
                          $ref: '#/components/schemas/user'
                      required:
                        - jobPath
                        - operation
                        - jobStatus
                        - jobDestinationLanguage
                        - startedAt
                        - jobMetadata
      responses:
        '200':
          description: |
            AEM translation job content update start event data is received successfully
  aem_translation_job_content_update_completed:
    post:
      operationId: aem_translation_job_content_update_completed
      summary: AEM translation job content update complete event
      description: |
        Event triggered when a content update is completed in translation job.
      tags:
        - Translation Events
      security: []
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.core.translation.job.content.update.completed
                    data:
                      type: object
                      properties:
                        jobPath:
                          type: string
                          description: The path of the job in AEM
                        operation:
                          type: string
                          enum:
                            - ADDITION
                            - DELETION
                          description: The operations performed on the content of the job
                        jobStatus:
                          type: string
                          enum:
                            - DRAFT
                            - TRANSLATION_IN_PROGRESS
                            - READY_FOR_REVIEW
                            - APPROVED
                            - COMPLETED
                          description: Status of the job in AEM
                        jobDestinationLanguage:
                          type: string
                          description: ISO language code of destination content
                        completedAt:
                          type: string
                          format: date-time
                        translationObjectCount:
                          $ref: '#/components/schemas/translationObjectCount'
                        jobMetadata:
                          $ref: '#/components/schemas/jobMetadata'
                        user:
                          $ref: '#/components/schemas/user'
                      required:
                        - jobPath
                        - operation
                        - jobStatus
                        - jobDestinationLanguage
                        - completedAt
                        - translationObjectCount
                        - jobMetadata
      responses:
        '200':
          description: |
            AEM translation job content update complete event data is received successfully
  aem_translation_rest_api_execution:
    post:
      operationId: aem_translation_rest_api_execution
      summary: AEM translation Rest API execution event
      description: |
        Event triggered on translation rest API execution.
      tags:
        - Translation Events
      security: []
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/CloudEvents_3rdParty'
                - type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - aem.core.translation.rest.api.execution
                    data:
                      type: object
                      properties:
                        requestId:
                          type: string
                          description: ID of the rest API request
                        requestType:
                          type: string
                          enum:
                            - CREATE_PROJECT_EVENT
                            - UPDATE_PROJECT_CONTENT_EVENT
                            - BULK_JOB_EXECUTION_EVENT
                          description: Rest API request Type
                        asyncExecutionId:
                          type: string
                          description: Async execution ID
                        status:
                          type: string
                          enum:
                            - SUCCESSFUL
                            - ACTIVE
                            - ERROR
                        startedAt:
                          type: string
                          format: date-time
                        completedAt:
                          type: string
                          format: date-time
                        user:
                          $ref: '#/components/schemas/user'
                      required:
                        - requestId
                        - requestType
                        - asyncExecutionId
                        - status
                        - startedAt
      responses:
        '200':
          description: |
            Translation Rest API execution event data is received successfully
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    token-based-authentication:
      type: http
      scheme: bearer
      bearerFormat: JWT
    basic:
      type: http
      scheme: basic
  schemas:
    translationProject:
      type: object
      required:
        - id
        - title
        - description
        - tifConfig
        - sourceLanguage
        - destinationLanguage
        - translationMethod
        - translationProvider
        - status
        - createdAt
        - createdBy
      additionalProperties: false
      properties:
        id:
          type: string
          description: Id of translation project
        title:
          type: string
          description: Title of the new project.
        description:
          type: string
          description: Description of the new project.
        tifConfig:
          type: string
          description: Path of TIF config.
        sourceLanguage:
          type: string
          description: Language Code of source.
        destinationLanguage:
          type: array
          items:
            type: string
          example:
            - fr
            - de
            - hi
          description: List of target language code.
        translationMethod:
          type: string
          enum:
            - MACHINE_TRANSLATION
            - HUMAN_TRANSLATION
        translationProvider:
          type: string
        status:
          type: string
          enum:
            - INACTIVE
            - ACTIVE
            - ARCHIVE
        automaticApproveEnable:
          type: boolean
          default: true
          description: Flag for auto Approval of Translation Jobs.
        automaticPromoteLaunchEnable:
          type: boolean
          default: true
          description: Flag for auto promote of launches after approval.
        automaticDeleteLaunchEnable:
          type: boolean
          default: true
          description: Flag for auto delete of launches after promote.
        createdAt:
          type: string
          format: date-time
        createdBy:
          type: string
        lastModifiedAt:
          type: string
          format: date-time
        lastModifiedBy:
          type: string
        asyncJobID:
          type: string
          description: Latest async job Id executed on project level
        asyncJobStatus:
          type: string
          enum:
            - RUNNING
            - QUEUED
            - COMPLETED
          description: Status of latest async job executed on project level
        asyncJobExecutionMessage:
          type: string
          description: Execution message from latest async job executed on project level
        translationJob:
          type: array
          items:
            $ref: '#/components/schemas/embeddedTranslationJob'
      example:
        id: translation_project
        title: Translation Project
        description: Translation Project
        tifConfig: /conf/global
        sourceLanguage: en
        destinationLanguage:
          - fr
          - hi
        status: Active
        translationMethod: MACHINE_TRANSLATION
        translationProvider: microsoft
        automaticApproveEnable: true
        automaticPromoteLaunchEnable: true
        automaticDeleteLaunchEnable: false
        createdAt: 1666068134296
        createdBy: admin
        lastModifiedAt: 1666068134420
        lastModifiedBy: admin
        translationJob:
          - id: translationjob
            title: Translation Job [FR]
            destinationLanguage: fr
            translationStatus: APPROVED
          - id: translationjob0
            title: Translation Job [HI]
            destinationLanguage: hi
            translationStatus: DRAFT
    translationJob:
      type: object
      additionalProperties: false
      required:
        - id
        - title
        - destinationLanguage
        - translationStatus
      properties:
        id:
          type: string
          description: Id of translation job
        title:
          type: string
          description: Title of translation job
        destinationLanguage:
          type: string
          description: Target language code
        translationStatus:
          type: string
          enum:
            - DRAFT
            - SUBMITTED
            - SCOPE_REQUESTED
            - SCOPE_COMPLETED
            - COMMITTED_FOR_TRANSLATION
            - TRANSLATION_IN_PROGRESS
            - TRANSLATED
            - READY_FOR_REVIEW
            - REJECTED
            - APPROVED
            - COMPLETE
            - CANCEL
            - ARCHIVE
            - ERROR_UPDATE
            - UNKNOWN_STATE
        contents:
          type: array
          items:
            $ref: '#/components/schemas/embeddedContents'
        asyncJobID:
          type: string
          description: Latest async job Id executed on this job
        asyncJobStatus:
          type: string
          enum:
            - RUNNING
            - QUEUED
            - COMPLETED
          description: Status of latest async job executed on this job
        asyncJobExecutionMessage:
          type: string
          description: Execution message from latest async job executed on this job
      example:
        id: translationjob
        title: Translation Job [FR]
        destinationLanguage: fr
        translationStatus: APPROVED
        contents:
          - id: /content/projects/translation_project/jcr:content/dashboard/gadgets/translationjob/child_pages/magazine
            title: Magazine
            sourcePath: /content/wknd/language-masters/en/magazine
            contentPath: /content/wknd/language-masters/fr/magazine
            translationStatus: APPROVED
            type: PAGE
          - id: /content/projects/translation_project/jcr:content/dashboard/gadgets/translationjob/child_pages/ski_touring
            title: Ski Touring
            sourcePath: /content/wknd/language-masters/en/magazine/ski-touring
            contentPath: /content/wknd/language-masters/fr/magazine/ski-touring
            translationStatus: APPROVED
            type: PAGE
    embeddedTranslationJob:
      type: object
      additionalProperties: false
      required:
        - id
        - title
        - destinationLanguage
        - translationStatus
      properties:
        id:
          type: string
          description: Id of translation job
        title:
          type: string
          description: Title of translation job
        destinationLanguage:
          type: string
        translationStatus:
          type: string
          enum:
            - DRAFT
            - SUBMITTED
            - SCOPE_REQUESTED
            - SCOPE_COMPLETED
            - COMMITTED_FOR_TRANSLATION
            - TRANSLATION_IN_PROGRESS
            - TRANSLATED
            - READY_FOR_REVIEW
            - REJECTED
            - APPROVED
            - COMPLETE
            - CANCEL
            - ARCHIVE
            - ERROR_UPDATE
            - UNKNOWN_STATE
    embeddedContents:
      type: object
      additionalProperties: false
      required:
        - id
        - title
        - sourcePath
        - contentPath
        - translationStatus
        - type
      properties:
        id:
          type: string
        title:
          type: string
        sourcePath:
          type: string
        contentPath:
          type: string
        relatedReferences:
          type: array
          items:
            type: string
        translationStatus:
          type: string
          enum:
            - DRAFT
            - SUBMITTED
            - SCOPE_REQUESTED
            - SCOPE_COMPLETED
            - COMMITTED_FOR_TRANSLATION
            - TRANSLATION_IN_PROGRESS
            - TRANSLATED
            - READY_FOR_REVIEW
            - REJECTED
            - APPROVED
            - COMPLETE
            - CANCEL
            - ARCHIVE
            - ERROR_UPDATE
            - UNKNOWN_STATE
        type:
          type: string
          enum:
            - PAGE
            - ASSET
            - I18NDICTIONARY
            - ASSETMETADATA
            - TAGMETADATA
            - I18NCOMPONENTSTRINGDICT
    translateContent:
      type: object
      additionalProperties: false
      properties:
        sourcePath:
          type: array
          items:
            type: string
          description: Contains array of content's(sites/assets) path to add in jobs.
        addChildPages:
          type: boolean
          default: true
          description: Flag to add children contents.
        languageMask:
          type: array
          items:
            type: string
          example:
            - fr
          description: It can be used to mask the addition of content on subset of target Language’s job.
    addAndDeleteProjectContent:
      type: object
      additionalProperties: false
      properties:
        add:
          type: object
          additionalProperties: false
          properties:
            sourcePath:
              type: array
              items:
                type: string
              description: Contains array of content's(sites/assets) source path to add in project's jobs.
            addChildPages:
              type: boolean
              default: true
              description: Flag to add children contents.
            languageMask:
              type: array
              items:
                type: string
              example:
                - fr
              description: It can be used to mask the addition of content on subset of project's target language instead of complete set..
          required:
            - sourcePath
        delete:
          type: object
          additionalProperties: false
          properties:
            sourcePath:
              type: array
              items:
                type: string
              description: Contains array of content's(sites/assets) source path to remove contents from project's job which are in DRAFT state.
            languageMask:
              type: array
              items:
                type: string
              example:
                - fr
              description: It can be used to mask the deletion of content on subset of project's target language instead of complete set.
          required:
            - sourcePath
        automaticStartTranslation:
          type: boolean
          default: false
          description: Flag to start translation after sucessful execution of Add and Delete operation.
      required:
        - add
        - delete
    addProjectContent:
      type: object
      additionalProperties: false
      properties:
        add:
          type: object
          additionalProperties: false
          properties:
            sourcePath:
              type: array
              items:
                type: string
              description: Contains array of content's(sites/assets) source path to add in project's jobs.
            addChildPages:
              type: boolean
              default: true
              description: Flag to add children contents.
            languageMask:
              type: array
              items:
                type: string
              example:
                - fr
              description: It can be used to mask the addition of content on subset of project's target language instead of complete set..
          required:
            - sourcePath
        automaticStartTranslation:
          type: boolean
          default: false
          description: Flag to start translation after sucessful execution of Add operation.
      required:
        - add
    deleteProjectContent:
      type: object
      additionalProperties: false
      properties:
        delete:
          type: object
          additionalProperties: false
          properties:
            sourcePath:
              type: array
              items:
                type: string
              description: Contains array of content's(sites/assets) source path to remove contents from project's job which are in DRAFT state.
            languageMask:
              type: array
              items:
                type: string
              example:
                - fr
              description: It can be used to mask the deletion of content on subset of project's target language instead of complete set.
          required:
            - sourcePath
        automaticStartTranslation:
          type: boolean
          default: false
          description: Flag to start translation after sucessful execution of Delete operation.
      required:
        - delete
    addAndDeleteJobContent:
      type: object
      additionalProperties: false
      properties:
        add:
          type: object
          additionalProperties: false
          properties:
            sourcePath:
              type: array
              items:
                type: string
              description: Contains array of content's(sites/assets) source path to add in jobs.
            addChildPages:
              type: boolean
              default: true
              description: Flag to add children contents.
            isUpdateTranslationMaster:
              description: Flag to add the translation master content directly.
              type: boolean
              default: false
          required:
            - sourcePath
        delete:
          type: object
          additionalProperties: false
          properties:
            sourcePath:
              type: array
              items:
                type: string
              description: Contains array of content's(sites/assets) source path to remove contents from job.
          required:
            - sourcePath
        automaticStartTranslation:
          type: boolean
          default: false
          description: Flag to start translation after sucessful execution of Add and Delete operation.
      required:
        - add
        - delete
    addJobContent:
      type: object
      additionalProperties: false
      properties:
        add:
          type: object
          additionalProperties: false
          properties:
            sourcePath:
              type: array
              items:
                type: string
              description: Contains array of content's(sites/assets) source path to add in jobs.
            addChildPages:
              type: boolean
              default: true
              description: Flag to add children contents.
            isUpdateTranslationMaster:
              description: Flag to add the translation master content directly.
              type: boolean
              default: false
          required:
            - sourcePath
        automaticStartTranslation:
          type: boolean
          default: false
          description: Flag to start translation after sucessful execution of Add operation.
      required:
        - add
    deleteJobContent:
      type: object
      additionalProperties: false
      properties:
        delete:
          type: object
          additionalProperties: false
          properties:
            sourcePath:
              type: array
              items:
                type: string
              description: Contains array of content's(sites/assets) source path to remove contents from job.
          required:
            - sourcePath
        automaticStartTranslation:
          type: boolean
          default: false
          description: Flag to start translation after sucessful execution of Delete operation.
      required:
        - delete
    syncProcessStatus:
      required:
        - id
        - title
        - status
        - startedAt
      additionalProperties: false
      properties:
        id:
          type: string
          description: Id of sync process instance.
        title:
          type: string
          description: Title of sync process instance.
        status:
          type: string
          enum:
            - RUNNING
            - COMPLETED
            - SUSPENDED
            - ABORTED
          description: Status of the Sync Process
        startedAt:
          type: integer
          format: int64
          description: Start time of sync process instance.
        endedAt:
          type: integer
          format: int64
          description: End time of sync process instance.
        message:
          type: string
          description: Message of Sync Process execution
    asyncExecutionStatus:
      type: object
      additionalProperties: false
      required:
        - asyncJobId
        - userId
        - status
        - operation
        - submittedAt
      properties:
        asyncJobId:
          type: string
          description: id of async execution
        userId:
          type: string
          description: initiator of async execution
        status:
          type: string
          description: Status of async execution
          enum:
            - QUEUED
            - ACTIVE
            - SUCCEEDED
            - STOPPED
            - FAILED
            - CANCELLED
        operation:
          type: string
        submittedAt:
          type: string
          format: date-time
          description: Time when job is submitted in queue for processing
        startedAt:
          type: string
          format: date-time
          description: Time when job processing is started
        endedAt:
          type: string
          format: date-time
          description: Time when job processing is completed
        asyncResultItem:
          type: array
          items:
            type: object
            additionalProperties: false
            properties:
              resourceId:
                type: string
                description: ID of the resource which is processed in job execution
              resourceLink:
                type: string
                description: Link of the resource
              resourceType:
                type: string
                enum:
                  - Translation Project
                  - Translation Job
              stage:
                type: string
                enum:
                  - Job Creation
                  - Content Addition
                  - Content Deletion
                  - Content Rejection
                  - Content Acceptance
                  - Start Translation
                  - Translation Job Execution
                description: Execution stage of Async Processing
              asyncResultMessage:
                type: array
                items:
                  type: object
                  additionalProperties: false
                  properties:
                    messageType:
                      type: string
                      enum:
                        - Successful
                        - Failed
                        - Content Processed
                        - Content Skipped
                        - Failed Content
                    message:
                      type: string
      example:
        asyncJobId: asyncJobId
        userId: userId
        status: PROCESSING
        operation: Project Creation
        submittedAt: 1669800608790
        startedAt: 1669800608999
        asyncResultItem:
          - resourceId: resourceId
            resourceLink: adobe/translation/resource/resourceId
            resourceType: Resource Type
            stage: Resource Creation
            asyncResultMessage:
              - messageType: Resource Creation
                message: Resource Created Successfully
              - messageType: Embedded Resource Execution1
                message: Execution1 message
              - messageType: Embedded Resource Execution2
                message: Execution2 message
    jobMetadata:
      type: object
      description: Read-only job metadata properties that are maintained by translation process.
      properties:
        projectPath:
          type: string
          description: The project path of the job
          readOnly: true
        sourceLanguage:
          type: string
          description: ISO language code of source content
          readOnly: true
        connectorName:
          type: string
          description: The connector name registered in TIF config
          readOnly: true
        translationMethod:
          type: string
          description: Translation method used to translate the content
          enum:
            - MACHINE_TRANSLATION
            - HUMAN_TRANSLATION
          readOnly: true
        automaticScheduled:
          type: boolean
          description: Automatic repeat translation is enabled or disabled
          readOnly: true
        automaticPromoteLaunchEnable:
          type: boolean
          description: Automatic launch promote is enabled or disabled
          readOnly: true
        automaticDeleteLaunchEnable:
          type: boolean
          description: Automatic launch delete is enabled or disabled
          readOnly: true
        automaticApproveEnable:
          type: boolean
          description: Automatic translation approval is enabled or disabled
          readOnly: true
      required:
        - projectPath
        - sourceLanguage
        - connectorName
        - translationMethod
        - automaticScheduled
        - automaticPromoteLaunchEnable
        - automaticDeleteLaunchEnable
        - automaticApproveEnable
    translationObjectCount:
      type: object
      description: Read-only counts of translation objects that are maintained by translation process.
      properties:
        page:
          type: integer
          description: Count of pages and XF objects in translation job
          readOnly: true
        asset:
          type: integer
          description: Count of asset objects in translation job
          readOnly: true
        contentFragment:
          type: integer
          description: Count of content fragment objects in translation job
          readOnly: true
        i18nComponentStringDict:
          type: integer
          description: Count of i18n dictionary objects in translation job
          readOnly: true
        assetMetaData:
          type: integer
          description: Count of asset metadata objects in translation job
          readOnly: true
        tagMetadata:
          type: integer
          description: Count of tag metadata objects in translation job
          readOnly: true
        tag:
          type: integer
          description: Count of tag objects in translation job
          readOnly: true
      required:
        - page
        - asset
        - contentFragment
        - i18nComponentStringDict
        - assetMetaData
        - tagMetadata
        - tag
    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
        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: null
    user:
      type: object
      description: Read-only properties of a user who triggered the event
      properties:
        imsUserId:
          type: string
          description: The IMS user ID of the user
          readOnly: true
        principalId:
          type: string
          description: The principal ID of the user
          readOnly: true
        displayName:
          type: string
          description: The display name of the user
          readOnly: true
      required:
        - imsUserId
        - principalId
        - displayName
    error:
      required:
        - type
        - title
        - detail
      additionalProperties: false
      properties:
        type:
          type: string
        title:
          type: string
        detail:
          type: string
        instance:
          type: string
      example:
        type: AEMT0000
        message: ERROR_TITLE
        detail: problem details.
        instance: Translation Projects or JobPods ID
  responses:
    400BadRequest:
      description: Bad request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
    401Unauthenticated:
      description: Authorization information is missing or invalid.
    404NotFound:
      description: Resource was not Found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
    403Forbidden:
      description: Forbidden, request was not authorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
    412PreconditionFailed:
      description: Pre condition failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
    500InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/error'
