CREATEORUPDATE calls

The CreateOrUpdate action updates asset metadata; if the asset does not exist, then it will be created.

📘

Note

If you are updating a user account, your changes might trigger an email to notify that user of their account changes. You can control email notifications with the &AllowNotifications parameter.

Asset example

This call creates a new Standard Image with the title of “London skyline” and a description of “Stunning view of the London skyline, featuring iconic landmarks like the Shard, the London Eye, and the Tower Bridge against a backdrop of city lights.”

POST or GET /API/DataTable/V2.2/Documents.Image.Default:CreateOrUpdate?CoreField.Id_Client=OL1234&CoreField.Title:=London skyline&CoreField.CaptionLong:=Stunning view of the London skyline, featuring iconic landmarks like the Shard, the London Eye, and the Tower Bridge against a backdrop of city lights.

Response
  
<Result>
<APIRequestInfo>
<ProviderVersion>LONDON.R2.2131E.216729</ProviderVersion>
<ProviderIdentity>OLU-T-USW2-APP</ProviderIdentity>
<ProviderID>44ddde3ac27a33c394335f249d4007d4</ProviderID>
<Module>DataTable</Module>
<APIVersion>V2.2</APIVersion>
<Resource>Documents.Image.Default:CreateOrUpdate</Resource>
<IsLoggedIn type="Boolean">True</IsLoggedIn>
<Status>LoggedIn</Status>
<UserLogin>[email protected]</UserLogin>
<Session>No session (production configuration)</Session>
<TimeoutPeriodMinutes type="Numeric">20</TimeoutPeriodMinutes>
</APIRequestInfo>
<RequestInterpretation>
<Updates type="List">
<Update>
<Field>CoreField.CaptionLong</Field>
<Operator>:=</Operator>
<OperatorDescription>Assign a value to a single-value field</OperatorDescription>
<Value>Stunning view of the London skyline, featuring iconic landmarks like the Shard, the London Eye, and the Tower Bridge against a backdrop of city lights.</Value>
</Update>
<Update>
<Field>CoreField.Id_Client</Field>
<Operator>:=</Operator>
<OperatorDescription>Assign a value to a single-value field</OperatorDescription>
<Value>OL1234</Value>
</Update>
<Update>
<Field>CoreField.Title</Field>
<Operator>:=</Operator>
<OperatorDescription>Assign a value to a single-value field</OperatorDescription>
<Value>London skyline</Value>
</Update>
</Updates>
<Filters type="List">
<Filter>
<Field>CoreField.Id_Client</Field>
<Operator>=</Operator>
<OperatorDescription>Field must be equal to value</OperatorDescription>
<Value>OL1234</Value>
</Filter>
<Filter>
<Field>CoreField.DO_OriginalVersion</Field>
<Operator>=</Operator>
<OperatorDescription>Field must be equal to value</OperatorDescription>
<Value/>
</Filter>
</Filters>
<IgnoredParameters type="List"/>
</RequestInterpretation>
<Response>
<RecordID>2QDTWAO7SM7</RecordID>
<Code>SUCCESS</Code>
</Response>
</Result>