> For the complete documentation index, see [llms.txt](https://prosbcdocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prosbcdocs.telcobridges.com/tmedia-documentation/configuration/add-edit-lawful-intercept-file-with-restful-api.md).

# Add/Edit Lawful Intercept file with RestFul API

You can use the Add/Edit Lawful Intercept file in your system with RestFul API using JSON format. The JSON format must be the following:

{ "***meta***": { "version": "3.1.135", "src\_path": "" }, "name": "lawful\_intercept.csv", "content": "liid,number,start,end\r\nJohn Smith,5550001,2012-10-24T00:00:00-05:00,2012-10-24T23:59:59-05:00\r\nJoe Dalton,14503333007,2012-01-01T00:00:00-05:00,2012-12-31T23:59:59-05:00" }

* name: lawful intercept file name
* \r\n: new line. Each digit/digits you entered must start with the new line.

### Adding a new Lawful Intercept File

You can add a new Lawful Intercept file with the POST command:

POST <http://192.168.1.26:12358/configurations/test\\_config/file\\_dbs/File\\_DB/law\\_enforcement\\_targets/>

ProSBC will create a new Lawful Intercept file from the name in the JSON file.

Example: We use the Postman tool in this example and the URL is:

<http://192.168.1.26:12358/configurations/test\\_config/file\\_dbs/File\\_DB/law\\_enforcement\\_targets/>

![LI Post Send](https://docs.telcobridges.com/w/images/2/20/LI_Post_Send.png)

If the import is successful you will see the following information in the Postman Tool

![LI Post Response](https://docs.telcobridges.com/w/images/3/3b/LI_Post_Response.png)

### Updating a Lawful Intercept File

You can update the existing Lawful Intercept file with the PUT command:

PUT <http://192.168.1.26:12358/configurations/test\\_config/file\\_dbs/File\\_DB/law\\_enforcement\\_targets/lawful\\_intercept\\_1%2Ecsv>

Example: We use the Postman tool in this example and the URL is <http://192.168.1.26:12358/configurations/test\\_config/file\\_dbs/File\\_DB/law\\_enforcement\\_targets/lawful\\_intercept\\_1%2Ecsv>

![LI Put Send](https://docs.telcobridges.com/w/images/4/46/LI_Put_Send.png)

If the update is successful you will see the following information in the Postman Tool

![LI Put Response](https://docs.telcobridges.com/w/images/c/c8/LI_Put_Response.png)

You can get more information about how to use RestFul API and Postman Tool from the following link [Northbound\_interface:RESTful](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/api/northbound-interface-restful-api/README.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://prosbcdocs.telcobridges.com/tmedia-documentation/configuration/add-edit-lawful-intercept-file-with-restful-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
