# Update tags for all posts inside a community by admin

**URL:** <https://forum.social.plus/t/update-tags-for-all-posts-inside-a-community-by-admin/1154>\
**Category:** General\
**Created:** [February 27, 2024, 6:39am UTC](https://forum.social.plus/t/update-tags-for-all-posts-inside-a-community-by-admin/1154 "2024-02-27T06:39:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![muhammad.nasir.ext](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@muhammad.nasir.ext](https://forum.social.plus/u/muhammad.nasir.ext)\
**Post date:** [February 27, 2024, 6:39am UTC](https://forum.social.plus/t/update-tags-for-all-posts-inside-a-community-by-admin/1154/1 "2024-02-27T06:39:34Z")

</div>

Hi,

I need to update a tag for posts in community. Is there any easy way for admin to do that in bulk?  
So far what I figured out is that I can get all the posts by tags [Amity API](https://api-docs.amity.co/#/Post%20v4/get_api_v4_posts) and then update one by one through [Amity API](https://api-docs.amity.co/#/Post%20v4/put_api_v4_posts__postId_)  
But it is a heavy operation. Let say I have 1000s of posts against tag and I have to update them all one by one.

Can you tell me if there is any bulk operation support where I can update all the tags at once.

Regards,  
Nasir

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [February 27, 2024, 9:02am UTC](https://forum.social.plus/t/update-tags-for-all-posts-inside-a-community-by-admin/1154/2 "2024-02-27T09:02:27Z")

</div>

@muhammad.nasir.ext Unfortunately, we don’t currently have a bulk operation feature for updating tags in posts. You may need to use the Amity API to fetch posts by tags and update them individually. If you have a large number of posts, consider scripting a solution on your end. We apologize for any inconvenience and appreciate your understanding.

---

<div class="post-metadata">

**Author:** ![muhammad.nasir.ext](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@muhammad.nasir.ext](https://forum.social.plus/u/muhammad.nasir.ext)\
**Post date:** [March 25, 2024, 8:07pm UTC](https://forum.social.plus/t/update-tags-for-all-posts-inside-a-community-by-admin/1154/3 "2024-03-25T20:07:14Z")

</div>

@SocialPlus_Support how this tags filters in Get Posts call [Amity API](https://api-docs.amity.co/#/Post%20v4/get_api_v4_posts)?

I have tag=[“tag1”] in one post1 and tag=[“tag2”] in post2. I tried to fetch both the posts with tags like tags=tag1&tags=tag2 in query. I am assuming that it should return both the posts but it always return the post1.

There is one issue that I can’t get posts by passing only single tags. API always expect to have multiple tags in the query string. If a pass like `&tags=tag1` then it throws following error.

```auto
{
    "status": "error",
    "message": "Parameters validation error!",
    "code": 500000,
    "data": {
        "detail": [
            "The 'tags' field must be an array."
        ]
    }
}

```

A work around is to pass and additional empty tags `&tags=tag1&tags=`

Also there is one more issue in swagger that it isn’t accept numbers like 333 or 33 for tags value

Last thing that I have value 33 in tags and if query for tags=33 than it isn’t working. It is working for other tag numbers like 35, 39 etc but not working for 33. Please check this as well

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [March 26, 2024, 12:05pm UTC](https://forum.social.plus/t/update-tags-for-all-posts-inside-a-community-by-admin/1154/4 "2024-03-26T12:05:35Z")

</div>

Regarding your query, please format it as follows: `tags[]=tag1&tags[]=tag2`.

We have tested tag 33 and there isn’t an issue. Swagger tool can sometimes cause issues. Therefore, we recommend testing the API using Postman, which often yields more efficient results.

 ![Screenshot 2567-03-26 at 11.43.23](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/4da52c495aa6399884abf9aebd11f0bffe919248.png)

---

<div class="post-metadata">

**Author:** ![muhammad.nasir.ext](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@muhammad.nasir.ext](https://forum.social.plus/u/muhammad.nasir.ext)\
**Post date:** [March 26, 2024, 5:28pm UTC](https://forum.social.plus/t/update-tags-for-all-posts-inside-a-community-by-admin/1154/5 "2024-03-26T17:28:09Z")

</div>

Thank you for checking. It appears to be functioning correctly with the `tags[]` parameter. My assumption is that when multiple tags are included in the query, they are treated as logical OR conditions rather than logical AND conditions.
