Update a project
PATCH/v1/projects/:id
Changes a project. Send only the fields to change; the others keep their value. If you send roofs, send all of them: roofs you leave out are deleted, unless an offer uses them (409 in_use). Requires the write:projects scope.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
The project after the change.
validation_error: the body, a path or a query parameter is not valid. message names each problem, e.g. firstName: Required.
missing_api_key or invalid_api_key: no API key was sent, or it is wrong, expired or revoked.
insufficient_scope: the API key does not have the scope this endpoint needs. required names it.
not_found: there is no such record in your company.
in_use: a roof that roofs leaves out is used by an offer, or is part of a published offer. Nothing was changed.
db_error: the database refused or failed the request. message has the details.