- General
- Endpoints
Create New Activity
POST
/activity
Activity
Request
Query Params
show
string
optional
hide
string
optional
Header Params
x-api-key
string
required
Default:
{{api_key}}
x-api-env
string
required
Default:
{{api_env}}
Body Params application/json
description
string
optional
code
string
optional
item_id
string <uuid>
optional
resource_type
enum<string>
optional
Allowed values:
machinecellemployee
Default:
resource
default_duration
integer
optional
day_max_duration
integer
optional
billable
boolean
optional
hourly_rate
integer
optional
stages
array [object] | null
optional
Example
{
"id": "e4307a66-a249-4c93-883c-5031f4be1c73",
"description": "Viriliter balbus eaque comprehendo strues sophismata tunc atrocitas attonbitus super. Aequus suspendo comminor videlicet aveho curto at virtus terra. Subnecto tergeo corrupti calcar. Debilito arto aeneus degusto dicta depopulo tener dolore. Deserunt doloribus candidus concido distinctio venustas aqua. Adsuesco possimus curvo taceo timidus annus tertius viduo laboriosam.",
"code": "75",
"item_id": "0beb59b0-4616-4718-a1fe-6f61c5ed6334",
"resource_type": "cell",
"default_duration": -7381567,
"day_max_duration": 17276729,
"billable": true,
"hourly_rate": 45400847,
"external_ref": "fb1033a2ed70",
"created_at": "2024-04-11T10:22:15Z",
"updated_at": "2024-04-11T10:22:15Z"
}
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 POST 'https://api.vplan.com/v1/activity?show=&hide=' \
--header 'x-api-key;' \
--header 'x-api-env;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "e4307a66-a249-4c93-883c-5031f4be1c73",
"description": "Viriliter balbus eaque comprehendo strues sophismata tunc atrocitas attonbitus super. Aequus suspendo comminor videlicet aveho curto at virtus terra. Subnecto tergeo corrupti calcar. Debilito arto aeneus degusto dicta depopulo tener dolore. Deserunt doloribus candidus concido distinctio venustas aqua. Adsuesco possimus curvo taceo timidus annus tertius viduo laboriosam.",
"code": "75",
"item_id": "0beb59b0-4616-4718-a1fe-6f61c5ed6334",
"resource_type": "cell",
"default_duration": -7381567,
"day_max_duration": 17276729,
"billable": true,
"hourly_rate": 45400847,
"external_ref": "fb1033a2ed70",
"created_at": "2024-04-11T10:22:15Z",
"updated_at": "2024-04-11T10:22:15Z"
}'
Responses
🟢201Created
application/json
Body
id
string <uuid>
read-onlyoptional
description
string
optional
code
string
optional
item_id
string <uuid>
optional
resource_type
enum<string>
optional
Allowed values:
machinecellemployee
Default:
resource
default_duration
integer
optional
day_max_duration
integer
optional
billable
boolean
optional
hourly_rate
integer
optional
external_ref
string | null
read-onlyoptional
Example:
fb1033a2ed70
created_at
string <date-time>
read-onlyoptional
Example:
2024-04-11T10:22:15Z
updated_at
string <date-time>
read-onlyoptional
Example:
2024-04-11T10:22:15Z
archived_at
string <date-time>
read-onlyoptional
Example:
2021-07-06T11:24:35Z
Example
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"description": "string",
"code": "string",
"item_id": "4d8cd62e-a579-4dae-af8c-3172f96f8f7c",
"resource_type": "resource",
"default_duration": 0,
"day_max_duration": 0,
"billable": true,
"hourly_rate": 0,
"external_ref": "fb1033a2ed70",
"created_at": "2024-04-11T10:22:15Z",
"updated_at": "2024-04-11T10:22:15Z",
"archived_at": "2021-07-06T11:24:35Z"
}
🟠422Unprocessable Content
🟠401Not Logged In
Modified at 2025-06-25 08:40:51