Skip to content

Project Update

Update a project through the Timetracking API.

Search Query

id (required)

The project ID, must be a unique integer.

Body

name

The name of the project.

description

The description of the project.

address

The address of the project.

allottedHours

The hours budgeted to a project.

status

The current stage or status of the project. Allowed values include: scheduled, punched, paperwork, in-review, resubmit, on-hold, cancelled, billed, paid, complete.

Request

Maximum example:

URL:
https://timetrack-2.web.app/api/project?id=abc123

METHOD:
PATCH

HEADERS:
Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

BODY:
{
	"name": "Example Project",
	"description": "Example Project Description",
	"address": "4893 Lynch Street, Brookfield, Wisconsin",
	"allottedHours": 40,
	"status": "awarded"
}

Minimum example:

URL:
https://timetrack-2.web.app/api/project?id=abc123

METHOD:
PATCH

HEADERS:
Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

BODY:
{}

Response

{
	"projectId": "abc123"
}