An API that connects multiple Microsoft services, enabling data access and automation across platforms
Hi Team,
I am having below scenarios looks like it is the same issue for me as well.
- Created a team via Graph API.
- Created Channel associated with team.
- Start conversations by members into channel
- now I want to archive the channel by teamId and channel ID:
- To Archive channel I am using below URL:
- URL: https://graph.microsoft.com/v1.0/teams/<team-id>/channels/<channel-id>/archive
- Request Method: POST
- Request Body:
{"shouldSetSpoSiteReadOnlyForMembers": true} - But I am getting below error:
{"error": {"code": "BadRequest","message": "Could not update Sharepoint folder permissions / archival state because the channel site url is not available.","innerError": {"code": "Unknown","message": "Could not update Sharepoint folder permissions / archival state because the channel site url is not available.","date": "2025-08-06T16:35:02","request-id": "2987b9a3-e515-46a2-8925-240e6825f362","client-request-id": "2987b9a3-e515-46a2-8925-240e6825f362"}}} - If I do manual click on file and after provision the folder, if running same archive request it's getting success. Could you please guide me how can I achieve this by code , not by manual asking user to click on
Filetab underchannel.