ProjectWorkTypeLink

URL

https://api.primatime.com/v1/time/projects/{id}/worktypelinks

Properties

Name Type Access Required Description
createdAt Date read only no Date of creation.
displayName String read only no Describes an object in human readable form.
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.
version Long read write no Object version number.
workType WorkType read write YES The work type which is linked with another object.

Metadata

{
    "type" : "ProjectWorkTypeLink",
    "path" : "/v1/time/projects/{id}/worktypelinks",
    "fields" : [
        {
            "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" : "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" : "Long",
            "name" : "version",
            "description" : "Object version number.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "WorkType",
            "path" : "/v1/time/worktypes",
            "name" : "workType",
            "description" : "The work type which is linked with another object.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "NotNull"
                }
            ]
        }
    ],
    "cascades" : [
        {
            "cascadeType" : "REMOVE",
            "objectTypes" : [
                "TrashItem"
            ]
        }
    ]
}

Dummy data

{
    "id" : "9fb7de25-0570-49c5-a54d-fc7e93015886",
    "createdAt" : "/Date(1651050146972)/",
    "updatedAt" : "/Date(1651126106972)/",
    "version" : 9,
    "workType" : {
        "id" : "bba36dbc-d605-4860-afb2-e420295b9e0f",
        "createdAt" : "/Date(1651047206972)/",
        "updatedAt" : "/Date(1651057706972)/",
        "version" : 2,
        "externalSystem" : {
            "id" : "0efee5f4-8553-4a26-9f2d-674eadb7d62a",
            "createdAt" : "/Date(1651047326972)/",
            "updatedAt" : "/Date(1651090106972)/",
            "version" : 5,
            "name" : "Vendor system",
            "integrationPlugin" : "vendor",
            "displayName" : "Vendor system"
        },
        "externalResourceId" : "wt-058",
        "externalBrowsableUrl" : "http://www.vendor.com/worktypes/058",
        "externalSyncedAt" : "/Date(1651050506972)/",
        "externalSynced" : true,
        "name" : "Software development",
        "code" : "SW",
        "category" : "WORK",
        "displayName" : "Software development"
    },
    "displayName" : "Software development"
}

results matching ""

    No results matching ""