REST API transfert access property without generation

Hello ARAS community

We would like to change using REST the attribute Locked_by_id of an object. (typically give right to someone else to unlock/lock it.

Do you know if it is possible ?

we try this following the Doc but so far it doesn't work : 

PUT host/.../$ref Prefer: return=minimal { "": "">host/.../User(‘C542FC153AE647A59CD6F6967295EF6B’)" }

The idea is to enable someone to work on an item unlocked by someone else who is absent and so don't stay bloqued.

Thank you :)

  • Hello,

    The locked_by_id is a system property that is typically set through use of the lock and unlock actions in an AML query.

    You can call these actions through REST by using a PATCH request and specifying the action you want to call inside of the body. As an example, the request below can be used to unlock a Part with a known ID.

    PATCH {base url}/Part('A6C9D695E75246758824B6B858622D73')
        "@aras.action" : "unlock"


    Christopher Gillis

    Aras Labs Software Engineer

  • Hello regardless my last comment, is it possible to bloc when we want the automatic revision for an item in discipline automatic ?


Reply Children
  • Hello,

    It is not possible to block a revision for an Automatically revisioned item type.

    However, it would be possible to write your own versioning logic to accomplish what you're looking for. You could use two custom properties named something like my_major_rev and my_generation and use an onBeforeUpdate server event to increment these values as you need to.