3.1.4.19 UpdateContentType

This operation<24> updates a content type on the context site. This operation is defined as follows:

 <wsdl:operation name="UpdateContentType">
     <wsdl:input message="tns:UpdateContentTypeSoapIn" />
     <wsdl:output message="tns:UpdateContentTypeSoapOut" />
 </wsdl:operation>

The protocol client sends an UpdateContentTypeSoapIn request message, and the protocol server responds with an UpdateContentTypeSoapOut response message, as follows:

  1. If the contentTypeId is not a valid content type identifier or is not the content type identifier of a content type on the context site, the protocol server MUST return a SOAP exception.

  2. If the content type was found, the protocol server deletes the appropriate fields from the content type.

  3. The protocol server adds the appropriate fields to the content type.

  4. The protocol server updates the appropriate fields of the content type.

  5. The protocol server updates the content type with the specified properties.

The protocol server MUST return a SOAP exception in the specified cases. The protocol server finishes the operations before returning any error. Therefore, the fact that the protocol server returns a SOAP exception in response to the protocol client request UpdateContentType does not mean that the protocol server did not perform any updates on the content type. If changes to the content type are not enabled—for example, because the Sealed or ReadOnly attribute is set for the content type—the protocol server MUST NOT carry out these operations.