Create Unique Index
PUT
/mongodb/collections/{collectionName}/index/field/{fieldName}/unique
Create Unique Index by Field for given Collection
Authorizations
httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)
Parameters
Path Parameters
collectionName*
The name of your MongoDb Collection
Type
Requiredstring
fieldName*
The field Name for your index
Type
Requiredstring
Query Parameters
sortAscending
Sort your index ascending
Type
boolean
Default
truename
Name for your index
Type
string
Responses
application/json
JSON "name": "string"
{
}
