How do I get the Split Id back after using the Create Split Admin API?
The POST https://api.split.io/internal/api/v2/splits/ws/{wsId}/trafficTypes/{traffic_type_id_or_name} Admin API does not return the id (guid) of the split once being called and I didn't find any other API endpoint which I can use to get that split id. I'm hoping to use that id to construct a link to the split.io split detail page (https://app.split.io/org/{orgId}/ws/{workspaceId}/splits/{splitId}/env/{envId}/definition).
-
Hi Shuai, That is correct, the split id is not returned in Admin API, since it is not needed there, the API only need the Split name as a reference.
The Split Id in the URL is actually a unique id when a split is added to an environment, so each time you add a split to an environment you get a new id for it.
Currently we don't have an API to retrieve that id, other than inspecting the URL from the UI or looking at the xhr calls that the UI makes.
Thanks
Bilal
Please sign in to leave a comment.
Comments
1 comment