Create an API version from a project
POST /apim/create_from_project
Overview
This API creates an API version using the assets of an existing project.
The destination version can be in the same or another API, Project, Environment/Org, or Snaplex.
Prerequisites
- Read access to the source project
- Write access to the target Org
Request
POST https://{pod_path}/api/1/rest/public/apim/create_from_project
Path Parameters
Key | Description |
---|---|
pod_path |
Required. The path to your SnapLogic pod.
Example: |
Query Parameters
None.
Request Header
Specify Basic
for authorization and application/json
for content type.
Authorization: Basic {your_encoded_security_credentials}
Content-Type: application/json
Request Body
{
"project_path" : "...",
"plex_path" : "...",
"api" : "...",
"version" : "...",
"tags" : [...],
"description" : "...",
"asset_types" : [...]
}
Key | Type | Description |
---|---|---|
project_path |
string |
Required. The path to the SnapLogic project.
Format: Important: The path comparison is case-sensitive.
|
plex_path |
string |
The path to the Snaplex.
Format: |
api |
string | The name of the API for which to create a new version. |
version |
string | The new version. |
tags |
array | Tags to associate with the new version.
Default: An empty array |
description |
string | Additional information to associate with the new version.
Default: An empty string |
asset_types |
array | The list of asset types to copy to the new version.
Valid values:
Default: All valid asset types. |
Response
Status code only.