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.
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: librariesApi
url: ../openapi/adobe-premiere-libraries-api-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
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.