PUT
/
v2
/
project
/
phase
curl --request PUT \
  --url https://api.sonderplan.com/v2/project/phase \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Deliverables due to client",
  "project_id": 2776,
  "type_id": 2,
  "start": 1669802192,
  "end": 1670234192,
  "color_background": "#B0A7F1",
  "color_text": "#000000"
}'
{
  "success": {
    "id": 1
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

id
integer
required

The ID of the project phase to edit

Body

application/json
Project Phase object

The default project phase schema which contains all of these fields

name
string

Name of the project phase

Example:

"Deliverables due to client"

project_id
integer

ID of the project that this phase is linked to

Example:

2776

type_id
integer

1 = Project Phase, 2 = Project Milestone

Example:

2

start
integer

UNIX time of the start of the phase

Example:

1669802192

end
integer

UNIX end of the start of the phase

Example:

1670234192

color_background
string

A hex color value of the background of this phase

Example:

"#B0A7F1"

color_text
string

A hex color value of the text of this phase

Example:

"#000000"

Response

200
application/json
Successful Operation
success
object