- General
- Endpoints
- Base Data
- Card Data
- Order Data
- Webhook
- Payload send to webhook url
Update Single Resource
PUT
/resource/{resource_id}
Resource
WARNING
Any manual changes made to the schedules between the start and end date of the resource will not persist.
Request
Path Params
resource_id
string <uuid>
required
Header Params
x-api-key
string
required
Default:
{{api_key}}
x-api-env
string
required
Default:
{{api_env}}
Body Params application/json
name
string
optional
type
enum<string>
optional
Allowed values:
machinecellemployee
Default:
resource
description
string
optional
start_date
string <date>
optional
end_date
string <date> | null
optional
avatar
string <uri> | null
optional
workdays
object (ResourceWorkdays)
optional
1
integer | null
required
>= 0<= 24
Default:
8
2
integer | null
required
>= 0<= 24
Default:
8
3
integer | null
required
>= 0<= 24
Default:
8
4
integer | null
required
>= 0<= 24
Default:
8
5
integer | null
required
>= 0<= 24
Default:
8
6
integer | null
required
>= 0<= 24
Default:
null
7
integer | null
required
>= 0<= 24
Default:
null
integration_schedule
boolean
optional
color_hex
string
optional
null
Match pattern:
^#([0-9a-f]{3}){1,2}$
boards
array [object {3}]
required
id
string <uuid>
required
stages
array [object {3}]
required
active
boolean
optional
Example
{
"name": "Lorenzo Zulauf",
"type": "cell",
"description": "Vulgivagus tempore defaeco decumbo adulescens. Valens tribuo claro verus porro somniculosus.",
"start_date": "2025-11-13",
"end_date": "2025-05-27",
"avatar": "https://avatars.githubusercontent.com/u/78745669",
"workdays": {
"1": 17,
"2": 1,
"3": 23,
"4": 23,
"5": 17,
"6": 6,
"7": 6
},
"integration_schedule": false,
"color_hex": "#a8a",
"boards": [
{
"id": "5edec42b-cdae-4ee9-a2ac-fc979c9b5090",
"stages": [
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
},
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
},
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
}
],
"active": true
},
{
"id": "5edec42b-cdae-4ee9-a2ac-fc979c9b5090",
"stages": [
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
},
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
},
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
}
],
"active": true
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.vplan.com/v1/resource/' \
--header 'x-api-key;' \
--header 'x-api-env;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Lorenzo Zulauf",
"type": "cell",
"description": "Vulgivagus tempore defaeco decumbo adulescens. Valens tribuo claro verus porro somniculosus.",
"start_date": "2025-11-13",
"end_date": "2025-05-27",
"avatar": "https://avatars.githubusercontent.com/u/78745669",
"workdays": {
"1": 17,
"2": 1,
"3": 23,
"4": 23,
"5": 17,
"6": 6,
"7": 6
},
"integration_schedule": false,
"color_hex": "#a8a",
"boards": [
{
"id": "5edec42b-cdae-4ee9-a2ac-fc979c9b5090",
"stages": [
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
},
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
},
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
}
],
"active": true
},
{
"id": "5edec42b-cdae-4ee9-a2ac-fc979c9b5090",
"stages": [
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
},
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
},
{
"id": "12df4395-7501-4865-9be6-abe2dac6edbf",
"percentage": 642,
"active": true
}
],
"active": true
}
]
}'
Responses
🟢204No Content
This response does not have a body.
🟠422Unprocessable Content
🟠404Not Found
🟠401Not Logged In
Modified at 2025-06-30 07:38:44