Open borayhaag opened 4 years ago
You can add multiple users when creating a project by sending a list of user IDs. Your sample POST request body seems ok, except that it is not a valid JSON (keys should be double quoted, booleans in lower case, and numbers should not be quoted).
On Fri, Feb 7, 2020 at 3:17 PM borayhaag notifications@github.com wrote:
Dear Team, if i try to add a project with more then one user, only the last user is added to the project. Example: Post request: {'name': 'Testofffer 11', 'billable': True, 'client_id': '627795', 'users': [153071, 143143, 143149, 143152, 170937], 'managers': [143152], 'price': '14.00', 'flat_billing': True, 'adjustable_hours': True} only the user 170937 and the maneger is added to the project. All other users are ignored.
How can i add more then one user to a new project?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/paymoapp/api/issues/51?email_source=notifications&email_token=ACQPFONUILD2BXRUL65DIMDRBVNQDA5CNFSM4KROLSTKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ILZ2LWA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQPFOJB44XDFD3Z2XKRGQLRBVNQDANCNFSM4KROLSTA .
Hi Paymoapp,
this is the implementation, like it is shown in your exampes in python. https://github.com/paymoapp/api/blob/master/sections/samples/post.py
the request.post will transform the data to json. Please let me know if i have to change the structur in python.
Thanks and br
For adding a project with multiple users assigned, the Python payload object should look like:
payload = { 'client_id':100, 'name': 'New Project', 'description': 'Project added from API', 'users': [1000,1001,1002,1003], 'managers': [1000,1001] }
On Thu, Feb 20, 2020 at 3:38 PM borayhaag notifications@github.com wrote:
Hi Paymoapp,
this is the implementation, like it is shown in your exampes in python. https://github.com/paymoapp/api/blob/master/sections/samples/post.py
the request.post will transform the data to json. Please let me know if i have to change the structur in python.
Thanks and br
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/paymoapp/api/issues/51?email_source=notifications&email_token=ACQPFOOHRAACTBUU33TZYWLRD2BUZA5CNFSM4KROLSTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMN5LBA#issuecomment-589026692, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQPFOJPSFC3ZRQIIH6UGRLRD2BUZANCNFSM4KROLSTA .
Hi Paymoapp,
yes, i know. that is what i wrote in my previous post. and it is still not working!
only the last user is added to the project. Waiting for your help!
Send your request body (raw text) along with all request headers (no python scripts) to support@paymoapp.com and we'll have a look.
On Tue, Feb 25, 2020 at 11:56 AM borayhaag notifications@github.com wrote:
Hi Paymoapp,
yes, i know. that is what i wrote in my previous post. and it is still not working!
only the last user is added to the project. Waiting for your help!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/paymoapp/api/issues/51?email_source=notifications&email_token=ACQPFOI337Z36I4H3JHDDH3RETTOHA5CNFSM4KROLSTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM3J7PI#issuecomment-590782397, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQPFOK67N7VTBQ4MRJCYD3RETTOHANCNFSM4KROLSTA .
Dear Team, if i try to add a project with more then one user, only the last user is added to the project. Example: Post request: {'name': 'Testofffer 11', 'billable': True, 'client_id': '627795', 'users': [153071, 143143, 143149, 143152, 170937], 'managers': [143152], 'price': '14.00', 'flat_billing': True, 'adjustable_hours': True} only the user 170937 and the maneger is added to the project. All other users are ignored.
How can i add more then one user to a new project?