ContactPerson

URL

https://api.primatime.com/v1/time/clients/{id}/contacts

Properties

Name Type Access Required Description
client Client read write no Provides info about client for which person works.
createdAt Date read only no Date of creation.
displayName String read only no Describes an object in human readable form.
email String read write no Contact person's e-mail address.
firstName String read write no Contact person's first name.
id String read write no Unique object identifier.
jobTitle String read write no Describes the job position held by a person.
lastName String read write no Contact person's last name.
phone String read write no Contact person's phone number.
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.

Metadata

{
    "type" : "ContactPerson",
    "path" : "/v1/time/clients/{id}/contacts",
    "fields" : [
        {
            "type" : "Client",
            "path" : "/v1/time/clients",
            "name" : "client",
            "description" : "Provides info about client for which person works.",
            "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" : "String",
            "name" : "email",
            "description" : "Contact person's e-mail address.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "Email",
                    "details" : "regexp .*"
                }
            ]
        },
        {
            "type" : "String",
            "name" : "firstName",
            "description" : "Contact person's first name.",
            "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" : "String",
            "name" : "jobTitle",
            "description" : "Describes the job position held by a person.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "String",
            "name" : "lastName",
            "description" : "Contact person's last name.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "String",
            "name" : "phone",
            "description" : "Contact person's phone number.",
            "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" : "Long",
            "name" : "version",
            "description" : "Object version number.",
            "access" : "READ_WRITE"
        }
    ],
    "cascades" : [
        {
            "cascadeType" : "REMOVE",
            "objectTypes" : [
                "TrashItem"
            ]
        }
    ]
}

Dummy data

{
    "id" : "97a73c77-e1e3-42db-b72e-d0182124e5d0",
    "createdAt" : "/Date(1651050327198)/",
    "updatedAt" : "/Date(1651082907198)/",
    "version" : 7,
    "firstName" : "Pedro",
    "lastName" : "Examplo",
    "email" : "pedro@example.com",
    "phone" : "66 234 555 678",
    "jobTitle" : "deputy director",
    "client" : {
        "id" : "68bb11cd-7773-4d28-832d-4ce988e752c0",
        "createdAt" : "/Date(1651049907198)/",
        "updatedAt" : "/Date(1651075707198)/",
        "version" : 6,
        "externalSystem" : {
            "id" : "199872d8-fe1e-499c-84d9-d6344d447b29",
            "createdAt" : "/Date(1651048227198)/",
            "updatedAt" : "/Date(1651129707198)/",
            "version" : 9,
            "name" : "Vendor system",
            "integrationPlugin" : "vendor",
            "displayName" : "Vendor system"
        },
        "externalResourceId" : "customer-996",
        "externalBrowsableUrl" : "http://www.vendor.com/customers/996",
        "externalSyncedAt" : "/Date(1651050507198)/",
        "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(1682586507198)/",
        "displayName" : "Example Ltd."
    },
    "displayName" : "Examplo Pedro"
}

results matching ""

    No results matching ""