Book a demo

← Documentation

Add Asset to Module

Method / path: POST /api/v1/modules/{id}/assets

Prerequisites

  • The caller must provide a module id.

Authorization

  • API key (via the X-API-KEY header).

Parameters

Path Parameters

Field nameDescriptionFormat
idModule IDUUID

Request Body

Field nameDescriptionFormat
profileProfile nameString
fetchRequestsFetch request objects listArray

Response Body

Field nameDescriptionFormat
idsList of created asset IDsArray

Fetch Request Structure

Field nameDescriptionFormat
assetNameThe name of the assetString
programPathThe path to the programString
sourceModeThe source retrieval modeString
sourcePathThe source file pathString
sourcesSource file name-to-content mappingMap
parserThe source parser typeString

Examples

mainframe-rpc

```json

{ "fetchRequests": [ { "sourceMode": "upload", "assetName": "hello", "programPath": "HELLO", "sources": { "HELLO.cbl": " IDENTIFICATION DIVISION.\r\n PROGRAM-ID. HELLO." }, "sourcePath": "", "parser": "COBOL" } ] } json { "ids": [ "00000000-0000-0000-0000-000000001111" ] } ```

as400-rpc

```json

{ "fetchRequests": [ { "sourceMode": "upload", "assetName": "hello", "programPath": "/QSYS.LIB/RMR2L1.LIB/HELLO.PGM", "sources": { "HELLO.cbl": " IDENTIFICATION DIVISION.\r\n PROGRAM-ID. HELLO." }, "sourcePath": "", "parser": "COBOL" } ] } json { "ids": [ "00000000-0000-0000-0000-000000002222" ] } ```

ims-rpc

```json

{ "fetchRequests": [ { "sourceMode": "upload", "assetName": "hello", "programPath": "HELLO", "sources": { "HELLO.cbl": " IDENTIFICATION DIVISION.\r\n PROGRAM-ID. HELLO." }, "sourcePath": "", "parser": "COBOL" } ] } json { "ids": [ "00000000-0000-0000-0000-000000003333" ] } ```

Read more

Tell us about yourself

You've been browsing the catalog. Leave your details to keep exploring.

Privacy policy