The following are examples of JSON requests that can be added to the BODY tabbed page in the Oomnitza block.
The below information and more can also be retrieved by navigating to Configuration>Integrations>Rest APIs (Swagger Docs) in your Oomnitza instance.
| API | Example value |
| Bulk Delete |
{
"ids": [
"123456789",
"444411123"
]
}
|
| Bulk Edit by filter | Example 1: Bulk edit asset status for assigned user
{
"filter": "(assigned_to eq 'helentroy@oomnitza.com')",
"edits": {
"status": "To Be Retired",
"hold_status": "Offboarding"
}
}
Example 2: Bulk assign assets by date
{
"filter": "(change_date BETWEEN 05/06/2023 AND 07/06/2023)",
"edits": {
"assigned_to": "helentroy@oomnitza.com"
}
}
|
| Bulk Edit by IDs |
{
"edits": {
"accessory_name": "ABC XXXX-Outlet Surge Protector"
},
"ids": [
"123456789",
"444411123"
]
}
|
| Create Contract |
{
"contract_name": "string",
"contact_type": "string"
}
|
| Create/Update Custom Object |
{
"custom_object_name": "string",
"description": "string",
"is_main_object": true,
"type": "lookup_object"
}
|
| Create Location |
{
"name": "Dublin"
}
|
| Cancel Request |
{
"request_ids": [
"123456789",
"444411123"
]
}
|
| Create/Update SaaS |
{
"saas_name": "string",
"category": "string",
"publisher": "string",
"url": "string",
"ignored": "1"
}
|
| Activate/Deactivate SaaS users |
{
"saas_user_ids": [
"saas_user_id_1",
"saas_user_id_2",
"saas_user_id_3"
]
}
|
| Bulk Assign SaaS users |
[
{
"user_id": "string",
"contract_id": "string",
"assign": true
}
]
|
| Assign/Update Saas user roles |
{
"users": [
"string"
],
"roles": [
"string"
]
}
|
| Create Software |
{
"software_name": "Salesforce"
}
|
| Create Subscription |
{
"send_empty": true,
"saved_search": "string",
"schedule": { ...
View more
|
| Create/Update User |
{
"username": "string",...
View more
To create a user, it is essential to provide the following mandatory information: username, email, and role. |
| Activate/Deactivate workflows |
{
"active": "1"
}
|
Comments
0 comments
Please sign in to leave a comment.