SpendingTimeUnit

URL

https://api.primatime.com/v1/spendingtime

Properties

Name Type Access Required Description
begin Date read write no Time when user begins spending his time.
createdAt Date read only no Date of creation.
displayName String read only no Describes an object in human readable form.
duration Long read write no Length of the activity between the beginning and the end (in milliseconds). Can also be just a part of the time between the beginning and the end.
end Date read write no Time when user ends spending his time.
id String read write no Unique object identifier.
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 User who spends time.
version Long read write no Object version number.

Metadata

{
    "type" : "SpendingTimeUnit",
    "path" : "/v1/spendingtime",
    "fields" : [
        {
            "type" : "Date",
            "name" : "begin",
            "description" : "Time when user begins spending his time.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Date",
            "name" : "createdAt",
            "description" : "Date of creation.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "String",
            "name" : "displayName",
            "description" : "Describes an object in human readable form.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "Long",
            "name" : "duration",
            "description" : "Length of the activity between the beginning and the end (in milliseconds). Can also be just a part of the time between the beginning and the end.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Date",
            "name" : "end",
            "description" : "Time when user ends spending his time.",
            "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" : "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" : "User who spends time.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "NotNull"
                }
            ]
        },
        {
            "type" : "Long",
            "name" : "version",
            "description" : "Object version number.",
            "access" : "READ_WRITE"
        }
    ],
    "cascades" : [
        {
            "cascadeType" : "REMOVE",
            "objectTypes" : [
                "TrashItem"
            ]
        }
    ]
}

Dummy data

{
    "id" : "edf942e1-c292-4334-a59c-cecec282b716",
    "createdAt" : "/Date(1651048226989)/",
    "updatedAt" : "/Date(1651082906989)/",
    "version" : 1,
    "user" : {
        "id" : "62ec7ba5-7ecd-46e6-8aa8-c75ff4180f9a",
        "createdAt" : "/Date(1651047386989)/",
        "updatedAt" : "/Date(1651072106989)/",
        "version" : 9,
        "firstName" : "John",
        "lastName" : "Doe",
        "nickName" : "Johny D.",
        "email" : "zx3fm9yy7e1wssv@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" : "hdfckv_g1gs7udkd5jn7",
        "secretKey" : "userSecretKey",
        "confirmed" : false,
        "confirmedEmail" : false,
        "active" : false,
        "birthdayRemind" : "/Date(1652911200000)/",
        "workingTimeStart" : "/Date(1651039200000)/",
        "workingTimeEnd" : "/Date(1651071600000)/",
        "created" : "/Date(1650964106989)/",
        "admin" : false,
        "projectManager" : false,
        "displayName" : "Doe John"
    },
    "begin" : "/Date(1651021706989)/",
    "end" : "/Date(1651047626989)/",
    "duration" : 1200000,
    "displayName" : "20m"
}

results matching ""

    No results matching ""