Impulse

URL

https://api.primatime.com/v1/time/impulses

https://api.primatime.com/v1/time/impulses/@default

https://api.primatime.com/v1/time/impulses/@stopwatch

https://api.primatime.com/v1/time/impulses/{id}/$watchnotify

https://api.primatime.com/v1/time/impulses/{id}/$stop

Properties

Name Type Access Required Description
billable Boolean read write no Determines whether the time record can be billed. A price will be stored only if the value is 'true'.
client Client read write no A client belongs to this object.
createdAt Date read only no Date of creation.
description String read write no Some description of the record.
displayName String read only no Describes an object in human readable form.
duration Long read write no Recording length (in milliseconds).
externalBrowsableUrl String read write no Human accessible link in external system.
externalResourceId String read write no Unique external system identifier.
externalSynced Boolean write only no Determines whether an object was synced with the external system.
externalSyncedAt Date read only no Date of the last sync with the external system. It is set when the 'externalSynced' flag is true.
externalSystem ExternalSystem read write no External system which maintains this object.
id String read write no Unique object identifier.
mode Mode read write no Mode in which the impulse currently is in.
project Project read write no Task belongs to this project.
source String read write no The source of the impulse.
start Date read write no Date when recording starts.
stop Date read write no Date when recording stops.
task Task read write no A task belonging to this project.
trashItem TrashItem read write no Informs whether an object is in the trash. An object is in the trash if a trash item was specified.
updatedAt Date read only no Last modified date.
user User read write YES The user for whom the time on the task is recorded.
version Long read write no Object version number.
watchLast Date read write no Date and time of the last stopwatch check. Only in STOPWATCH mode.
watchTimeout Long read write no Timeout to check the stopwatch. Only in STOPWATCH mode.
workType WorkType read write no User which time on task is recorded.

Metadata

{
    "type" : "Impulse",
    "path" : "/v1/time/impulses",
    "fields" : [
        {
            "type" : "Boolean",
            "name" : "billable",
            "description" : "Determines whether the time record can be billed. A price will be stored only if the value is 'true'.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Client",
            "path" : "/v1/time/clients",
            "name" : "client",
            "description" : "A client belongs to this object.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Date",
            "name" : "createdAt",
            "description" : "Date of creation.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "String",
            "name" : "description",
            "description" : "Some description of the record.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "String",
            "name" : "displayName",
            "description" : "Describes an object in human readable form.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "Long",
            "name" : "duration",
            "description" : "Recording length (in milliseconds).",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "Min",
                    "details" : "value 0"
                }
            ]
        },
        {
            "type" : "String",
            "name" : "externalBrowsableUrl",
            "description" : "Human accessible link in external system.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "String",
            "name" : "externalResourceId",
            "description" : "Unique external system identifier.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Boolean",
            "name" : "externalSynced",
            "description" : "Determines whether an object was synced with the external system.",
            "access" : "WRITE_ONLY"
        },
        {
            "type" : "Date",
            "name" : "externalSyncedAt",
            "description" : "Date of the last sync with the external system. It is set when the 'externalSynced' flag is true.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "ExternalSystem",
            "path" : "/v1/externalsystems",
            "name" : "externalSystem",
            "description" : "External system which maintains this object.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "String",
            "name" : "id",
            "description" : "Unique object identifier.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "Pattern",
                    "details" : "regexp [0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}"
                },
                {
                    "type" : "NotNull"
                }
            ]
        },
        {
            "type" : "Mode",
            "name" : "mode",
            "description" : "Mode in which the impulse currently is in.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "Enum",
                    "details" : "STOPWATCH, PAUSE"
                }
            ]
        },
        {
            "type" : "Project",
            "path" : "/v1/time/projects",
            "name" : "project",
            "description" : "Task belongs to this project.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "String",
            "name" : "source",
            "description" : "The source of the impulse.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Date",
            "name" : "start",
            "description" : "Date when recording starts.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Date",
            "name" : "stop",
            "description" : "Date when recording stops.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Task",
            "path" : "/v1/time/tasks",
            "name" : "task",
            "description" : "A task belonging to this project.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "TrashItem",
            "path" : "/v1/trash",
            "name" : "trashItem",
            "description" : "Informs whether an object is in the trash. An object is in the trash if a trash item was specified.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Date",
            "name" : "updatedAt",
            "description" : "Last modified date.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "User",
            "path" : "/v1/users",
            "name" : "user",
            "description" : "The user for whom the time on the task is recorded.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "NotNull"
                }
            ]
        },
        {
            "type" : "Long",
            "name" : "version",
            "description" : "Object version number.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Date",
            "name" : "watchLast",
            "description" : "Date and time of the last stopwatch check. Only in STOPWATCH mode.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Long",
            "name" : "watchTimeout",
            "description" : "Timeout to check the stopwatch. Only in STOPWATCH mode.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "WorkType",
            "path" : "/v1/time/worktypes",
            "name" : "workType",
            "description" : "User which time on task is recorded.",
            "access" : "READ_WRITE"
        }
    ],
    "cascades" : [
        {
            "cascadeType" : "REMOVE",
            "objectTypes" : [
                "TrashItem"
            ]
        }
    ]
}

Dummy data

{
    "id" : "71f5695e-42d4-4c75-b0d5-1a3d6f0f08eb",
    "createdAt" : "/Date(1651047386812)/",
    "updatedAt" : "/Date(1651108106812)/",
    "version" : 7,
    "externalSystem" : {
        "id" : "d7ae0c47-2951-48c0-b6f7-0c7c3bf088c3",
        "createdAt" : "/Date(1651047866812)/",
        "updatedAt" : "/Date(1651115306812)/",
        "version" : 6,
        "name" : "Ticket system",
        "integrationPlugin" : "ticket",
        "displayName" : "Ticket system"
    },
    "externalResourceId" : "779",
    "externalBrowsableUrl" : "https://www.ticket-system.com/v1/779",
    "externalSyncedAt" : "/Date(1651050506812)/",
    "externalSynced" : true,
    "user" : {
        "id" : "d9a3a133-6adc-4903-9cf9-38e1157aa53a",
        "createdAt" : "/Date(1651050026812)/",
        "updatedAt" : "/Date(1651082906812)/",
        "version" : 5,
        "firstName" : "John",
        "lastName" : "Doe",
        "nickName" : "Johny D.",
        "email" : "klegkpmfdil9sqg@testdata.com",
        "phone" : "55 234 555 678",
        "position" : "Senior developer",
        "timeZone" : "America/Sao_Paulo",
        "dateFormat" : "yyyy-MM-dd",
        "timeFormat" : "K:mm a",
        "weekStart" : 7,
        "language" : "pt_BR",
        "password" : "s30rux1l_hb1w9nsbptz",
        "secretKey" : "userSecretKey",
        "confirmed" : false,
        "confirmedEmail" : false,
        "active" : false,
        "birthdayRemind" : "/Date(1652911200000)/",
        "workingTimeStart" : "/Date(1651039200000)/",
        "workingTimeEnd" : "/Date(1651071600000)/",
        "created" : "/Date(1650964106812)/",
        "admin" : false,
        "projectManager" : false,
        "displayName" : "Doe John"
    },
    "project" : {
        "id" : "57af03b8-576c-43e7-9c44-922c8278f4d9",
        "createdAt" : "/Date(1651049006812)/",
        "updatedAt" : "/Date(1651108106812)/",
        "version" : 2,
        "externalSystem" : {
            "id" : "e3454fc3-cc4d-4263-bc0a-3f537c91c799",
            "createdAt" : "/Date(1651047866812)/",
            "updatedAt" : "/Date(1651115306812)/",
            "version" : 1,
            "name" : "Vendor system",
            "integrationPlugin" : "vendor",
            "displayName" : "Vendor system"
        },
        "externalResourceId" : "project-221",
        "externalBrowsableUrl" : "http://www.vendor.com/projects/221",
        "externalSyncedAt" : "/Date(1651050506812)/",
        "externalSynced" : true,
        "name" : "Content management system",
        "code" : "CMS",
        "note" : "core feature",
        "begins" : "/Date(1650964106812)/",
        "ends" : "/Date(1651136906812)/",
        "timeBudget" : 86400000,
        "priceBudget" : 100000.0,
        "personal" : true,
        "owner" : {
            "id" : "79cbf887-9d58-431b-b530-8886a909c7a4",
            "createdAt" : "/Date(1651049726812)/",
            "updatedAt" : "/Date(1651068506812)/",
            "version" : 8,
            "firstName" : "John",
            "lastName" : "Doe",
            "nickName" : "Johny D.",
            "email" : "f9n4n3_4qcsqq6i@testdata.com",
            "phone" : "55 234 555 678",
            "position" : "Senior developer",
            "timeZone" : "America/Sao_Paulo",
            "dateFormat" : "yyyy-MM-dd",
            "timeFormat" : "K:mm a",
            "weekStart" : 7,
            "language" : "pt_BR",
            "password" : "30cklxqeqnbjfwc4sydd",
            "secretKey" : "userSecretKey",
            "confirmed" : false,
            "confirmedEmail" : false,
            "active" : false,
            "birthdayRemind" : "/Date(1652911200000)/",
            "workingTimeStart" : "/Date(1651039200000)/",
            "workingTimeEnd" : "/Date(1651071600000)/",
            "created" : "/Date(1650964106812)/",
            "admin" : false,
            "projectManager" : false,
            "displayName" : "Doe John"
        },
        "client" : {
            "id" : "93810094-519b-4246-b9fc-e0ab279ce723",
            "createdAt" : "/Date(1651049486812)/",
            "updatedAt" : "/Date(1651079306812)/",
            "version" : 7,
            "externalSystem" : {
                "id" : "e88a04ad-eab0-4c99-9f41-a6b9d2f27de5",
                "createdAt" : "/Date(1651049366812)/",
                "updatedAt" : "/Date(1651075706812)/",
                "version" : 8,
                "name" : "Vendor system",
                "integrationPlugin" : "vendor",
                "displayName" : "Vendor system"
            },
            "externalResourceId" : "customer-996",
            "externalBrowsableUrl" : "http://www.vendor.com/customers/996",
            "externalSyncedAt" : "/Date(1651050506812)/",
            "externalSynced" : true,
            "name" : "Example Ltd.",
            "code" : "EXL",
            "email" : "info@example.com",
            "billsCount" : 2,
            "projectsCount" : 1,
            "streetAddress" : "Rua 123 Sul Avenida Lo 15",
            "additionalAddressInfo" : "",
            "zipCode" : "89020-000",
            "city" : "Palmas",
            "state" : "Tocantins",
            "countryCode" : "BRA",
            "phone" : "+66 987 654 321",
            "vatId" : "23.456.789/0001-77",
            "website" : "http://www.example.com/",
            "consentTill" : "/Date(1682586506812)/",
            "displayName" : "Example Ltd."
        },
        "billable" : true,
        "autoMembership" : false,
        "membersCount" : 1,
        "tasksCount" : 3,
        "timeRecordsCount" : 2,
        "displayName" : "Content management system"
    },
    "task" : {
        "id" : "f6c2fc83-4822-478d-b9bf-7e9d660f0302",
        "createdAt" : "/Date(1651049426812)/",
        "updatedAt" : "/Date(1651118906812)/",
        "version" : 1,
        "externalSystem" : {
            "id" : "3294fe80-b154-4b30-9631-f3d6f38ff6cc",
            "createdAt" : "/Date(1651050146812)/",
            "updatedAt" : "/Date(1651082906812)/",
            "version" : 5,
            "name" : "Ticket system",
            "integrationPlugin" : "ticket",
            "displayName" : "Ticket system"
        },
        "externalResourceId" : "779",
        "externalBrowsableUrl" : "https://www.ticket-system.com/v1/779",
        "externalSyncedAt" : "/Date(1651050506812)/",
        "externalSynced" : true,
        "project" : {
            "id" : "57af03b8-576c-43e7-9c44-922c8278f4d9",
            "createdAt" : "/Date(1651049006812)/",
            "updatedAt" : "/Date(1651108106812)/",
            "version" : 2,
            "externalSystem" : {
                "id" : "e3454fc3-cc4d-4263-bc0a-3f537c91c799",
                "createdAt" : "/Date(1651047866812)/",
                "updatedAt" : "/Date(1651115306812)/",
                "version" : 1,
                "name" : "Vendor system",
                "integrationPlugin" : "vendor",
                "displayName" : "Vendor system"
            },
            "externalResourceId" : "project-221",
            "externalBrowsableUrl" : "http://www.vendor.com/projects/221",
            "externalSyncedAt" : "/Date(1651050506812)/",
            "externalSynced" : true,
            "name" : "Content management system",
            "code" : "CMS",
            "note" : "core feature",
            "begins" : "/Date(1650964106812)/",
            "ends" : "/Date(1651136906812)/",
            "timeBudget" : 86400000,
            "priceBudget" : 100000.0,
            "personal" : true,
            "owner" : {
                "id" : "79cbf887-9d58-431b-b530-8886a909c7a4",
                "createdAt" : "/Date(1651049726812)/",
                "updatedAt" : "/Date(1651068506812)/",
                "version" : 8,
                "firstName" : "John",
                "lastName" : "Doe",
                "nickName" : "Johny D.",
                "email" : "f9n4n3_4qcsqq6i@testdata.com",
                "phone" : "55 234 555 678",
                "position" : "Senior developer",
                "timeZone" : "America/Sao_Paulo",
                "dateFormat" : "yyyy-MM-dd",
                "timeFormat" : "K:mm a",
                "weekStart" : 7,
                "language" : "pt_BR",
                "password" : "30cklxqeqnbjfwc4sydd",
                "secretKey" : "userSecretKey",
                "confirmed" : false,
                "confirmedEmail" : false,
                "active" : false,
                "birthdayRemind" : "/Date(1652911200000)/",
                "workingTimeStart" : "/Date(1651039200000)/",
                "workingTimeEnd" : "/Date(1651071600000)/",
                "created" : "/Date(1650964106812)/",
                "admin" : false,
                "projectManager" : false,
                "displayName" : "Doe John"
            },
            "client" : {
                "id" : "93810094-519b-4246-b9fc-e0ab279ce723",
                "createdAt" : "/Date(1651049486812)/",
                "updatedAt" : "/Date(1651079306812)/",
                "version" : 7,
                "externalSystem" : {
                    "id" : "e88a04ad-eab0-4c99-9f41-a6b9d2f27de5",
                    "createdAt" : "/Date(1651049366812)/",
                    "updatedAt" : "/Date(1651075706812)/",
                    "version" : 8,
                    "name" : "Vendor system",
                    "integrationPlugin" : "vendor",
                    "displayName" : "Vendor system"
                },
                "externalResourceId" : "customer-996",
                "externalBrowsableUrl" : "http://www.vendor.com/customers/996",
                "externalSyncedAt" : "/Date(1651050506812)/",
                "externalSynced" : true,
                "name" : "Example Ltd.",
                "code" : "EXL",
                "email" : "info@example.com",
                "billsCount" : 2,
                "projectsCount" : 1,
                "streetAddress" : "Rua 123 Sul Avenida Lo 15",
                "additionalAddressInfo" : "",
                "zipCode" : "89020-000",
                "city" : "Palmas",
                "state" : "Tocantins",
                "countryCode" : "BRA",
                "phone" : "+66 987 654 321",
                "vatId" : "23.456.789/0001-77",
                "website" : "http://www.example.com/",
                "consentTill" : "/Date(1682586506812)/",
                "displayName" : "Example Ltd."
            },
            "billable" : true,
            "autoMembership" : false,
            "membersCount" : 1,
            "tasksCount" : 3,
            "timeRecordsCount" : 2,
            "displayName" : "Content management system"
        },
        "name" : "Article editation",
        "code" : "ART",
        "note" : "form with validation",
        "done" : false,
        "author" : {
            "id" : "79cbf887-9d58-431b-b530-8886a909c7a4",
            "createdAt" : "/Date(1651049726812)/",
            "updatedAt" : "/Date(1651068506812)/",
            "version" : 8,
            "firstName" : "John",
            "lastName" : "Doe",
            "nickName" : "Johny D.",
            "email" : "f9n4n3_4qcsqq6i@testdata.com",
            "phone" : "55 234 555 678",
            "position" : "Senior developer",
            "timeZone" : "America/Sao_Paulo",
            "dateFormat" : "yyyy-MM-dd",
            "timeFormat" : "K:mm a",
            "weekStart" : 7,
            "language" : "pt_BR",
            "password" : "30cklxqeqnbjfwc4sydd",
            "secretKey" : "userSecretKey",
            "confirmed" : false,
            "confirmedEmail" : false,
            "active" : false,
            "birthdayRemind" : "/Date(1652911200000)/",
            "workingTimeStart" : "/Date(1651039200000)/",
            "workingTimeEnd" : "/Date(1651071600000)/",
            "created" : "/Date(1650964106812)/",
            "admin" : false,
            "projectManager" : false,
            "displayName" : "Doe John"
        },
        "owner" : {
            "id" : "d9a3a133-6adc-4903-9cf9-38e1157aa53a",
            "createdAt" : "/Date(1651050026812)/",
            "updatedAt" : "/Date(1651082906812)/",
            "version" : 5,
            "firstName" : "John",
            "lastName" : "Doe",
            "nickName" : "Johny D.",
            "email" : "klegkpmfdil9sqg@testdata.com",
            "phone" : "55 234 555 678",
            "position" : "Senior developer",
            "timeZone" : "America/Sao_Paulo",
            "dateFormat" : "yyyy-MM-dd",
            "timeFormat" : "K:mm a",
            "weekStart" : 7,
            "language" : "pt_BR",
            "password" : "s30rux1l_hb1w9nsbptz",
            "secretKey" : "userSecretKey",
            "confirmed" : false,
            "confirmedEmail" : false,
            "active" : false,
            "birthdayRemind" : "/Date(1652911200000)/",
            "workingTimeStart" : "/Date(1651039200000)/",
            "workingTimeEnd" : "/Date(1651071600000)/",
            "created" : "/Date(1650964106812)/",
            "admin" : false,
            "projectManager" : false,
            "displayName" : "Doe John"
        },
        "timeBudget" : 86400000,
        "priceBudget" : 1000.0,
        "displayName" : "Article editation"
    },
    "workType" : {
        "id" : "6731a026-1470-4741-84dc-9107058a2ce6",
        "createdAt" : "/Date(1651049666812)/",
        "updatedAt" : "/Date(1651108106812)/",
        "version" : 5,
        "externalSystem" : {
            "id" : "96e7142f-17d2-4f67-a9ee-af0e9b401a50",
            "createdAt" : "/Date(1651049726812)/",
            "updatedAt" : "/Date(1651104506812)/",
            "version" : 2,
            "name" : "Vendor system",
            "integrationPlugin" : "vendor",
            "displayName" : "Vendor system"
        },
        "externalResourceId" : "wt-058",
        "externalBrowsableUrl" : "http://www.vendor.com/worktypes/058",
        "externalSyncedAt" : "/Date(1651050506812)/",
        "externalSynced" : true,
        "name" : "Software development",
        "code" : "SW",
        "category" : "WORK",
        "displayName" : "Software development"
    },
    "client" : {
        "id" : "93810094-519b-4246-b9fc-e0ab279ce723",
        "createdAt" : "/Date(1651049486812)/",
        "updatedAt" : "/Date(1651079306812)/",
        "version" : 7,
        "externalSystem" : {
            "id" : "e88a04ad-eab0-4c99-9f41-a6b9d2f27de5",
            "createdAt" : "/Date(1651049366812)/",
            "updatedAt" : "/Date(1651075706812)/",
            "version" : 8,
            "name" : "Vendor system",
            "integrationPlugin" : "vendor",
            "displayName" : "Vendor system"
        },
        "externalResourceId" : "customer-996",
        "externalBrowsableUrl" : "http://www.vendor.com/customers/996",
        "externalSyncedAt" : "/Date(1651050506812)/",
        "externalSynced" : true,
        "name" : "Example Ltd.",
        "code" : "EXL",
        "email" : "info@example.com",
        "billsCount" : 2,
        "projectsCount" : 1,
        "streetAddress" : "Rua 123 Sul Avenida Lo 15",
        "additionalAddressInfo" : "",
        "zipCode" : "89020-000",
        "city" : "Palmas",
        "state" : "Tocantins",
        "countryCode" : "BRA",
        "phone" : "+66 987 654 321",
        "vatId" : "23.456.789/0001-77",
        "website" : "http://www.example.com/",
        "consentTill" : "/Date(1682586506812)/",
        "displayName" : "Example Ltd."
    },
    "start" : "/Date(1650964106812)/",
    "stop" : "/Date(1650985706812)/",
    "duration" : 21600000,
    "description" : "Form validations and CRUD.",
    "billable" : true,
    "source" : "googleCalendar",
    "mode" : "STOPWATCH",
    "watchTimeout" : 3600000,
    "watchLast" : "/Date(1650964106812)/",
    "displayName" : "Doe John"
}

results matching ""

    No results matching ""