PUT {who}/messages/{messageId}/forms/{formId}
Put operation for a existing form on a message. Performs only XSD Validation of the form. Use this to change the content of an existing form.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
who | The id of the reportee for which the message belongs. Valid values are "my", or an organization number of an organization the user can represent, or "r"<Reportee.ReporteeId>, where the identified reportee may be a person or organization. |
Define this parameter in the request URI. |
messageId | Id of the message for which forms should be retrieved. |
Define this parameter in the request URI. |
formId | The form id of the form to be updated with the new data. |
Define this parameter in the request URI. |
form | The form data that should replace the existing element. |
Define this parameter in the request body. |
Request body formats
application/hal+xml
Sample:
<resource rel="form"> <DataFormatId>string example 34</DataFormatId> <DataFormatVersion>string example 38</DataFormatVersion> <FormData><![CDATA[<Skjema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...>...</Skjema>]]></FormData> </resource>
application/hal+json
Sample:
{ "Type": "SubForm", "DataFormatId": "string example 36", "DataFormatVersion": "string example 38", "FormData": "<Skjema xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"...>...</Skjema>" }