Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.

How to set "updated by" through API?


I’m adding and updating test cases through the API, and it’s currently authorized with a general QA account. I’ve been attempting to set “updated_by” to a different user ID for ownership, and I don’t get an error but it doesn’t appear to be changing either. How can I set the updated by field manually through the API? Is it even possible?



Hi Sarah,

Thanks for your posting. Fields such as created_by/updated_by are automatically managed by TestRail and it’s not possible to set them via the API or user interface. One option in your case is to use a custom field (of type User) and you can use this field to store additional details (e.g. such as the case owner) with your case. You can add custom fields as follows:

Custom fields in the API use custom_<system-name>.