[js] Upload NPM package-lock.json
POST/api/v1/catalog/:tagOrId/packages/node/package-lock
[js] Upload NPM package-lock.json
Request
Path Parameters
The tag (x-cortex-tag
) or unique, auto-generated identifier for the entity.
- application/json
Body
required
Stringified version of your NPM package-lock.json
string
Responses
- 200
- 404
Successfully saved packages
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
Possible values: [NODE
, JAVA
, PYTHON
, GO
, NUGET
]
[
{
"dateCreated": "2024-07-29T15:51:28.071Z",
"id": 0,
"name": "string",
"packageType": "NODE",
"version": "string"
}
]
[
{
"dateCreated": "2023-01-01T01:01:01.000Z",
"id": 0,
"name": "string",
"packageType": "NODE",
"version": "string"
}
]
Entity not found
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [INTEGRATION_MISSING
, INTEGRATION_UNREGISTERED
, INTEGRATION_UNSUPPORTED
, INTEGRATION_GRAPHQL_ERROR
, INTEGRATION_BAD_REQUEST
, INTEGRATION_UNAUTHORIZED
, INTEGRATION_FORBIDDEN
, INTEGRATION_NOT_FOUND
, INTEGRATION_UNPROCESSABLE_CONTENT
, INTEGRATION_RATE_LIMITED
, INTEGRATION_INTERNAL_ERROR
, INTEGRATION_NOT_IMPLEMENTED
, INTEGRATION_BAD_GATEWAY
, INTEGRATION_UNAVAILABLE
, INTEGRATION_GATEWAY_TIMEOUT
, INTEGRATION_TIMED_OUT
, INTEGRATION_CACHE_ERROR
, INTEGRATION_UNHANDLED_HTTP_ERROR
, INTEGRATION_UNHANDLED_EXCEPTION
, INTEGRATION_UNEXPECTED_ERROR
, ILLEGAL_ARGUMENT_ERROR
, BAD_REQUEST
, FORBIDDEN
, NOT_FOUND
, REQUEST_TIMEOUT
, CONFLICT
, UNHANDLED_EXCEPTION
, UNCATEGORIZED
, SERVICE_CREATOR
, UNKNOWN_HOST
]
{
"details": "string",
"gatewayHttpStatus": 0,
"httpStatus": 0,
"message": "string",
"requestId": "string",
"type": "INTEGRATION_MISSING"
}