-
Notifications
You must be signed in to change notification settings - Fork 2
AEM Links and Custom Scripts Additional APIs #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rhythmjain18-adobe
wants to merge
2
commits into
iad-pages
Choose a base branch
from
users/rhythmj/AEMLinksSupport
base: iad-pages
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,8 @@ tags: | |
| description: Data Merge API. | ||
| - name: customScripts | ||
| description: Custom Scripts API. | ||
| - name: remapLinks | ||
| description: Remap Links API. | ||
| security: | ||
| - ApiKeyAuth: [] | ||
| - BearerAuth: [] | ||
|
|
@@ -286,6 +288,146 @@ paths: | |
| $ref: "#/components/responses/NotFound" | ||
| 500: | ||
| $ref: "#/components/responses/InternalServerError" | ||
| get: | ||
| tags: | ||
| - customScripts | ||
| summary: List all registered custom scripts. | ||
| description: Retrieves details of the latest version of all custom scripts registered by the customer. This includes version, script's download link, registration date, and script name. The response is paginated depending on list length. | ||
| parameters: | ||
| - name: x-gw-ims-org-id | ||
| in: header | ||
| description: Identifier for IMS organization as defined in Adobe's developer console | ||
| required: false | ||
| schema: | ||
| type: string | ||
| - name: x-api-key | ||
| in: header | ||
| description: API key as defined in Adobe's developer console | ||
| required: true | ||
| schema: | ||
| type: string | ||
| - name: Authorization | ||
| in: header | ||
| description: Authorization token with bearer "token_value" | ||
| required: true | ||
| schema: | ||
| type: string | ||
| - name: page | ||
| in: query | ||
| description: Page number for pagination | ||
| required: false | ||
| schema: | ||
| type: integer | ||
| default: 1 | ||
| responses: | ||
| 200: | ||
| description: List of registered custom scripts | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/CustomScriptsListResponse' | ||
| 400: | ||
| $ref: "#/components/responses/BadParams" | ||
| 401: | ||
| $ref: "#/components/responses/Unauthorized" | ||
| 403: | ||
| $ref: "#/components/responses/Forbidden" | ||
| 404: | ||
| $ref: "#/components/responses/NotFound" | ||
| 500: | ||
| $ref: "#/components/responses/InternalServerError" | ||
|
|
||
| /v3/scripts/{script_name}: | ||
| get: | ||
| tags: | ||
| - customScripts | ||
| summary: Get details of a specific custom script. | ||
| description: Retrieves details of a single custom script registered by the customer. This includes version, script's download link, registration date, and script name. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Retrieves details for all versions of a single custom script registered by the customer. This includes the script's version, script's execution and download link, registration date, and script name. |
||
| parameters: | ||
| - name: x-gw-ims-org-id | ||
| in: header | ||
| description: Identifier for IMS organization as defined in Adobe's developer console | ||
| required: false | ||
| schema: | ||
| type: string | ||
| - name: x-api-key | ||
| in: header | ||
| description: API key as defined in Adobe's developer console | ||
| required: true | ||
| schema: | ||
| type: string | ||
| - name: Authorization | ||
| in: header | ||
| description: Authorization token with bearer "token_value" | ||
| required: true | ||
| schema: | ||
| type: string | ||
| - name: script_name | ||
| in: path | ||
| description: Name of the custom script | ||
| required: true | ||
| schema: | ||
| type: string | ||
| responses: | ||
| 200: | ||
| description: Details of the custom script | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/CustomScriptDetails' | ||
| 400: | ||
| $ref: "#/components/responses/BadParams" | ||
| 401: | ||
| $ref: "#/components/responses/Unauthorized" | ||
| 403: | ||
| $ref: "#/components/responses/Forbidden" | ||
| 404: | ||
| $ref: "#/components/responses/NotFound" | ||
| 500: | ||
| $ref: "#/components/responses/InternalServerError" | ||
| delete: | ||
| tags: | ||
| - customScripts | ||
| summary: Delete a specific custom script. | ||
| description: Deletes a single custom script registered by the customer. All versions of that script will be deleted. | ||
| parameters: | ||
| - name: x-gw-ims-org-id | ||
| in: header | ||
| description: Identifier for IMS organization as defined in Adobe's developer console | ||
| required: false | ||
| schema: | ||
| type: string | ||
| - name: x-api-key | ||
| in: header | ||
| description: API key as defined in Adobe's developer console | ||
| required: true | ||
| schema: | ||
| type: string | ||
| - name: Authorization | ||
| in: header | ||
| description: Authorization token with bearer "token_value" | ||
| required: true | ||
| schema: | ||
| type: string | ||
| - name: script_name | ||
| in: path | ||
| description: Name of the custom script to delete | ||
| required: true | ||
| schema: | ||
| type: string | ||
| responses: | ||
| 204: | ||
| description: Script successfully deleted | ||
| 400: | ||
| $ref: "#/components/responses/BadParams" | ||
| 401: | ||
| $ref: "#/components/responses/Unauthorized" | ||
| 403: | ||
| $ref: "#/components/responses/Forbidden" | ||
| 404: | ||
| $ref: "#/components/responses/NotFound" | ||
| 500: | ||
| $ref: "#/components/responses/InternalServerError" | ||
|
|
||
| /v3/{script_id}/{script_name}: | ||
| post: | ||
|
|
@@ -345,6 +487,59 @@ paths: | |
| 500: | ||
| $ref: "#/components/responses/InternalServerError" | ||
|
|
||
| /v3/remap-links: | ||
| post: | ||
| tags: | ||
| - remapLinks | ||
| summary: Remaps file-based links to AEM URLs in InDesign documents | ||
| description: Replaces existing file-based links in InDesign documents with AEM URLs. This is particularly useful for customers working with AEM using AAL, as it allows designers to work with the output files post-generation by having direct links to AEM URLs. | ||
| operationId: remapLinks | ||
| parameters: | ||
| - name: x-gw-ims-org-id | ||
| in: header | ||
| description: Identifier for IMS organization as defined in Adobe's developer console. This is optional | ||
| required: false | ||
| schema: | ||
| type: string | ||
| - name: x-api-key | ||
| in: header | ||
| description: API key as defined in Adobe's developer console | ||
| required: true | ||
| schema: | ||
| type: string | ||
| - name: Authorization | ||
| in: header | ||
| description: Authorization token with bearer "token_value" | ||
| required: true | ||
| schema: | ||
| type: string | ||
| - name: x-aem-token | ||
| in: header | ||
| description: Bearer token generated for AEM technical account without the bearer keyword | ||
| required: true | ||
| schema: | ||
| type: string | ||
| requestBody: | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/RemapLinksRequest" | ||
| description: Job request object that specifies parameters for remapping links in the InDesign document. | ||
| required: true | ||
| responses: | ||
| 202: | ||
| $ref: '#/components/responses/Accepted' | ||
| 400: | ||
| $ref: "#/components/responses/BadParams" | ||
| 401: | ||
| $ref: "#/components/responses/Unauthorized" | ||
| 403: | ||
| $ref: "#/components/responses/Forbidden" | ||
| 404: | ||
| $ref: "#/components/responses/NotFound" | ||
| 500: | ||
| $ref: "#/components/responses/InternalServerError" | ||
|
|
||
| servers: | ||
| - url: https://indesign.adobe.io/ | ||
| components: | ||
|
|
@@ -1409,14 +1604,14 @@ components: | |
| - succeeded | ||
| data: | ||
| type: object | ||
| description: Output response from current state of the job. | ||
| description: Output response from current state of the job. | ||
| dataURL: | ||
| type: string | ||
| description: The data returned from execution of the job. If the data is more than 250 kB and less the 20 MB, it will be provided as a presigned URL. If it is more than 20 MB, the job will fail. | ||
| outputs: | ||
| type: object | ||
| description: This contains list of URL for all the generated assets | ||
|
|
||
| failedEvent: | ||
| allOf: | ||
| - $ref: '#/components/schemas/BaseEvent' | ||
|
|
@@ -1433,8 +1628,10 @@ components: | |
| description: Error code for failure. | ||
| message: | ||
| type: string | ||
| description: Error message for failure | ||
|
|
||
| description: Error message for failure | ||
| data: | ||
| type: object | ||
| description: Detailed error information | ||
|
|
||
| ErrorCodesAndDefinitions: | ||
| allOf: | ||
|
|
@@ -1936,3 +2133,88 @@ components: | |
| code: | ||
| type: integer | ||
| description: The error code. | ||
|
|
||
| RemapLinksRequest: | ||
| allOf: | ||
| - description: Inputs for the link remapping request. | ||
| type: object | ||
| required: | ||
| - params | ||
| - assets | ||
| properties: | ||
| assets: | ||
| type: array | ||
| items: | ||
| $ref: "#/components/schemas/InputAsset" | ||
| params: | ||
| type: object | ||
| required: | ||
| - targetDocument | ||
| - dataSource | ||
| properties: | ||
| targetDocument: | ||
| description: The InDesign document in which links need to be remapped. | ||
| type: string | ||
| dataSource: | ||
| description: Array of link mappings containing source and destination URIs. | ||
| type: array | ||
| minItems: 1 | ||
| items: | ||
| type: object | ||
| required: | ||
| - sourceURI | ||
| - destinationURI | ||
| properties: | ||
| sourceURI: | ||
| type: string | ||
| description: File path/resource URI for the existing link that needs to be remapped. | ||
| destinationURI: | ||
| type: string | ||
| description: AEM URI that will replace the existing link. | ||
| outputs: | ||
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/OutputAsset' | ||
|
|
||
| CustomScriptsListResponse: | ||
| type: object | ||
| description: Response containing list of registered custom scripts | ||
| properties: | ||
| capabilities: | ||
| type: array | ||
| items: | ||
| $ref: '#/components/schemas/CustomScriptDetails' | ||
| paging: | ||
| type: object | ||
| properties: | ||
| nextUrl: | ||
| type: string | ||
| description: URL for the next page of results | ||
| example: "https://indesign.adobe.io/api/v3/scripts?page=2" | ||
|
|
||
| CustomScriptDetails: | ||
| type: object | ||
| description: Details of a custom script | ||
| properties: | ||
| version: | ||
| type: string | ||
| description: Version of the custom script | ||
| example: "1.0.2" | ||
| url: | ||
| type: string | ||
| description: URL that was generated during registration | ||
| example: "https://indesign.adobe.io/v3/634aaf2dd50c8d198/idml/export" | ||
| downloadurl: | ||
| type: string | ||
| description: Pre-signed URL for downloading the script (valid for 30 minutes) | ||
| example: "https://example.com/download/script.zip" | ||
| createdDate: | ||
| type: string | ||
| format: date-time | ||
| description: Registration date of the script | ||
| example: "2025-07-03T08:44:26.051Z" | ||
| scriptName: | ||
| type: string | ||
| description: Name of the custom script | ||
| example: "3p-testing/test1" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retrieves details of the latest version of all custom scripts registered by the customer. This includes version, script's download and execution link, registration date, and script name. The response is paginated depending on number of scripts registered.