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

Add_case_field endpoint question

Hey there,

I have a quick question, I am trying to use add_case_field (https://www.gurock.com/testrail/docs/api/reference/case-fields) in order to add a field to my test, but what is not clear from the documentation is how I specify which test I want to update?
Any thoughts on this?

Thanks,
Alex

Custom fields are added in the Administration section and is added to all Test cases and therefore - no Case ID is needed.

1 Like

Hi @alex.lazarciuc,

the endpoint add_case_field is not used to add a field to a specific test case, it is used to define a custom field for all cases (depending on the customiziation for a single project or all of them). This is the API way for the administration section via the UI as mentioned by BGanger.

Once you did so successfully you can add or update a test case with content for this new field.

1 Like

Thanks Guys!
Clear now.