PutObject
Adds an object to a bucket. If the bucket is enabled for versioning, Put Object API returns the VersionId of the object.
Request Syntax
PUT /bucket/Key HTTP/1.1 Host: msdps3.server:8443 Content-Length: ContentLength Content-MD5: ContentMD5 Body
Request Parameters
Bucket
Name of the bucket.
Required: Yes
Type: String
Key
Name of the object.
Required: Yes
Type: String
Response Syntax
HTTP/1.1 200 ETag: ETag x-amz-version-id: VersionId
Response Headers
x-amz-version-id
The version ID of the object PUT in the bucket.
Possible Error Response
Success
HTTP status code 200.
EntityTooLarge
The object size exceeded maximum allowed size.
HTTP status code 400.
AccessDenied
Request was rejected because user authentication failed.
HTTP status code 403.
NoSuchBucket
The specified bucket does not exist.
HTTP status code 404.
InternalError
Request failed because of an internal server error.
HTTP status code 500.