Call SharePoint Embedded lock/unlock container api get error response.

Connie Ke (CN) 0 Reputation points
2024-07-02T07:42:19.5166667+00:00

Request url: https://graph.microsoft.com/beta/storageContainers/{containerId}/lock

Response:

{
    "error": {
        "code": "BadRequest",
        "message": "Resource not found for the segment 'storageContainers'.",
        "innerError": {
            "date": "2024-07-02T06:49:34",
            "request-id": "",
            "client-request-id": ""
        }
    }
}

api document link:
lock: 
unlock: 
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,253 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,150 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,783 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AllenXu-MSFT 17,666 Reputation points Microsoft Vendor
    2024-07-03T02:14:53.9966667+00:00

    Hi @Connie Ke (CN),

    The error response indicates that the resource 'storageContainers' was not found. This suggests that the {containerId} parameter in the request URL is not valid or the container does not exist. Please ensure that the {containerId} parameter is correct and that the container exists in SharePoint Embedded.


    If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.