GetRootContainer (bootstrapper)ΒΆ

Required for: iOS
POST /wopibootstrapperΒΆ

This operation is equivalent to the GetRootContainer (ecosystem) operation.

Important

The request/response semantics for this operation differ slightly from its counterpart on the πŸ”§ Ecosystem endpoint since it is exposed on the πŸ”§ Bootstrapper endpoint and thus will use OAuth 2.0 access tokens for authorization instead of WOPI access tokens.

Request Headers:
 
Response Headers:
 
Status Codes:

ResponseΒΆ

The response to a GetRootContainer call is JSON (as specified in RFC 4627) containing the following required properties:

Bootstrap
The contents of this property should be the response to a Bootstrap call.
RootContainerInfo
The contents of this property should be the response to a GetRootContainer (ecosystem) call.

Sample responseΒΆ

{
  "Bootstrap": {
    "EcosystemUrl": "http://.../wopi*/ecosystem?access_token=<ecosystem_token>",
    "UserId": "User ID",
    "SignInName": "user@contoso.com",
    "UserFriendlyName": "User Name"
  },
  "RootContainerInfo": {
    "ContainerPointer" : {
      "Url" : "http://.../wopi*/containers/<containerId>?access_token=<per_container_token>",
      "Name" : "Container Name"
    },
    "ContainerInfo" : {
      "Name" : "Container Name",
      "HostUrl" : "http://contoso/324332",
      "SharingUrl" : "http://contoso/323432/efewos",
      "UserCanCreateChildContainer" : false,
      "UserCanCreateChildFile" : false,
      "UserCanDelete" : false,
      "UserCanRename" : false
    }
  }
}