Registry V3 Files
V3 files endpoints
List files.
Unique identifier for the Harness account.
Unique identifier for the organization within the account.
Example: default or engineering_org
Unique identifier for the project within the organization.
Example: my_project or frontend_services
Unique id for the registry.
12345678-1234-1234-1234-123456789012Unique identifier for the package.
Unique identifier for the version.
Internal UUID of the Conan recipe revision (RREV) row. Resolves file paths via node_entity_mapping. Requires version_id. Mutually exclusive with package_revision_id.
Internal UUID of the Conan package revision (PREV) row. Resolves file paths via node_entity_mapping. Requires version_id. Mutually exclusive with recipe_revision_id.
The page number for pagination (0-indexed).
Used to navigate through large result sets. Combined with size parameter
to control which subset of results to return.
Example: page=0 returns the first page, page=1 returns the second page
0The number of items to return per page.
Controls the page size for paginated results.
Example: size=50 returns up to 50 items per page
20The sort for the results.
Accepted pattern: sort_field:sort_order where sort_field is the field name
and sort_order is either asc or desc.
Examples: name:asc, modifiedAt:desc
Search term for filtering results.
Example: search_term=prod might match keys like "production", "prod-env", etc.
response for list files
Pagination metadata.
pageselects which page of results to return (0 = first page).sizecontrols how many items are returned per page.hasMoreis true if more results exist after this page.
True if more results exist after this page.
trueThe current page (0-indexed)
0Number of items per page
20Error response.
GET /api/v3/files?account_identifier=text HTTP/1.1
Accept: */*
{
"hasMore": true,
"page": 0,
"size": 20,
"items": [
{
"createdAt": 1736360000123,
"createdBy": {
"display_name": "text",
"email": "text",
"type": "text",
"uid": "text"
},
"downloadCmd": "text",
"downloadUrl": "text",
"id": "text",
"md5": "text",
"name": "text",
"path": "text",
"sha1": "text",
"sha256": "text",
"sha512": "text",
"size": "text"
}
],
"meta": {
"activeCount": 95,
"deletedCount": 5
}
}Retrieves details for a single file by its id, including its downloadUrl (GET /files/{id}/content) and Content-Type. Following downloadUrl applies Content-Type and either inline preview or an attachment download.
Unique identifier for the Harness account.
Response containing details for a single file, including its Content-Type.
Error response.
GET /api/v3/files/{id}?account_identifier=text HTTP/1.1
Accept: */*
{
"data": {
"createdAt": 1736360000123,
"createdBy": {
"display_name": "text",
"email": "text",
"type": "text",
"uid": "text"
},
"downloadCmd": "text",
"downloadUrl": "text",
"id": "text",
"md5": "text",
"name": "text",
"path": "text",
"sha1": "text",
"sha256": "text",
"sha512": "text",
"size": "text",
"contentType": "text"
}
}Download a file using its id.
Unique identifier for the Harness account.
Response containing file content
Temporary Redirect
Error response.
GET /api/v3/files/{id}/content?account_identifier=text HTTP/1.1
Accept: */*
binaryRetrieves all metadata for a file.
Unique identifier for the Harness account.
Response containing all metadata entries for the requested entity
Error response.
GET /api/v3/files/{id}/metadata?account_identifier=text HTTP/1.1
Accept: */*
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"key": "environment",
"type": "MANUAL",
"value": "production"
}
]
}Creates or overwrites metadata for a file.
Unique identifier for the Harness account.
Request payload containing metadata key-value pairs to add or update.
Response containing all metadata entries for the requested entity
Error response.
POST /api/v3/files/{id}/metadata?account_identifier=text HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"metadata": [
{
"key": "environment",
"value": "production"
},
{
"key": "team",
"value": "backend"
}
]
}{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"key": "environment",
"type": "MANUAL",
"value": "production"
}
]
}Replaces all metadata for a file.
Unique identifier for the Harness account.
Request payload containing metadata key-value pairs to add or update.
Response containing all metadata entries for the requested entity
Error response.
PUT /api/v3/files/{id}/metadata?account_identifier=text HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"metadata": [
{
"key": "environment",
"value": "production"
},
{
"key": "team",
"value": "backend"
}
]
}{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"key": "environment",
"type": "MANUAL",
"value": "production"
}
]
}Last updated
Was this helpful?