Application Programming Interface Guide > Web Services Operations > Operations Reference > updateDefinitionSet
 
updateDefinitionSet
Update the contents of a definition set.
The request can contain either sourceDocument or definitions, but not both. Both are optional and it is legal to provide neither. If sourceDocument is provided, the definitions are automatically generated.
XML_SCHEMA_DEFINITION_SET resources are specified with only a source document, and SQL_DEFINITION_SET resources are specified with only a list of definitions.
Location
/services/webservices/system/admin/resource/operations/
Request Elements
path: A fully qualified path to the resource.
detail: The level of detail about the resources to include in the response. Valid values are NONE, SIMPLE, and FULL.
sourceDocument (optional): An XML document set that defines this definition set for XML_SCHEMA_DEFINITION_SET resources. If this is a request element, definitions (below) cannot be a request element.
contents
charset (optional)
targetNamespace (optional)
locationURI (optional)
schemaLocation (optional)
definitions (optional): Complete list of definitions defined by this definition set for SQL_DEFINITION_SET resources. If this is a request element, sourceDocument (above) cannot be a request element.
name
type
namespace (optional)
dataType: Information for each data type:
sqlType (definition plus optional characteristics)
xmlType (name, namespace, plus optional characteristics)
pseudoType (definition)
annotation (optional)
attributes (optional): Lists of attributes. See Attributes Element.
value (optional)
annotation (optional): A description of the resource. If not provided, the annotation is left unaltered.
attributes (optional): Resource specific attributes. Sets the specified attributes but does not alter the values of unspecified attributes.
Response Elements
resources: List of the updated resources. See Resources Element.
Faults
IllegalArgument: If path is malformed, the detail is illegal, or any of the attributes, or definition elements are illegal.
IllegalState: If sourceDocument is provided for a SQL_DEFINITION_SET, or if definitions is provided for an XML_SCHEMA_DEFINITION_SET.
NotFound: If the resource or any portion of the path does not exist.
Security: If the user does not have READ access on all items in path other than the last one.
Security: If the user does not have WRITE access to the last item in path.
Security: If the user does not have the ACCESS_TOOLS right.