Description: Deploy an artifact to the specified destination.
Notes: You can also Attach Properties as part of deploying artifacts.
Security: Requires a user with 'deploy' permissions (can be anonymous)
Usage: PUT /repo-key/path/to/artifact.ext
Headers: Optionally, you can provide checksum headers to verify the integrity of the deployment. Artifactory rejects the deployment if the checksums do not match.
X-Checksum-Sha1: [sha1Value]
X-Checksum-Sha256: [sha256Value]
Produces: application/json (application/vnd.org.jfrog.artifactory.storage.ItemCreated+json)
Important
In certain cases (particularly when working with large artifacts), the Created timestamp might be later than the Last Modified timestamp. This can occur because the Last Modified timestamp records when the upload began, whereas the Created timestamp is set only when the upload is complete and committed to the database.
Sample Usage:
curl -X PUT -u [username]:[password] [artifactory_url]/artifactory/[repo_name]/[artifact_path] --data-binary @[path_to_local_file] { "repo": "libs-release-local", "path": "/my/jar/1.0/jar-1.0.jar", "created": ISO8601 (yyyy-MM-dd'T'HH:mm:ss.SSSZ), "createdBy": "userY", "downloadUri": "http://localhost:8081/artifactory/libs-release-local/my/jar/1.0/jar-1.0.jar", "mimeType": "application/java-archive", "size": "1024", //bytes "checksums": { "md5": string, "sha1": string }, "originalChecksums": { "md5": string, "sha1": string } "uri": "http://localhost:8081/artifactory/libs-release-local/my/jar/1.0/jar-1.0.jar", }
Status Codes:
Status | Description |
---|---|
201 | Created |
404 | Not Found |
409 | Duplicate/Conflict |