Skip to content

Update project type.

Request

Update project type.

Expect error codes:

  1. INVALID_NAME - when name is invalid
  2. INVALID_PERSON - when one of provided persons is invalid
  3. INVALID_TEAM - when one of provided teams is invalid

Security
basicAuth
Bodyapplication/json
projectIdinteger, (int64)required

Project ID

Example:13
namestring, [ 0 .. 255 ] characters

Project name

Example:"PROJECT-123"
restrictedToPersonsArray of strings

List of employees e-mails or logins.

Example:
[ "john.smith@domain.com" ]
restrictedToTeamsArray of strings

List of teams names or ids.

Example:
[ "Developers Team" ]
curl -i -X POST \
  -u '<username>:<password>' \
  https://awesome-company.calamari.io/api/clockin/projects/v1/update \
  -H 'Content-Type: application/json' \
  -d '{
    "projectId": 13,
    "name": "PROJECT-123",
    "restrictedToPersons": [
      "john.smith@domain.com"
    ],
    "restrictedToTeams": [
      "Developers Team"
    ]
  }'

Responses

successful operation

Bodyapplication/json
idinteger, (int64)

Project id

namestring

Project name

Example:"Primary project"
employeesArray of objects(EmployeeSimpleOut)

Assigned employees

teamsArray of objects(TeamOut)

Assigned teams

Response
{ "id": 0, "name": "Primary project", "employees": [ { … } ], "teams": [ { … } ] }