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