Azure Cosmos DB Resource URI Syntax for REST

The base URI for the rest of the resources is based on the URI endpoint created for the database account name. Using the example above, the URL would be https://contosomarketing.documents.azure.com.

The following table shows the base URI for each of the resources. The base URL for a resource is composed of the database account name, and a list of resource types and names of the requested resource and its parents.

Resources Base URI
Database 'https://{databaseaccount}.documents.azure.com/dbs/{db}'
User 'https://{databaseaccount}.documents.azure.com/dbs/{db}/users/{user}'
Permission 'https://{databaseaccount}.documents.azure.com/dbs/{db}/users/{user}/permissions/{perm}'
Collection 'https://{databaseaccount}.documents.azure.com/dbs/{db}/colls/{coll}'
Stored Procedure 'https://{databaseaccount}.documents.azure.com/dbs/{db}/colls/{coll}/sprocs/{sproc}'
Trigger 'https://{databaseaccount}.documents.azure.com/dbs/{db}/colls/{coll}/triggers/{trigger}'
UDF 'https://{databaseaccount}.documents.azure.com/dbs/{db}/colls/{coll}/udfs/{udf}'
Document 'https://{databaseaccount}.documents.azure.com/dbs/{db}/colls/{coll}/docs/{doc}'
Attachment 'https://{databaseaccount}.documents.azure.com/dbs/{db}/colls/{coll}/docs/{doc}/attachments/{attch}'
Offer 'https://{databaseaccount}.documents.azure.com/offers/{offer}'

Each allowable operation for the respective resources is discussed in the following operation articles:

See also