Create a new Activity and store it
Request
Add parameter in header x-api-key
Example:x-api-key: ********************
Add parameter in header x-api-env
Example:x-api-env: ********************
or
Body Params application/json
{
"external_ref": null,
"description": "Activity - Machine",
"code": "",
"resource_type": "machine",
"default_duration": 0,
"day_max_duration": 0,
"billable": false,
"hourly_rate": 0
}
Request Code Samples
curl --location --request POST 'https://api.vplan.com/v1/activity' \
--header 'x-api-key: <api-key>' \
--header 'x-api-env: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"external_ref": null,
"description": "Activity - Machine",
"code": "",
"resource_type": "machine",
"default_duration": 0,
"day_max_duration": 0,
"billable": false,
"hourly_rate": 0
}'
Responses
application/json {
"id": "ab59295d-72ce-4e8a-bc74-5e6c4caad348",
"item_id": null,
"external_ref": null,
"transaction": null,
"description": "Activity - Machine",
"code": "",
"resource_type": "machine",
"default_duration": 0,
"day_max_duration": 0,
"billable": false,
"hourly_rate": 0,
"archived_at": null,
"created_at": "2025-07-30T07:57:46Z",
"updated_at": "2025-07-30T07:57:46Z"
}
Modified at 2025-10-30 09:44:22