Share via


Creating a Container Using REST

[This document supports a preliminary release of a software product that may be changed substantially prior to final commercial release. This document is provided for informational purposes only.]

To create a container using the REST interface, you define an XML payload that describes the container you wish to create (including the required Id metadata property) as in the following example:

<s:Container xmlns:s='https://schemas.microsoft.com/sitka/2008/03/'>
   <s:Id>NewContainerId</s:Id>
</s:Container>

Note

Within an authority, each container must have unique id.

After the payload has been defined, you send an HTTP request to the service by using the POST method on the request. This action sends the payload to the service. The service then returns a response with an HTTP status that indicates whether the operation succeeded or failed. The following topics provide working samples in various programming languages:

Creating a Container Using REST (C#)

Creating a Container Using REST (Java)

Creating a Container Using REST (Ruby)

Creating a Container Using REST (VB)

See Also

Concepts

Getting Ready to Use SQL Data Services
SDS Data Model Overview (Authorities, Containers, Entities and Flexible Entities)
Creating a Container Using SOAP
Examples of Using SOAP and REST Interfaces with the SQL Data Services