Skip to main content
POST
/
resource-planner
/
assignments
Create Assignment
curl --request POST \
  --url https://api.everhour.com/resource-planner/assignments \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "endDate": "2019-02-01",
  "project": "as:981141080110246",
  "startDate": "2019-01-21",
  "time": 252000,
  "type": "project",
  "user": 79786,
  "users": [
    79786,
    79786
  ],
  "forceOverride": true
}
'
{
  "days": 10,
  "endDate": "2019-02-01",
  "id": 41827,
  "project": "as:981141080110246",
  "startDate": "2019-01-21",
  "time": 252000,
  "type": "project",
  "user": 79786
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
endDate
string
Example:

"2019-02-01"

project
string
Example:

"as:981141080110246"

startDate
string
Example:

"2019-01-21"

time
number

Scheduled time in seconds

Example:

252000

type
enum<string>
Available options:
project,
time-off
Example:

"project"

user
number
Example:

79786

users
number[]

Allows to create the same schedule for multiple team users

Example:
[79786, 79786]
forceOverride
boolean
Example:

true

Response

Created

days
number

Number of workdays

Example:

10

endDate
string
Example:

"2019-02-01"

id
number
Example:

41827

project
string
Example:

"as:981141080110246"

startDate
string
Example:

"2019-01-21"

time
number

Scheduled time in seconds

Example:

252000

type
enum<string>
Available options:
project,
time-off
Example:

"project"

user
number
Example:

79786