RenameContainer

iOS and Android Desktop

POST (/wopi/containers/(container_id)

The RenameContainer operation renames a container.

Parameters

  • container_id (string) – A string that specifies a container ID of a container managed by host. This string must be URL safe.

Query Parameters

  • access_token (string) – An access token that the host will use to determine whether the request is authorized.

Request Headers

  • X-WOPI-Override – The string RENAME_CONTAINER. Required.

  • X-WOPI-RequestedName – A UTF-7 encoded string that is a container name. Required.

Response Headers

  • X-WOPI-InvalidContainerNameError – A string describing the reason the RenameContainer operation could not be completed. This header should only be included when the response code is 400 Bad Request. This string is only used for logging purposes.

Status Codes

Note

In addition to the request/response headers listed here, this operation may also use the Standard WOPI request and response headers.

Response

The response to a RenameContainer call is JSON containing the following required property:

  • Name (string) - The name of the renamed container.