Create a project
API explorer: /projects
To create a project:
- Create the project object with a POST to the projects endpoint (see sample code).
- Capture the
projectIdreturned asidfrom the response.
Create a project
curl 'https://a.blazemeter.com/api/v4/projects' \
-X POST \
-H 'Content-Type: application/json' \
--user 'api_key_id:api_key_secret' \
-d '{"name": "V4 Create test Through API", "description": "A description", "workspaceId": 123456}'
Create a project request attributes
Attributes
-
namestringrequired
The project name
-
descriptionstringThe project description
-
workspaceIdintegerrequired
The
workspaceIdyou want to associate the project to
Create a projectCreate a project POST body (JSON
{
"name": "V4 Create test Through API",
"description": "A description",
"workspaceId": 123456
}
Create a project response attributes
See The project object for the details on the response attributes.
Response201 Created
{
"api_version": 4,
"error": null,
"result": {
"id": 123456,
"name": "V4 Create test Through API",
"userId": 123456,
"description": "A description",
"created": 1488987563,
"updated": 1488987563,
"workspaceId": 123456,
"testsCount": 388
}
}