read
write
) Bad Request
Internal server error
Returns create response
curl -i -X POST \ 'https://app.harness.io/gateway/ng/api/file-store?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string' \ -H 'Content-Type: multipart/form-data' \ -H 'x-api-key: YOUR_API_KEY_HERE' \ -F tags=string \ -F 'content=[object Object]' \ -F identifier=string \ -F name=string \ -F fileUsage=MANIFEST_FILE \ -F type=FILE \ -F parentIdentifier=string \ -F description=string \ -F mimeType=string
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
read
write
) Bad Request
Internal server error
Returns true if deletion was successful.
curl -i -X DELETE \ 'https://app.harness.io/gateway/ng/api/file-store/{identifier}?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
read
write
) Bad Request
Internal server error
Download the file with content
curl -i -X GET \ 'https://app.harness.io/gateway/ng/api/file-store/file/{fileIdentifier}/download?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string' \ -H 'x-api-key: YOUR_API_KEY_HERE'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
read
write
) Folder node for which to return the list of nodes
Bad Request
Internal server error
Returns the list of folder nodes as children
{- "identifier": "string",
- "name": "string",
- "type": "FILE",
- "children": [
- {
- "identifier": "string",
- "name": "string",
- "type": "FILE"
}
]
}
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}
read
write
) Bad Request
Internal server error
Returns update response
curl -i -X PUT \ 'https://app.harness.io/gateway/ng/api/file-store/{identifier}?accountIdentifier=string&orgIdentifier=string&projectIdentifier=string' \ -H 'Content-Type: multipart/form-data' \ -H 'x-api-key: YOUR_API_KEY_HERE' \ -F tags=string \ -F identifier=string \ -F name=string \ -F fileUsage=MANIFEST_FILE \ -F type=FILE \ -F parentIdentifier=string \ -F description=string \ -F mimeType=string \ -F 'content=[object Object]'
{- "status": "SUCCESS",
- "code": "DEFAULT_ERROR_CODE",
- "message": "string",
- "correlationId": "string",
- "errors": [
- {
- "fieldId": "string",
- "error": "string"
}
]
}