JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.project.update({
...
}){
"id": "<string>",
"worktree": "<string>",
"time": {
"created": 123,
"updated": 123,
"initialized": 123
},
"sandboxes": [
"<string>"
],
"vcs": "git",
"name": "<string>",
"icon": {
"url": "<string>",
"override": "<string>",
"color": "<string>"
},
"commands": {
"start": "<string>"
}
}{
"data": "<unknown>",
"errors": [
{}
],
"success": false
}{
"name": "NotFoundError",
"data": {
"message": "<string>"
}
}API Reference
Update project
Update project properties such as name, icon, and commands.
PATCH
/
project
/
{projectID}
JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.project.update({
...
}){
"id": "<string>",
"worktree": "<string>",
"time": {
"created": 123,
"updated": 123,
"initialized": 123
},
"sandboxes": [
"<string>"
],
"vcs": "git",
"name": "<string>",
"icon": {
"url": "<string>",
"override": "<string>",
"color": "<string>"
},
"commands": {
"start": "<string>"
}
}{
"data": "<unknown>",
"errors": [
{}
],
"success": false
}{
"name": "NotFoundError",
"data": {
"message": "<string>"
}
}