Skip to main content

Create or update department

Suitable EnviromentSaaS
Private Deployment

Requirements

ONES
v6.96.0+

Payload

Common structure

EventData

FieldTypeDescription
organizationIDstringID of the organization associated with the event.
departmentIDstringID of the department associated with the event.
fieldsDepartmentFieldsUpdated fields of the department.

DepartmentFields

FieldTypeDescription
teamIDstringID of the team.
parentIDstringID of the parent department.
namestringName of the department.
namePinyinstringPinyin of the department name.
nextIDstringID of the next department.
leaderstringID 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"
}
}
}
}