Skip to content

Project Create

Create a project through the Timetracking API

Body

name (Required)

The name of the project.

id (Required)

The project ID, must be a unique integer.

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

Maximal request example:

URL:
https://timetrack-2.web.app/api/project

METHOD:
POST

HEADERS:
Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

Minimal request example:

URL:
https://timetrack-2.web.app/api/project

METHOD:
POST

HEADERS:
Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

BODY:
{
	"name": "Example Project",
	"id": "abc123"
}

Response

{
	"projectId": "abc123"
}