Saltar al contingut principal
PATCH
Updates a project. Send only the fields you want to change.

Autoritzacions

X-API-Key
string
header
requerit

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.

Paràmetres de ruta

projectId
string<uuid>
requerit

Project to update.

Cos

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.

Title
string | null

New project title.

Description
string | null

New description. Send an empty string to remove it.

ClientId
integer<int64> | null

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.

LocationId
integer<int64> | null

New client location.

SharedWithContactIds
integer<int64>[] | null

Replaces the contacts the project is shared with. Empty array clears them.

TypeId
string<uuid> | null

New project type.

TagIds
string<uuid>[] | null

Replaces the tags. Empty array clears them.

LeadAssigneeId
integer<int64> | null

New lead assignee. Send 0 to remove the lead.

WatcherIds
integer<int64>[] | null

Replaces the watchers. Empty array clears them.

GroupIds
integer<int64>[] | null

Replaces the technician groups the project belongs to.

TargetDate
string<date-time> | null

New target date (UTC). To remove it, send ClearTargetDate.

ClearTargetDate
boolean | null

Set true to remove the due date.

StatusId
integer<int64> | null

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.

StatusReason
string | null

Free-text reason recorded with the status. Only read when StatusId is sent.

ClosedOn
string<date-time> | null

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.

UpdatedByName
string | null

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.

Resposta

OK

StatusCode
enum<integer>
Opcions disponibles:
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
IsSuccess
boolean
Data
object

The identifier of the updated project.

DataContext
object | null
Exemple:

null

Notifications
object[]