Change an asset subtype

Update the subtype of an asset

Call template

All DataTable calls can be POST or GET.

https://{OrangeLogicURL}/API/DataTable/V2.2/Documents.{type}.{subtype}:Update?{asset identifier}&CoreField.DocSubType:={asset subtype identifier}


Specify the asset type and subtype, provide an asset identifier, and then specify the asset subtype you want to apply. You can identify an asset subtype by its name or system identifier. Use “Default” to identify the Standard subtype of each asset type.

💡

Tip

Orange Logic administrators can find an asset subtype’s system identifier by going to Administration > Archives > Manage asset subtypes (spreadsheet).

Update

Example: Change an asset’s subtype

This call changes the subtype of an image with the identifier ZZ12PAR from Standard to Production Still.

/API/DataTable/V2.2/Documents.Image.Default:Update?CoreField.Identifier=ZZ12PAR&CoreField.DocSubType:=Production Still

Example call
curl --location --request POST 'https://mangovations.com/API/DataTable/V2.2/Documents.Image.Default:Update?CoreField.Identifier=ZZ12PAR&CoreField.DocSubType%3A=Production%20Still' \
--header 'Authorization: Bearer @7Xm1EK1hlUgJWY0@RUTHaYYSTa516C841beZyYf2oBEvZLoL4JzV.5bz2sPEyKaI267Cy@[email protected]@wu1nV1P6Lj9FY' \
--header 'Cookie: AWSALB=nJsI73MDYdedZHEL9eRBLehzt6EmlTB5ohDTxGGDjGahkhjV3ahTxii6e97JU6+3Kif3kMIyu36IjYj6xJeBIV5hGdoXok5i3Ka23zubgxcRZLAY6VT4Sxrs/N2J; AWSALBCORS=nJsI73MDYdedZHEL9eRBLehzt6EmlTB5ohDTxGGDjGahkhjV3ahTxii6e97JU6+3Kif3kMIyu36IjYj6xJeBIV5hGdoXok5i3Ka23zubgxcRZLAY6VT4Sxrs/N2J; AWSALBTG=Hl0T/7cgsIu0idY/LOACP1TjGXmWeQS/8DWSAnmfEKn9llshopEMj4ZHNNra69RnQ+NM/nceF+nJlLFHJ+CA22lIr92baWwY2/9YmI3qb4W4yUzyhfKJGzdsndp7sU4crxMd9aRG0JDdpF3jrvurb1KlkW4RaDpf4ZVZkOrWbkHz; AWSALBTGCORS=Hl0T/7cgsIu0idY/LOACP1TjGXmWeQS/8DWSAnmfEKn9llshopEMj4ZHNNra69RnQ+NM/nceF+nJlLFHJ+CA22lIr92baWwY2/9YmI3qb4W4yUzyhfKJGzdsndp7sU4crxMd9aRG0JDdpF3jrvurb1KlkW4RaDpf4ZVZkOrWbkHz; ZZ1-Session__1505=CfDJ8KSkO661hSREsDx7PGb48%2B1UMeMl1IU2B7CzEicm1DY6yediv5SRudtZIJs%2B33fisb%2BwblMNRAxOCU1LDq4wdefQYIPM0JZF%2B43u%2FV7Of9M3SJuOZWOltWxb3n9xmimCOwniOQ0AVcj66QyJdTxncVyo4gHQ3vnwP%2F1iaWsfWixZ; ZZ1-Session__1505-Alt=CfDJ8KSkO661hSREsDx7PGb48%2B1UMeMl1IU2B7CzEicm1DY6yediv5SRudtZIJs%2B33fisb%2BwblMNRAxOCU1LDq4wdefQYIPM0JZF%2B43u%2FV7Of9M3SJuOZWOltWxb3n9xmimCOwniOQ0AVcj66QyJdTxncVyo4gHQ3vnwP%2F1iaWsfWixZ'
Reponse
<Result>
  <APIRequestInfo>
    <ProviderVersion>KOBE.R2.2065G.216363</ProviderVersion>
    <ProviderIdentity>CUY-T-USW2-APP</ProviderIdentity>
    <ProviderID>44ddde3ac27a33c394335f249d4007d4</ProviderID>
    <Module>DataTable</Module>
    <APIVersion>V2.2</APIVersion>
    <Resource>Documents.Image.Default:Update</Resource>
    <IsLoggedIn type="Boolean">True</IsLoggedIn>
    <Status>LoggedIn</Status>
    <UserLogin>ZZ1CT12218</UserLogin>
    <Session>No session (production configuration)</Session>
    <TimeoutPeriodMinutes type="Numeric">120</TimeoutPeriodMinutes>
  </APIRequestInfo>
  <RequestInterpretation>
    <Filters type="List">
      <Filter>
        <Field>CoreField.Identifier</Field>
        <Operator>=</Operator>
        <OperatorDescription>Field must be equal to value</OperatorDescription>
        <Value>ZZ12PAR</Value>
      </Filter>
    </Filters>
    <Updates type="List">
      <Update>
        <Field>CoreField.DocSubType</Field>
        <Operator>:=</Operator>
        <OperatorDescription>Assign a value to a single-value field</OperatorDescription>
        <Value>Production Still</Value>
      </Update>
    </Updates>
    <IgnoredParameters type="List" />
  </RequestInterpretation>
  <ResponseSummary>
    <NumberOfRecordsAffected type="Numeric">1</NumberOfRecordsAffected>
  </ResponseSummary>
  <Response>
    <RecordsAffected type="List">
      <Result>
        <RecordID>2QDTWAGP1T3</RecordID>
        <Code>SUCCESS</Code>
      </Result>
    </RecordsAffected>
  </Response>
</Result>