1.0 API endpoint error out while updating user group with large group name.

Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.

Summary

Users could face issues with larger group names using the 1.0 API endpoint to add the user into a group.

Endpoint:

  • /1.0/groups/{accountname}/{group_slug}/members

Cause


When the group name is larger than 62 characters, the user-group slug will be limited by 62 characters. The group slug can be found by accessing the user-group page on Bitbucket UI. 

This error happens because the API endpoint expects the group slug, not the group name.

Error message:
"404: No Group matches the given query."

Solution

Provide the group slug on the endpoint URL, not the group name.

The group slug can be found by accessing the user-group page on Bitbucket UI. 

Last modified on Sep 30, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.