Create or update department
| Suitable Enviroment | SaaS |
| Private Deployment |
Requirements
| ONES |
|---|
| v6.96.0+ |
Payload
EventData
| Field | Type | Description |
|---|---|---|
organizationID | string | ID of the organization associated with the event. |
departmentID | string | ID of the department associated with the event. |
fields | DepartmentFields | Updated fields of the department. |
DepartmentFields
| Field | Type | Description |
|---|---|---|
teamID | string | ID of the team. |
parentID | string | ID of the parent department. |
name | string | Name of the department. |
namePinyin | string | Pinyin of the department name. |
nextID | string | ID of the next department. |
leader | string | ID of the department leader. |
Example
{
"data": {
"eventType": "ones:department:created_or_updated",
"eventID": 1773166207945625601,
"timestamp": "1709005723000",
"eventContext": {
"triggerUserID": "",
"teamID": "team-1",
"organizationID": "org-1"
},
"eventSubscriber": {
"subscriberID": "Re6FSci9",
"clientID": "37732555"
},
"eventData": {
"organizationID": "org-1",
"departmentID": "dept-1",
"fields": {
"teamID": "team-1",
"parentID": "parent-1",
"name": "Research",
"namePinyin": "research",
"nextID": "next-1",
"leader": "user-1"
}
}
}
}