Skip to main content
Answer

Project attributes rest API

  • February 15, 2023
  • 2 replies
  • 428 views

Forum|alt.badge.img

Does anybody can me help with project attributes? I am triyng to sync it throw the API, but I always get errors with it. It seems I do something wrong…

And on this screenshots my json and response with error from API, it is just one of examples, I tried use only one required attribute field, result is the same.

List of my attribute values:

 

There are Attributes in the API swagger definition for Project. I also tryed extend endpoint and populate attribute fields - but it seems this is another fields because according the screenshot above I can use only one item, not collection with it

What I missed in my json request to the server? Or it can’t work with API?

Best answer by AndrewMuzalov

I’ve got the solution. So I don’t need to add any new fields to endpoint - I used Project field “Attributes”.

Error happened because project template that we are using. These fields are ruquired for job, so I just added defaul values to the template and during the save default values change to current values. 

2 replies

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • Answer
  • February 16, 2023

I’ve got the solution. So I don’t need to add any new fields to endpoint - I used Project field “Attributes”.

Error happened because project template that we are using. These fields are ruquired for job, so I just added defaul values to the template and during the save default values change to current values. 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • February 16, 2023

Thank you for sharing your solution with the community @AndrewMuzalov !