Skip to main content
POST
/
dependencies
/
upload
Upload manifest file and subscribe to dependencies
curl --request POST \
  --url https://apigcp.trynia.ai/v2/dependencies/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form include_dev_dependencies=false \
  --form max_new_indexes=150
{
  "manifest_type": "<string>",
  "total_dependencies": 123,
  "results": {
    "instant_access": [
      {
        "name": "<string>",
        "action": "<string>",
        "docs_url": "<string>",
        "global_source_id": "<string>",
        "namespace": "<string>",
        "message": "<string>"
      }
    ],
    "wait_for_indexing": [
      {
        "name": "<string>",
        "action": "<string>",
        "docs_url": "<string>",
        "global_source_id": "<string>",
        "namespace": "<string>",
        "message": "<string>"
      }
    ],
    "started_indexing": [
      {
        "name": "<string>",
        "action": "<string>",
        "docs_url": "<string>",
        "global_source_id": "<string>",
        "namespace": "<string>",
        "message": "<string>"
      }
    ],
    "not_found": [
      {
        "name": "<string>",
        "action": "<string>",
        "docs_url": "<string>",
        "global_source_id": "<string>",
        "namespace": "<string>",
        "message": "<string>"
      }
    ],
    "errors": [
      {
        "name": "<string>",
        "action": "<string>",
        "docs_url": "<string>",
        "global_source_id": "<string>",
        "namespace": "<string>",
        "message": "<string>"
      }
    ],
    "skipped": [
      {
        "name": "<string>",
        "action": "<string>",
        "docs_url": "<string>",
        "global_source_id": "<string>",
        "namespace": "<string>",
        "message": "<string>"
      }
    ]
  },
  "summary": {
    "instant_access": 123,
    "wait_for_indexing": 123,
    "started_indexing": 123,
    "not_found": 123,
    "errors": 123,
    "skipped": 123
  }
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

multipart/form-data
file
file
required

Manifest file to upload

include_dev_dependencies
boolean
default:false

Include dev dependencies

max_new_indexes
integer
default:150

Max new indexes to start

Required range: 0 <= x <= 500

Response

Subscription completed

manifest_type
string
total_dependencies
integer
results
object
summary
object