Import Postman Collection Data
POST
/v1/projects/{projectId}/import-postman-collection
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.apidog.com/v1/projects/{{projectId}}/import-postman-collection?locale=en-US' \
--header 'X-Apidog-Api-Version;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"input":"{\"info\":{\"name\":\"Swagger Petstore\",\"description\":\"This is a sample server Petstore server.\",\"schema\":\"https://schema.getpostman.com/json/collection/v2.1.0/collection.json\"},\"item\":[],\"variable\":[{\"key\":\"baseUrl\",\"value\":\"//petstore.swagger.io/v2\",\"type\":\"string\"}]}",
"options":{
"targetEndpointFolderId":0,
"endpointOverwriteBehavior":"OVERWRITE_EXISTING",
"endpointCaseOverwriteBehavior":"OVERWRITE_EXISTING",
"updateFolderOfChangedEndpoint":false
}
}'
Response Response Example
{
"data": {
"counters": {
"endpointCreated": 10,
"endpointUpdated": 0,
"endpointFailed": 0,
"endpointIgnored": 0,
"endpointFolderCreated": 0,
"endpointFolderUpdated": 0,
"endpointFolderFailed": 0,
"endpointFolderIgnored": 0,
"endpointCaseCreated": 0,
"endpointCaseUpdated": 0,
"endpointCaseFailed": 0,
"endpointCaseIgnored": 0
}
}
}
Request
Path Params
projectId
string
required
Example:
{{projectId}}
Query Params
locale
string
optional
Example:
en-US
Header Params
X-Apidog-Api-Version
enum<string>
required
Allowed value:
2024-03-28
Default:
2024-03-28
Authorization
string
required
Default:
Bearer {{access_token}}
Body Params application/json
Responses
Modified at 2024-12-04 04:32:07