Adobe Premiere Pro · Arazzo Workflow

Adobe Premiere Add Element to Creative Cloud Library

Version 1.0.0

Create a library, add an element to it, then read the element back.

1 workflow 1 source API 1 provider
View Spec View on GitHub AdobeAutomationCreative CloudMediaPremiere ProVideo EditingVideo ProductionArazzoWorkflows

Provider

adobe-premiere

Workflows

add-element-to-library
Provision a library and add a typed element, then verify the element.
Creates a new library, captures its id, creates an element of the supplied type and name inside that library, and finally reads the element back to confirm creation and surface its representations.
3 steps inputs: accessToken, elementName, elementType, libraryName outputs: elementId, elementType, libraryId
1
createLibrary
createLibrary
Create the library that will hold the new element.
2
createElement
createLibraryElement
Add a typed element to the newly created library using the supplied name and type.
3
getElement
getLibraryElement
Read the created element back to confirm it persisted and to expose its representations.

Source API Descriptions

Arazzo Workflow Specification

adobe-premiere-add-element-to-library-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Adobe Premiere Add Element to Creative Cloud Library
  summary: Create a library, add an element to it, then read the element back.
  description: >-
    A three-step authoring flow for the Adobe Creative Cloud Libraries API used
    by Premiere Pro. The workflow creates a new library, adds a typed element
    (color, graphic, video, or other supported type) to that library, and then
    fetches the created element by id to confirm it persisted and to expose its
    representations. Each step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: creativeCloudLibrariesApi
  url: ../openapi/adobe-premiere-creative-cloud-libraries-openapi.yml
  type: openapi
workflows:
- workflowId: add-element-to-library
  summary: Provision a library and add a typed element, then verify the element.
  description: >-
    Creates a new library, captures its id, creates an element of the supplied
    type and name inside that library, and finally reads the element back to
    confirm creation and surface its representations.
  inputs:
    type: object
    required:
    - accessToken
    - libraryName
    - elementName
    - elementType
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token for the Creative Cloud Libraries API.
      libraryName:
        type: string
        description: Name to assign to the new Creative Cloud Library.
      elementName:
        type: string
        description: Display name for the new element.
      elementType:
        type: string
        description: >-
          Element type. One of color, characterstyle, brushstyle, graphic,
          pattern, or video.
  steps:
  - stepId: createLibrary
    description: Create the library that will hold the new element.
    operationId: createLibrary
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.libraryName
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      libraryId: $response.body#/id
  - stepId: createElement
    description: >-
      Add a typed element to the newly created library using the supplied name
      and type.
    operationId: createLibraryElement
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: libraryId
      in: path
      value: $steps.createLibrary.outputs.libraryId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.elementName
        type: $inputs.elementType
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      elementId: $response.body#/id
  - stepId: getElement
    description: >-
      Read the created element back to confirm it persisted and to expose its
      representations.
    operationId: getLibraryElement
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: libraryId
      in: path
      value: $steps.createLibrary.outputs.libraryId
    - name: elementId
      in: path
      value: $steps.createElement.outputs.elementId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      elementId: $response.body#/id
      elementName: $response.body#/name
      elementType: $response.body#/type
      representations: $response.body#/representations
  outputs:
    libraryId: $steps.createLibrary.outputs.libraryId
    elementId: $steps.getElement.outputs.elementId
    elementType: $steps.getElement.outputs.elementType