Forum Discussion

EricHohnbaum's avatar
EricHohnbaum
Ideator I
1 year ago
Solved

Can native_file id property be updated via REST?

I want to use the REST api to attach a file to the native_file property of an object, for example a CAD Document.

I can PATCH regular properties in and it takes it, but wont assign the native_file.

take a PATCH to /CAD('<id>')

{

    "[email protected]" : "52251F9581754C038AFB2B10227A72CA"
}
returns 200 success, but does not set the property.
  • angela's avatar
    angela
    1 year ago

    I tried this old sample of mine and it worked fine:


    If it works for you, please tell me which parts of the body are actually needed [emoticon:6d505171faa4497c85c5ca27290c555d]. 

4 Replies

  • angela's avatar
    angela
    Catalyst II

    Hi Eric,

    I think we already hat a similar discussion in the forum, but I right now cannot find it. Where you able to find a solution already?

    • EricHohnbaum's avatar
      EricHohnbaum
      Ideator I

      No, nothing using the REST api to do this.  It can be done with a custom method, but I prefer not to use that if it can be done via the stock apis.

      • angela's avatar
        angela
        Catalyst II

        I tried this old sample of mine and it worked fine:


        If it works for you, please tell me which parts of the body are actually needed [emoticon:6d505171faa4497c85c5ca27290c555d].