Get Departments
Gets information of departments.
Method | GET |
---|---|
URL | https://{subdomain}.kintone.com/v1/organizations.json |
Authentication | Password Authentication , Session Authentication |
Content-Type | application/json (not needed if specifying the query with a query string) |
Permissions
All users other than Guest Users can use this API.
Request Parameters
Parameter | Value | Required | Description |
---|---|---|---|
ids | Array | Optional | A list of Department IDs, as ID types. Up to 100 ids can be specified. For more information on ID types, refer to the following link: ID type |
codes | Array | Optional | A list of Department Codes, as Strings. Up to 100 codes can be specified. |
offset | Integer | Optional | The offset. If ignored, this value is 0. |
size | Integer | Optional | The maximum number of Department information to get. If ignored, this value is 100. |
*If ids and codes are both ignored, up to 100 ids will be responded in ascending order of id.
**If ids and codes are both set, an error will return. Only one can be set.
Sample Request
|
|
XMLHttpRequest
|
|
Response Parameters
Parameter | Type | Description |
---|---|---|
organizations | Array | A list of department information, as organization types, in ascending order of id. For more information on organization types, refer to the following link: organization type |
Sample Response
|
|