acquia-dam-sdk / Components / WorkflowApi
new WorkflowApi(
client):WorkflowApi
Create an instance of the WorkflowApi class
Workflow objects represent projects and deliverables stored in the Acquia Workflow system. The API allows you to retrieve, create, delete, and close deliverables and projects.
Provide an instance of ApiClient.
https://docs.acquia.com/acquia-dam/api-v2#tag/Workflow-App-Projects
addDeliverable(
params):Promise<AddDeliverableResult>
Add a deliverable to a project
Information about the request
Promise<AddDeliverableResult>
Promise containing information about the added deliverable
closeDeliverable(
params):Promise<void>
Close the deliverable. Optionally, provide a filename and upload_profile to move the deliverable over to Assets
Information about the request
Promise<void>
Promise containing no information
createProject(
params):Promise<CreateProjectResult>
Create a new project
Information about the request
Promise<CreateProjectResult>
Promise containing the new project's ID
https://docs.acquia.com/acquia-dam/api-v2#tag/Workflow-App-Projects/operation/createProject
deleteDeliverable(
project_id,deliverable_id):Promise<void>
Delete a deliverable
string
Project ID
string
Deliverable ID
Promise<void>
Promise containing no information
deleteProject(
project_id):Promise<void>
Delete a project
string
Project ID
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Workflow-App-Projects/operation/deleteProject
getDeliverable(
params):Promise<GetDeliverableResult>
Retrieve information about a deliverable
Information about the request
Promise<GetDeliverableResult>
Promise containing information about the deliverable
getProject(
params):Promise<GetProjectResult>
Retrieve information about a project
Information about the request
Promise<GetProjectResult>
Promise containing information about the deliverable
https://docs.acquia.com/acquia-dam/api-v2#tag/Workflow-App-Projects/operation/retrieveProjectById
listDeliverables(
params):Promise<ListDeliverablesResult>
Retrieve all deliverables for a project
Information about the request
Promise<ListDeliverablesResult>
Promise containing a list of deliverables
listSupportingFiles(
project_id):Promise<GetSupportingFilesResult>
Retrieve all supporting files for a project
string
Project ID
Promise<GetSupportingFilesResult>
Promise containing a list of supporting files
uploadProof(
params):Promise<UploadProofResult>
Upload proof to a deliverable
Information about the request
Promise<UploadProofResult>
Promise containing information about the deliverable