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.
路径参数
Project to update.
请求体
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.
New project title.
New description. Send an empty string to remove it.
Move the project to a different client. Clears the shared contacts, because a contact
belongs to the client it came from - the app does the same.
Send LocationId with it: a location belongs to a client.
New client location.
Replaces the contacts the project is shared with. Empty array clears them.
New project type.
Replaces the tags. Empty array clears them.
New lead assignee. Send 0 to remove the lead.
Replaces the watchers. Empty array clears them.
Replaces the technician groups the project belongs to.
New target date (UTC). To remove it, send ClearTargetDate.
Set true to remove the due date.
New status: 1 Not started, 2 In progress, 3 On hold, 4 Completed, 5 Closed. Completed is
normally reached automatically once every task is Done; Closed is the manual end state
and stamps ClosedOn. Moving a Closed project to any other status clears it.
Free-text reason recorded with the status. Only read when StatusId is sent.
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.
Display name to record as the actor. An API key is not a person, so when it is
omitted or blank the actor is recorded as API.
响应
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 The identifier of the updated project.
null