08-11-2022 01:19 AM
Hi ,
I want to retrieve the ID for a space by name "General" under "Webex Production Triage" Team , How do i do that , I could retrieve the Team ID alone but not the Space ID under the team , to send message using the /POST request on /room
08-11-2022 01:22 AM - edited 08-11-2022 01:24 AM
You can use the teamId in the list-rooms API here: https://developer.webex.com/docs/api/v1/rooms/list-rooms and once you get all the rooms within that team, the "General" space will be the one who's title is the team's name. For example, in your case your team's name is "Webex Production Triage", then the title of the general room will be that.
08-11-2022 02:41 AM
I am not able to find a room with the same name as the team / with the name "General" from the list received from list rooms API given a teamId
08-11-2022 02:47 AM
What exactly is your result when you try this? Do you get an error or something else?
Can you share the API request you made? Please provide the trackingID too, you can get it from the response headers.
Is the user making the request part of the team and space you're trying to retrieve?
08-11-2022 02:59 AM
{
"id": "Y2lzY29zcGFyazovL3VzL1RFQU0vNGNlMDI1NDAtMGE1Ny0xMWU3LThhMjQtNzVhYmEyNWNkOWIz",
"name": "Webex Production Triage (Synthetic)",
"creatorId": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS8yZDlmYmYyZi1mZDEyLTQxODAtYjM4MC0wNTZkNWMzOGYzN2M",
"created": "2017-03-16T14:46:12.628Z"
}
This is the team ID, and I am using the developer. webex.com to run these APIs from UI
And when trying to list rooms using the above team ID, I am not able to retrieve the space ID for the General
08-11-2022 03:08 AM
Thanks, can you share the request and response you made to the /rooms API?
Please also share the trackingId (in the response headers, which if using developer.webex.com, can be found in the Browser's developer tools, in the network tab.) so we can check logs.
Or if this is not possible for you, please create a ticket with us by emailing devsupport@webex.com describing the issue you have and providing your access token so that we can test it on our side.
08-11-2022 03:08 AM
Thanks, can you share the request and response you made to the /rooms API?
Please also share the trackingId (in the response headers, which if using developer.webex.com, can be found in the Browser's developer tools, in the network tab.) so we can check logs.
Or if this is not possible for you, please create a ticket with us by emailing devsupport@webex.com describing the issue you have and providing your access token so that we can test it on our side.
08-11-2022 03:12 AM
WEBEX-DEV-PORTAL_293c1360-3728-403b-a085-64fa41be09c6_8 -- trackingID
08-11-2022 03:48 AM
We'd need the full request and response you're making as well, to match the logs. Our logs don't store those for security reasons.
Can you also confirm that the user who is making the request is part of the team and room?
08-11-2022 04:02 AM
User swaas , I have shared the req and response as attachments on Webex
08-11-2022 04:03 AM
08-11-2022 04:09 AM
replied on webex in 1:1 chat.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide