Smart Agent Teams
EndpointsProjects

Update Company Project

Update a project's name, description, repository, status or budget. Only fields present in the body are changed. `status` is `active`, `paused`, `completed` or `archived`; money is in integer cents (`0` = no limit). Publishes `project.updated` when something changed.

PATCH
/api/companies/{company_id}/projects/{project_id}

Update a project's name, description, repository, status or budget.

Only fields present in the body are changed. status is active, paused, completed or archived; money is in integer cents (0 = no limit). Publishes project.updated when something changed.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

project_id*Project Id
Formatuuid
company_id*Company Id
Formatuuid

Request Body

application/json
  1. body
description?string|null
monthly_budget_cents?|null
name?|null
repository?string|null
status?|null

Response Body

Successful Response

application/json
  1. response
created_at*|null
description*string|null
id*Id
Formatuuid
monthly_budget_cents*Monthly Budget Cents
name*Name
repository*string|null
spend_mtd_cents?Spend Mtd Cents
Default0
status*string|null
tasks_done?Tasks Done
Default0
tasks_total?Tasks Total
Default0
curl -X PATCH "https://example.com/api/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "created_at": "2019-08-24T14:15:22Z",  "description": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "monthly_budget_cents": 0,  "name": "string",  "repository": "string",  "spend_mtd_cents": 0,  "status": "string",  "tasks_done": 0,  "tasks_total": 0}