Skip to main content
PUT
/
sections
/
{section_id}
Update Section
curl --request PUT \
  --url https://api.everhour.com/sections/{section_id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "name": "Section Name",
  "position": 1,
  "status": "open"
}
'
{
  "id": 1234,
  "name": "Section Name",
  "project": "ev:1234567890",
  "position": 1,
  "status": "open"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

section_id
number
required

Section ID

Example:

349235

Body

application/json
name
string
required
Example:

"Section Name"

position
number
Example:

1

status
enum<string>
Available options:
open,
archived
Example:

"open"

Response

OK

id
number
required
Example:

1234

name
string
required
Example:

"Section Name"

project
string
required
Example:

"ev:1234567890"

position
number
required
Example:

1

status
enum<string>
Available options:
open,
archived
Example:

"open"