Create a Project

Starting October 11, 2024 (Zephyr Enterprise 8.2), the Zephyr Enterprise documentation moved from its current location on Atlassian to a dedicated, standalone Zephyr Enterprise documentation page. Please see: https://support.smartbear.com/zephyr-enterprise/docs/en/migrating-to-zephyr-enterprise/via-rest-api/create-a-project.html

Create a project in Zephyr Enterprise

Use the following operation:

POST /flex/services/rest/latest/project

Request format

To create a project, send a POST request to the following URL:

http://{ZEPHYR-SERVER}/flex/services/rest/latest/project

Request body

{   "name":"Zephyr Migration project ",   "startDate":"1564338600000",   "isolationLevel": 0 }

The IsolationLevel value can be one of the following:

0 – Normal
1 - Restricted
2 - Isolated

Response body

{ "projectDto": { "id": 4, "version": 0, "name": "Zephyr Migration project ", "startDate": 1564338600000, "projectStartDate": "07/28/2019", "showItem": false, "newItem": false, "dtsId": 1, "members": [], "projectGroups": [], "sharedProjects": [], "isolationLevel": 0, "dashboardSecured": false, "dashboardRestricted": false, "createdOn": 1588066484931, "shared": false, "active": true, "customProperties": {}, "globalProject": false, "allowedGlobalProject": false, "autoUpdateTestStatus": false, "webhookId": 0}, "totalResources": 0}

Assign the user to the project

Use the following operation:

PUT /flex/services/rest/latest/project

Request format

To assign a user to a project, send a PUT request to the following URL:

http://{ZEPHYR-SERVER}/flex/services/rest/latest/project

Request body

{ "name":"Zephyr Migration project", "id":4, "members":[ {"userId":10,"id":"0","role":{"text":"lead","id":2}}, {"userId":11,"id":"0","role":{"text":"lead","id":2}} ] }

Response body

See Also

Migration REST API