Updates a project. Send only the fields you want to change.
An omitted field is left alone; re-sending a value the project already holds is a no-op rather than an error, and records no activity. Sending nothing at all is a 400.
Lists replace outright: send an empty array to clear one. LeadAssigneeId: 0
removes the lead, and ClearTargetDate: true removes the target date.
ClosedOn backdates the close of a project being migrated from another system, and
also becomes its UpdatedOn. It is only accepted for a project that is Closed -
already, or by this same request - and never for a future date or one before the project
was created. Omit it and closing a project stamps the time of the change; reopening a
Closed project clears it. Completed is reached automatically and carries no date.
Two field pairings are enforced because the data requires them: moving the project to a
different ClientId needs a LocationId in that client and clears the
shared contacts, and a technician cannot be both the lead and a watcher.
授权
Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.
请求体
Fields to change.
Request body for updating a project. Every field is optional - send only what you want to change. An omitted field leaves the stored value alone; sending nothing at all is a 400.
Replaces the contacts the project is shared with. Empty array clears them.
The date the project was closed (UTC), for recording the real close date of a project
migrated from another system. The project must already be Closed, or be moved into that
status by this same request. Must not be in the future or earlier than the project's
CreatedOn. A supplied date also becomes the project's UpdatedOn. Omit it to
leave the date untouched - closing a project normally stamps it with the time of the change.
响应
OK
100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511