Audit Category
Get Category list
Retrieves all category records for an organization from the database.
GET
API_URL/api/audit/category
HEADERS
client_id 9b16ae5638534ae1961fb370f874b6cc*
client_secret sk_9b16ae5638534ae1961fb370f874b6cc*
{
"status": 200,
"result": [
{
"id": 1,
"organisation_id": 1,
"name": "test Izz",
"is_active": 1,
"created_at": "2024-03-01T06:54:15.000000Z",
"updated_at": "2024-03-01T06:54:15.000000Z",
"deleted_at": null
},
{
"id": 2,
"organisation_id": 1,
"name": "test Izz",
"is_active": 1,
"created_at": "2024-03-01T06:54:28.000000Z",
"updated_at": "2024-03-01T06:54:28.000000Z",
"deleted_at": null
}
]
}
Get Category by ID
Retrieves a specific organisation category record by its ID from the database.
GET
API_URL/api/audit/category/{id}
HEADERS
client_id 9b16ae5638534ae1961fb370f874b6cc*
client_secret sk_9b16ae5638534ae1961fb370f874b6cc*
{
"status": 200,
"result": {
"id": 1,
"organisation_id": 1,
"name": "test Izz",
"is_active": 1,
"created_at": "2024-03-01T06:54:15.000000Z",
"updated_at": "2024-03-01T06:54:15.000000Z",
"deleted_at": null
}
}
Create Category
Creates a category by organisation id and storing it in MasChain.
POST
API_URL/api/audit/category
HEADERS
client_id 9b16ae5638534ae1961fb370f874b6cc*
client_secret sk_9b16ae5638534ae1961fb370f874b6cc*
content-type application/json
BODY
Name | Type | Required |
---|---|---|
name | string | Yes |
{
"name":"test Izz"
}
{
"status": 200,
"result": {
"organisation_id": 1,
"name": "test Izz",
"updated_at": "2024-03-01T06:54:28.000000Z",
"created_at": "2024-03-01T06:54:28.000000Z",
"id": 2
}
}
Update Category
Update category by id and store to db.
PUT
API_URL/api/audit/category/{id}
HEADERS
client_id 9b16ae5638534ae1961fb370f874b6cc*
client_secret sk_9b16ae5638534ae1961fb370f874b6cc*
content-type application/json
BODY
Name | Type | Required |
---|---|---|
name | string | Yes |
{
"name":"Jason Izz"
}
{
"status": 200,
"result": {
"organisation_id": 1,
"name": "Jason Izz",
"updated_at": "2024-03-01T06:54:28.000000Z",
"created_at": "2024-03-01T06:54:28.000000Z",
"id": 2
}
}
Activate Category
Activate category by id.
PUT
API_URL/api/audit/category/{id}/activate
HEADERS
client_id 9b16ae5638534ae1961fb370f874b6cc*
client_secret sk_9b16ae5638534ae1961fb370f874b6cc*
{
"status": 200,
"result": {
"id": 2,
"organisation_id": 1,
"name": "Jason Izz",
"is_active": 1,
"created_at": "2024-03-01T06:54:28.000000Z",
"updated_at": "2024-03-01T06:56:26.000000Z",
"deleted_at": null
}
}
Deactivate Category
Deactivate category by id.
PUT
API_URL/api/audit/category/{id}/deactivate
HEADERS
client_id 9b16ae5638534ae1961fb370f874b6cc*
client_secret sk_9b16ae5638534ae1961fb370f874b6cc*
{
"status": 200,
"result": {
"id": 2,
"organisation_id": 1,
"name": "Jason Izz",
"is_active": 0,
"created_at": "2024-03-01T06:54:28.000000Z",
"updated_at": "2024-03-01T06:56:26.000000Z",
"deleted_at": null
}
}
Delete Category
Delete category by id.
DELETE
API_URL/api/audit/delete-category/{id}
HEADERS
client_id 9b16ae5638534ae1961fb370f874b6cc*
client_secret sk_9b16ae5638534ae1961fb370f874b6cc*
{
"status": 200,
"result": "Success"
}