Get Achievement Master
DevelopingPOST
/empeo/api/v2/achievements/masterRequest
Header Params
Authorization
string
optional
Example:
Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkIwN0I2RTQ3QTU1MzkxOTdDQ0Y2NzlDNTVEODFFNDQ1RTE2NUQ2QkVSUzI1NiIsInR5cCI6ImF0K2p3dCIsIng1dCI6InNIdHVSNlZUa1pmTTlubkZYWUhrUmVGbDFyNCJ9.eyJuYmYiOjE2OTE0MDQ1NzUsImV4cCI6MTY5MTQwODE3NSwiaXNzIjoiaHR0cHM6Ly9sb2dpbi5nb2ZpdmUuY28udGgiLCJhdWQiOlsiR09GSVZFLkFQSSIsIklNQy5BUEkiXSwiY2xpZW50X2lkIjoiRW1wZW9BdXRoZW4tT3BlbkFwaSIsInN1YiI6IjE5ZTRlZDVjLWJhNTktNDAzMi05OTUyLWYzYzQ3YWFlODUzOCIsImF1dGhfdGltZSI6MTY5MTQwNDU3NSwiaWRwIjoibG9jYWwiLCJDbGllbnRJZCI6IkVtcGVvQXV0aGVuLU9wZW5BcGkiLCJyb2xlIjoiIiwicHJlZmVycmVkX3VzZXJuYW1lIjoiY2hhaXRoYXdhdC55YUBnbG9iYWwua29tYXRzdSIsInNpZCI6IjYzRkI4M0E5OUVGNkY3NUQ4OUFDQjc5MDIwRDc5MUI3IiwiaWF0IjoxNjkxNDA0NTc1LCJzY29wZSI6WyJHT0ZJVkUuQVBJIiwiSU1DLkFQSSIsIm9wZW5pZCIsInByb2ZpbGUiLCJvZmZsaW5lX2FjY2VzcyJdLCJhbXIiOlsicHdkIl19.VZzigCC7Znq9XGwbka1uXkKquWwuapah5GyhKZaiFFeaKW-yWYt76vodQt72RMmDQxA21MN8pYqbF2MkQlFAvP0yw9IyzpEzYsxs_0fCDWqSAQenmrJ_9o8pkX-Rc89MQvmQJBNOg0dFsYGm2W441KTK43JgP1LUIC-CPhELj3jAHNQqe6PF3j0xAl7D-fZYdbqQXI890gD0PAf8E3za4yPVsf31DV7ies3vwE8x74S5WD8sFD8R9bMC0iKmaZ_YHd4JWswF4iwiDTmifST7iKAdGizeYWXfYPC9EZD5d3GOnX_hRby2QDfuXtg1ec9esVunuYfklupTvabxiFWebw
Body Params application/json
keyword
string
optional
ชื่อ achievement ที่ต้องการค้นหา
status
string
optional
สถานะของ achievement ที่ต้องการค้นหา | 0 = ปิดใช้งาน, 1 = เปิดใช้งาน
categoryIds
string
optional
หมวดหมู่ของ achievement ที่ต้องการค้นหา
Example
{
"keyword": "an",
"status": "1, 0",
"categoryIds": "309937, 311117"
}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
status
object
required
code
string
required
description
string
required
data
array [object {16}]
required
modifiedByName
string | null
required
ชื่อภาษาไทยของผู้แก้ไขล่าสุด
modifiedByName_EN
string | null
required
ชื่อภาษาอังกฤษของผู้แก้ไขล่าสุด
achiever
array [object {9}]
required
ผู้ที่ได้รับ achievement นี้
achievementId
integer
required
name
string
required
ชื่อ achievement นี้
categoryId
integer
required
หมวดหมู่ของ achievement นี้
description
string
required
คำอธิบาย achievement นี้
coverUrl
string
required
รูป achievement นี้
tenantId
string
required
TenantId ของ achievement นี้
isSystem
boolean
required
ปัจจุบันไม่ได้ใช้แล้ว
isActive
boolean
required
สถานะการเปิดใช้งาน
isDelete
boolean
required
สถานะการลบ
dateCreated
string
required
วันที่สร้าง
createdBy
string
required
UserId ของผู้สร้าง achievement นี้
dateModified
string | null
required
วันที่แก้ไขล่าสุด
modifiedBy
string | null
required
UserId ของผู้แก้ไขล่าสุด
Example
{
"status": {
"code": "1000",
"description": "Success!"
},
"data": [
{
"modifiedByName": null,
"modifiedByName_EN": null,
"achiever": [],
"achievementId": 28489,
"name": "Outstanding Achiever",
"categoryId": 309937,
"description": "This achiever never fails to deliver remarkable performance!",
"coverUrl": "https://dev.tks.co.th/empeoAPI/api/Service/GenerateAttachmentUrl/?path=Tenant/28391ad0-b221-4c93-8724-d9f370a8b1ac/AchievementAttachmentFile/0/9bebb4d0-51a8-4e71-9901-b378ba03c90d.png&type=image/png&encryptionKey=3TR2ECOmHgBNkAbkpMXRCl2YK2RrwjHPQ2cC8XGzBro=",
"tenantId": "28391ad0-b221-4c93-8724-d9f370a8b1ac",
"isSystem": true,
"isActive": true,
"isDelete": false,
"dateCreated": "2024-09-18T17:22:56+0700",
"createdBy": "ab21003a-18a2-4a18-b00b-5a50213a80f4",
"dateModified": null,
"modifiedBy": null
},
{
"modifiedByName": null,
"modifiedByName_EN": null,
"achiever": [],
"achievementId": 29724,
"name": "Above and Beyond",
"categoryId": 309937,
"description": "This achiever turns good into great with their performance that goes beyond expectations.",
"coverUrl": "https://dev.tks.co.th/empeoAPI/api/Service/GenerateAttachmentUrl/?path=Tenant/28391ad0-b221-4c93-8724-d9f370a8b1ac/AchievementAttachmentFile/0/6ecdca0c-3dea-4126-b163-ba95d853021c.png&type=image/png&encryptionKey=3TR2ECOmHgBNkAbkpMXRCl2YK2RrwjHPQ2cC8XGzBro=",
"tenantId": "28391ad0-b221-4c93-8724-d9f370a8b1ac",
"isSystem": true,
"isActive": true,
"isDelete": false,
"dateCreated": "2024-09-18T17:22:56+0700",
"createdBy": "ab21003a-18a2-4a18-b00b-5a50213a80f4",
"dateModified": null,
"modifiedBy": null
}
]
}
Last modified: a month ago