Retrieve a list of collection categories
OK response.
{- "page": 0,
- "pageSize": 20,
- "filter": {
- "name": [
- "string"
], - "is_predefined": true,
- "enabled": true
}
}
{- "records": [
- {
- "id": "6cad073a-b7bf-4606-b706-302f19d8e133",
- "name": "Organizing",
- "description": "This is the first team c",
- "is_predefined": true,
- "enabled": true,
- "count_of_ous": 1,
- "created_at": 1654841196842,
- "updated_at": 1654841196842
}, - {
- "id": "9fe62fc3-31aa-4cf0-a62f-677eaeff33b2",
- "name": "Finance",
- "description": "This is the second team c",
- "enabled": true,
- "count_of_ous": 0,
- "is_predefined": false,
- "created_at": 1654841375866,
- "updated_at": 1654841375866
}, - {
- "id": "75504d25-4980-4952-a282-ab6933fdff8b",
- "name": "Dev Team",
- "description": "This is the thrid team c",
- "enabled": true,
- "count_of_ous": 1,
- "is_predefined": true,
- "created_at": 1654841422226,
- "updated_at": 1654841422226
}, - {
- "id": "9a2c246b-4468-4888-8371-43fae8473296",
- "name": "Testing Team",
- "description": "This is the fourth team c",
- "enabled": true,
- "count_of_ous": 4,
- "is_predefined": true,
- "created_at": 1654841434865,
- "updated_at": 1654841434865
}
], - "count": 4,
- "_metadata": {
- "page_size": 1000,
- "page": 0,
- "has_next": false,
- "total_count": 4
}
}
Create a new collection category
OK response.
{- "rootOuName": "string",
- "workspaceId": 0,
- "name": "string",
- "description": "string",
- "is_predefined": true,
- "enabled": true
}
{- "id": "9fe62fc3-31aa-4cf0-a62f-677eaeff33b2",
- "name": "Finance",
- "description": "This is the second team C",
- "is_predefined": false,
- "enabled": true
}
Delete multiple collection categories in a single request
OK response.
[- "string"
]
{- "records": [
- {
- "id": "9a1dc856-6e2d-4dbe-98cf-5416c5981bbc",
- "success": true
}, - {
- "id": "eafb1e30-4af8-480e-b7b5-487293659df3",
- "success": true
}
], - "count": 2
}
Use this API endpoint to update an existing collection category
OK response.
{- "name": "string",
- "description": "string",
- "is_predefined": true,
- "enabled": true
}
{- "id": "cb147922-a0c2-4563-b3fe-f1e67aa7eb4c",
- "name": "Testing Team",
- "description": "This is an updated description for the collection category",
- "is_predefined": true,
- "enabled": true
}
Delete an existing collection category
OK response.
curl -X DELETE 'https://app.harness.io/gratis/sei/api/v1/org/categories/{id}' \ -H 'Content-Type: application/json' \ -H 'Authorization: APIKEY <HARNESS_SEI_API_KEY>'
{- "records": [
- {
- "id": "9a2c246b-4468-4888-8371-43fae8473296",
- "success": true
}
], - "count": 1
}