Adobe Premiere Pro · Arazzo Workflow

Adobe Premiere Rename and Verify Creative Cloud Library

Version 1.0.0

Read a library, update its name, then read it back to confirm the change.

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

Provider

adobe-premiere

Workflows

rename-and-verify-library
Capture a library's current name, patch it, then verify the rename.
Reads the library to capture its current name and modified timestamp, updates the library with the new name, and re-reads it to confirm the rename took effect.
3 steps inputs: accessToken, libraryId, newName outputs: libraryId, modifiedDate, name, previousName
1
readBefore
getLibrary
Read the library to capture its current name before renaming.
2
renameLibrary
updateLibrary
Patch the library with the new name.
3
readAfter
getLibrary
Re-read the library to confirm the new name was persisted and capture the updated modified timestamp.

Source API Descriptions

Arazzo Workflow Specification

adobe-premiere-rename-and-verify-library-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Adobe Premiere Rename and Verify Creative Cloud Library
  summary: Read a library, update its name, then read it back to confirm the change.
  description: >-
    A read-update-verify flow for the Adobe Creative Cloud Libraries API used by
    Premiere Pro. The workflow reads the current state of a library, patches its
    name with the supplied value, and then re-reads the library to confirm the
    new name was persisted and the modified timestamp advanced. 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: rename-and-verify-library
  summary: Capture a library's current name, patch it, then verify the rename.
  description: >-
    Reads the library to capture its current name and modified timestamp,
    updates the library with the new name, and re-reads it to confirm the rename
    took effect.
  inputs:
    type: object
    required:
    - accessToken
    - libraryId
    - newName
    properties:
      accessToken:
        type: string
        description: OAuth 2.0 bearer access token for the Creative Cloud Libraries API.
      libraryId:
        type: string
        description: Identifier of the library to rename.
      newName:
        type: string
        description: New name to assign to the library.
  steps:
  - stepId: readBefore
    description: Read the library to capture its current name before renaming.
    operationId: getLibrary
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: libraryId
      in: path
      value: $inputs.libraryId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      libraryId: $response.body#/id
      previousName: $response.body#/name
  - stepId: renameLibrary
    description: Patch the library with the new name.
    operationId: updateLibrary
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: libraryId
      in: path
      value: $steps.readBefore.outputs.libraryId
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.newName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      libraryId: $response.body#/id
      name: $response.body#/name
  - stepId: readAfter
    description: >-
      Re-read the library to confirm the new name was persisted and capture the
      updated modified timestamp.
    operationId: getLibrary
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: libraryId
      in: path
      value: $steps.renameLibrary.outputs.libraryId
    successCriteria:
    - condition: $statusCode == 200
    - condition: $response.body#/name == $inputs.newName
    outputs:
      libraryId: $response.body#/id
      name: $response.body#/name
      modifiedDate: $response.body#/modified_date
  outputs:
    libraryId: $steps.readAfter.outputs.libraryId
    previousName: $steps.readBefore.outputs.previousName
    name: $steps.readAfter.outputs.name
    modifiedDate: $steps.readAfter.outputs.modifiedDate