diff --git a/docs/API.md b/docs/API.md
index 55287bd8..7a3b2d4d 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -42,7 +42,7 @@ var s3Client = new Minio.Client({
| [`getBucketTagging`](#getBucketTagging) | [`removeIncompleteUpload`](#removeIncompleteUpload) | | | | |
| [`setBucketTagging`](#setBucketTagging) | [`putObjectRetention`](#putObjectRetention) | | | | |
| [`removeBucketTagging`](#removeBucketTagging) | [`getObjectRetention`](#getObjectRetention) | | | | |
-| [`setBucketLifecycle`](#setBucketLifecycle) | [`putObjectTagging`](#putObjectTagging) | | | | |
+| [`setBucketLifecycle`](#setBucketLifecycle) | [`setObjectTagging`](#setObjectTagging) | | | | |
| [`getBucketLifecycle`](#getBucketLifecycle) | [`removeObjectTagging`](#removeObjectTagging) | | | | |
| [`removeBucketLifecycle`](#removeBucketLifecycle) | [`getObjectTagging`](#getObjectTagging) | | | | |
| [`setObjectLockConfig`](#setObjectLockConfig) | [`getObjectLegalHold`](#getObjectLegalHold) | | | | |
@@ -1487,8 +1487,6 @@ minioClient.getObjectRetention('bucketname', 'bucketname', { versionId: "my-vers
})
```
-
-### putObjectTagging(bucketName, objectName, tags[, putOpts, callback])
### setObjectTagging(bucketName, objectName, tags[, putOpts, callback])
diff --git a/src/minio.d.ts b/src/minio.d.ts
index 7929e027..68a4ad9b 100644
--- a/src/minio.d.ts
+++ b/src/minio.d.ts
@@ -446,31 +446,6 @@ export class Client {
): void
getObjectRetention(bucketName: string, objectName: string, options: VersionIdentificator): Promise
- // It seems, putObjectTagging is deprecated in favor or setObjectTagging - there is no such a method in the library source code
- /**
- * @deprecated Use setObjectTagging instead.
- */
- putObjectTagging(bucketName: string, objectName: string, tags: TagList, callback: NoResultCallback): void
- /**
- * @deprecated Use setObjectTagging instead.
- */
- putObjectTagging(
- bucketName: string,
- objectName: string,
- tags: TagList,
- putOptions: VersionIdentificator,
- callback: NoResultCallback,
- ): void
- /**
- * @deprecated Use setObjectTagging instead.
- */
- putObjectTagging(
- bucketName: string,
- objectName: string,
- tags: TagList,
- putOptions?: VersionIdentificator,
- ): Promise
-
setObjectTagging(bucketName: string, objectName: string, tags: TagList, callback: NoResultCallback): void
setObjectTagging(
bucketName: string,
diff --git a/tests/functional/functional-tests.js b/tests/functional/functional-tests.js
index 78539c28..65d5eb05 100644
--- a/tests/functional/functional-tests.js
+++ b/tests/functional/functional-tests.js
@@ -2481,7 +2481,7 @@ describe('functional tests', function () {
},
)
- step(`putObjectTagging object_bucketName:${tagsBucketName}, objectName:${tagObjName},`, (done) => {
+ step(`setObjectTagging object_bucketName:${tagsBucketName}, objectName:${tagObjName},`, (done) => {
client.setObjectTagging(tagsBucketName, tagObjName, { 'test-tag-key-obj': 'test-tag-value-obj' }, (err) => {
if (err && err.code === 'NotImplemented') {
return done()
diff --git a/tests/unit/test.js b/tests/unit/test.js
index 02f1cc35..41f6dc56 100644
--- a/tests/unit/test.js
+++ b/tests/unit/test.js
@@ -958,40 +958,6 @@ describe('Client', function () {
}
})
})
- describe('Put Object Tags', () => {
- it('should fail on null object', (done) => {
- try {
- client.putObjectTagging('my-bucket-name', null, {}, function () {})
- } catch (e) {
- done()
- }
- })
- it('should fail on empty object', (done) => {
- try {
- client.putObjectTagging('my-bucket-name', null, {}, function () {})
- } catch (e) {
- done()
- }
- })
- it('should fail on non object tags', (done) => {
- try {
- client.putObjectTagging('my-bucket-name', null, 'non-obj-tag', function () {})
- } catch (e) {
- done()
- }
- })
- it('should fail if tags are more than 50 on an object', (done) => {
- const _50_plus_key_tags = {}
- for (let i = 0; i < 51; i += 1) {
- _50_plus_key_tags[i] = i
- }
- try {
- client.putObjectTagging('my-bucket-name', null, _50_plus_key_tags, function () {})
- } catch (e) {
- done()
- }
- })
- })
describe('Get Object Tags', () => {
it('should fail on invalid bucket', (done) => {
try {