Skip to content
developers
Open TestCollab

Updates a project

PUT/projects/{id}

Updates a project

Use resource IDs from your own project. Keep the API token in your server or CI environment.

example.ts
import { createConfiguration, ProjectsApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!);
const api = new ProjectsApi(config);
const result = await api.updateProject({
"id": 123,
"projectPayload": {
"name": "Checkout smoke tests",
"company": 123
}
});
console.log(result);
Name Location Type Required Description
id path number Yes Project ID
Field Type Required Description
id number No —
name string Yes —
description string No —
archived boolean No —
company number Yes —

200 — Updated Project

Field Type Required Description
id number Yes —
name string Yes —
description string No —
archived boolean Yes —
team Array of Project User Minified No —
activity string No —
created_at string Yes —
updated_at string Yes —
is_sample boolean No Indicates that the project is a sample project or not
Illustrative response
{
"id": 123,
"name": "example",
"description": "example",
"archived": true,
"team": [],
"activity": "example",
"created_at": "example",
"updated_at": "example",
"is_sample": true
}
Status Meaning
401 Unauthorized
403 Forbidden
404 Not found
500 Internal server error