DepartmentMember
URL
https://api.primatime.com/v1/departmentmembers
Properties
Name |
Type |
Access |
Required |
Description |
createdAt |
Date |
read only |
no |
Date of creation. |
department |
Department |
read write |
YES |
The department of the account member. |
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. |
user |
User |
read write |
YES |
User who is a member. |
version |
Long |
read write |
no |
Object version number. |
{
"type" : "DepartmentMember",
"path" : "/v1/departmentmembers",
"fields" : [
{
"type" : "Date",
"name" : "createdAt",
"description" : "Date of creation.",
"access" : "READ_ONLY"
},
{
"type" : "Department",
"path" : "/v1/departments",
"name" : "department",
"description" : "The department of the account member.",
"access" : "READ_WRITE",
"constraints" : [
{
"type" : "NotNull"
}
]
},
{
"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" : "User",
"path" : "/v1/users",
"name" : "user",
"description" : "User who is a member.",
"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" : "bd390669-28b4-4327-b3cb-6b5a7b82162f",
"createdAt" : "/Date(1651048407267)/",
"updatedAt" : "/Date(1651115307267)/",
"version" : 2,
"user" : {
"id" : "3db86887-4254-4d65-bc1f-32b3bdcdf325",
"createdAt" : "/Date(1651049667267)/",
"updatedAt" : "/Date(1651075707267)/",
"version" : 2,
"firstName" : "John",
"lastName" : "Doe",
"nickName" : "Johny D.",
"email" : "wd3clttiywzhh6y@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" : "lhg_1p2zucgeinyhmlxw",
"secretKey" : "userSecretKey",
"confirmed" : false,
"confirmedEmail" : false,
"active" : false,
"birthdayRemind" : "/Date(1652911200000)/",
"workingTimeStart" : "/Date(1651039200000)/",
"workingTimeEnd" : "/Date(1651071600000)/",
"created" : "/Date(1650964107267)/",
"admin" : false,
"projectManager" : false,
"displayName" : "Doe John"
},
"department" : {
"id" : "418537f1-c80b-4725-8b6e-634a27c10fbe",
"createdAt" : "/Date(1651050147267)/",
"updatedAt" : "/Date(1651097307267)/",
"version" : 7,
"name" : "Development",
"manager" : {
"id" : "4b6f99be-6642-48c3-844a-570b31c1982b",
"createdAt" : "/Date(1651049487267)/",
"updatedAt" : "/Date(1651108107267)/",
"version" : 8,
"firstName" : "John",
"lastName" : "Doe",
"nickName" : "Johny D.",
"email" : "3jgyn6y9r8mvosq@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" : "id1lr2k6qqc_wg2ol9bm",
"secretKey" : "userSecretKey",
"confirmed" : false,
"confirmedEmail" : false,
"active" : false,
"birthdayRemind" : "/Date(1652911200000)/",
"workingTimeStart" : "/Date(1651039200000)/",
"workingTimeEnd" : "/Date(1651071600000)/",
"created" : "/Date(1650964107267)/",
"admin" : false,
"projectManager" : false,
"displayName" : "Doe John"
},
"displayName" : "Development"
},
"displayName" : "Doe John"
}