Creates a new custom property set definition with full control over privacy settings. This is an extended version of CreatePropertySetDefinition that adds the PrivatePropertySet parameter to control whether anonymous users can see the property set.
/srv.asmx/CreatePropertySetDefinition1
/srv.asmx/CreatePropertySetDefinition1?authenticationTicket=...&PropertySetName=...&PropertySetCaption=...&AppliestoDocuments=...&AppliestoFolders=...&AppliestoUsers=...&DomainNames=...&PrivatePropertySet=.../srv.asmx/CreatePropertySetDefinition1 (form data)http://tempuri.org/CreatePropertySetDefinition1| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser. |
PropertySetName |
string | Yes | Internal name for the property set. Alphanumeric and underscore characters only (auto-converted to uppercase). Max 40 characters (23 on Oracle). Must be unique. |
PropertySetCaption |
string | Yes | Display label shown to users in the UI. Must be unique across all property sets. |
AppliestoDocuments |
boolean | Yes | true if this property set can be applied to documents. |
AppliestoFolders |
boolean | Yes | true if this property set can be applied to folders. |
AppliestoUsers |
boolean | Yes | true if this property set can be applied to user accounts. |
DomainNames |
string | No | Comma-separated list of library (domain) names to restrict the property set to. If empty or omitted, the property set is global (available in all libraries). Non-existent domain names are silently ignored. |
PrivatePropertySet |
boolean | Yes | true to hide this property set from anonymous users. false makes it visible to everyone including anonymous users. |
CreatePropertySetDefinition always creates a property set with PrivatePropertySet = false (public). This API allows explicitly controlling the PrivatePropertySet flag.
| API | PrivatePropertySet |
|---|---|
CreatePropertySetDefinition |
Always false (public) |
CreatePropertySetDefinition1 |
Caller-specified |
<response success="true" error="" />
<response success="false" error="A category with this name already exists." />
The calling user must be a System Administrator.
Anonymous access is not permitted.
PropertySetName is trimmed and automatically converted to uppercase before storage.PropertySetName must contain only letters (A-“Z), digits (0-“9), and underscores (_). Special characters and spaces are not allowed.DomainNames is empty or omitted, the property set is global -“ available in every library.DomainNames is specified, the property set is domain-restricted -“ it only appears in the listed libraries.PrivatePropertySet = true, the property set is excluded from results returned to anonymous (unauthenticated) users.CUSTOM_<PropertySetName> is created to store the property set rows.AppliestoDocuments, AppliestoFolders, or AppliestoUsers should be true; creating a property set that applies to nothing is technically allowed but has no practical use.GET /srv.asmx/CreatePropertySetDefinition1
?authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
&PropertySetName=ConfidentialMeta
&PropertySetCaption=Confidential+Metadata
&AppliestoDocuments=true
&AppliestoFolders=false
&AppliestoUsers=false
&DomainNames=Legal
&PrivatePropertySet=true
HTTP/1.1
Host: yourserver
POST /srv.asmx/CreatePropertySetDefinition1 HTTP/1.1
Host: yourserver
Content-Type: application/x-www-form-urlencoded
authenticationTicket=3f7a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c&PropertySetName=ConfidentialMeta&PropertySetCaption=Confidential+Metadata&AppliestoDocuments=true&AppliestoFolders=false&AppliestoUsers=false&DomainNames=Legal&PrivatePropertySet=true
PropertySetName is stored as the internal key and also forms the database table name (CUSTOM_<name>). It cannot be changed after creation without using UpdatePropertySetDefinition.PropertySetCaption is the visible display name in the UI.| Error | Description |
|---|---|
[900] |
Authentication failed -“ invalid credentials. |
[901] |
Session expired or invalid authentication ticket. |
| Access Denied | Calling user is not a System Administrator. |
| Name already exists | A property set with the specified PropertySetName already exists. |
| Caption already exists | A property set with the specified PropertySetCaption already exists. |
| Invalid name | PropertySetName is empty, exceeds the maximum length, or contains invalid characters. |