Update a project

API explorer: /projects/{projectId}

To update a project, use PATCH to change the provided configuration for a given project (you need to know the projectId). The sample code updates a test with an ID of 123456 (the 123456 is contained in the URL) with a new test name New test Name For API, a new description of This is my description, and a new workspaceId of 234567.

If you do not know the projectId of the project to update, use List projects to return a list of your created projects.

Update a project

curl 'https://a.blazemeter.com/api/v4/projects/123456' \
    -X PATCH \
    -H 'Content-Type: application/json' \
    --user 'api_key_id:api_key_secret' \
    -d '{"name":"New test Name For API"}'

Update a project request attributes

Attributes

  • namestring

    The project name

  • descriptionstring

    The project description

  • workspaceIdinteger

    The workspaceId you want to associate the project to

Update a projectUpdate a project Sample PATCH body (JSON

{
    "name": "New test Name For API",
    "description": "This is my description",
    "workspaceId": 234567
}

Update a project response attributes

See The project object for the details on the response attributes.

Response200 OK

{
    "api_version": 4,
    "error": null,
    "result": {
        "id": 123456,
        "name": "New test Name For API",
        "userId": 123456,
        "description": "This is my description",
        "created": 1488987563,
        "updated": 1488987563,
        "workspaceId": 234567,
        "testsCount": 388
    }
}