How to get ownerId to create Project in Wrike API

Hi there,

I'm trying to create a Project using Wrike API but I'm bit confused about some of Project parameter which are "ownerIds" and "customStatusId". What are the "ownerIds" and "customStatusId" and how can I get these to create Project by using Wrike API.

Thank you! 

0
1 комментарий
Spot On Innovative Approach Stellar Advice
Avatar

Hi Aqib Bhatti,

Welcome to the Community! Thank you for your question 😄

When creating a project via API, you can assign a user (or users) from your account to be the project owner. You will need to use the "ownerIds" parameter to do this. The "customStatusId" parameter is how you can specify the status of your project when using a custom workflow status instead of the default workflow.

Here is an example of the POST command in Postman to create a new project using the above mentioned parameters:
https://www.wrike.com/api/v4/folders/IEABTAFEI4ASET2S/folders?project={"ownerIds":["KUGE3U2I"],"customStatusId":"IEALODQYJMEVBVCQ","startDate":"2021-01-15","endDate":"2021-01-31"}&title=Test 

You can get the IDs of all the users in your account with a GET command of: https://www.wrike.com/api/v4/contacts 
The ID of the user you want to assign the project to should be used for the "ownerIds" parameter.

The IDs of your custom statuses can be found by using a GET command of: https://www.wrike.com/api/v4/workflows 

You can find the ID of the folder or space where the project will be created by using the permalink and a GET command of: https://www.wrike.com/api/v4/folders?permalink=permalink copy/pasted from your Wrike workspace

You can find more details in the methods section of our API documentation here: https://developers.wrike.com/documentation/api/methods/create-folder.

Please give it a try and let us know how it's going!

Have a productive day 😁

Aaron K. Community Team at Wrike Wrike Product Manager Узнайте о самых популярных функциях Wrike и советах по его использованию

Aaron K. Wrike Team member Узнайте о самых популярных функциях Wrike и советах по его использованию

0
Действия с комментариями Постоянная ссылка

Folllowing List for Post: How to get ownerId to create Project in Wrike API
[this list is visible for admins and agents only]

Вверх
Didn’t find what you were looking for? Write new post