Skip to main content
POST
/
projects
/
{project_id}
/
sync
Sync Integration Project
curl --request POST \
  --url https://api.everhour.com/projects/{project_id}/sync \
  --header 'X-Api-Key: <api-key>'
import requests

url = "https://api.everhour.com/projects/{project_id}/sync"

headers = {"X-Api-Key": "<api-key>"}

response = requests.post(url, headers=headers)

print(response.text)
const options = {method: 'POST', headers: {'X-Api-Key': '<api-key>'}};

fetch('https://api.everhour.com/projects/{project_id}/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.everhour.com/projects/{project_id}/sync",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.everhour.com/projects/{project_id}/sync"

req, _ := http.NewRequest("POST", url, nil)

req.Header.Add("X-Api-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.everhour.com/projects/{project_id}/sync")
.header("X-Api-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.everhour.com/projects/{project_id}/sync")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "id": "as:1234567890",
  "name": "Project Name",
  "users": [
    1304,
    1543
  ],
  "workspaceId": "<string>",
  "workspaceName": "<string>",
  "client": 123,
  "type": "board",
  "favorite": false,
  "billing": {
    "fee": 123
  },
  "rate": {
    "rate": 123,
    "userRateOverrides": {
      "1304": 10000,
      "1543": 5000
    }
  },
  "budget": {
    "type": "money",
    "budget": 100000,
    "period": "general",
    "progress": 0,
    "timeProgress": 0,
    "expenseProgress": 0,
    "appliedFrom": "<string>",
    "disallowOverbudget": true,
    "excludeUnbillableTime": true,
    "excludeExpenses": true,
    "showToUsers": true,
    "threshold": 123
  }
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

project_id
string
required

The external project ID in the format {platform code}:{platform ID}.

Example:

"as:1234567789001"

Response

OK

id
string
required
Example:

"as:1234567890"

name
string
required
Example:

"Project Name"

users
number[]
required

List of assigned user IDs

Example:
[1304, 1543]
workspaceId
string | null
workspaceName
string | null
client
number | null

Client ID

type
enum<string>

Project Type

Available options:
board,
list
Example:

"board"

favorite
boolean
Example:

false

billing
object
rate
object
budget
object