Create a new Resource 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
{
    "type": "employee",
    "name": "Royce Mathews",
    "description": "Employee",
    "external_ref": null,
    "start_date": null,
    "end_date": null,
    "avatar": null,
    "workdays": {
        "1": 8,
        "2": 8,
        "3": 8,
        "4": 8,
        "5": 8,
        "6": 0,
        "7": 0
    },
    "integration_schedule": false,
    "color_hex": "#5652e0"
}
Request Code Samples
curl --location --request POST 'https://api.vplan.com/v1/resource' \
--header 'x-api-key: <api-key>' \
--header 'x-api-env: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "employee",
    "name": "Royce Mathews",
    "description": "Employee",
    "external_ref": null,
    "start_date": null,
    "end_date": null,
    "avatar": null,
    "workdays": {
        "1": 8,
        "2": 8,
        "3": 8,
        "4": 8,
        "5": 8,
        "6": 0,
        "7": 0
    },
    "integration_schedule": false,
    "color_hex": "#5652e0"
}'
Responses
application/json {
    "id": "5394da4c-e333-4b23-b994-eedcc2a62fcd",
    "type": "employee",
    "name": "Royce Mathews",
    "description": "Employee",
    "external_ref": null,
    "transaction": null,
    "start_date": null,
    "end_date": null,
    "avatar": null,
    "workdays": {
        "1": 8,
        "2": 8,
        "3": 8,
        "4": 8,
        "5": 8,
        "6": 0,
        "7": 0
    },
    "integration_schedule": false,
    "color_hex": "#5652e0",
    "archived_at": null,
    "created_at": "2025-07-30T08:44:37Z",
    "updated_at": "2025-07-30T08:44:37Z"
}
Modified at 2025-10-30 09:44:22