# Create and deploy profiles (REST API)

Type of document: How-to guide
Product: NGINX Instance Manager
> Create and upload a new F5 WAF for NGINX security log profile to F5 NGINX Instance Manager using the REST API.

---


You can create and upload new F5 WAF for NGINX security log profiles using the F5 NGINX Instance Manager REST API.

A log profile defines how security events are recorded and exported from your NGINX instances.

To upload a log profile, send a `POST` request to the Security Log Profiles API endpoint. The log profile must be encoded in `base64`; sending plain JSON causes the request to fail.

**Note:** 
Use tools such as `curl` or [Postman](https://www.postman.com) to send requests to the NGINX Instance Manager REST API.
The API base URL is `https://<NIM-FQDN>/api/[nim|platform]/<API_VERSION>`.  
All requests require authentication. For details on authentication methods, see the [API overview](/nim/fundamentals/api-overview.md).

| Method | Endpoint                                |
|--------|-----------------------------------------|
| POST   | `/api/platform/v1/security/logprofiles` |

Example:

```shell
curl -X POST https://<NIM_FQDN>/api/platform/v1/security/logprofiles \
    -H "Authorization: Bearer <access token>" \
    -d @default-log-example.json
```

<details open>
<summary>JSON Request</summary>

```json
{
  "metadata": {
    "name": "default-log-example"
  },
  "content": "Cgl7CgkJImZpbHRlciI6IHsKCQkJInJlcXVlc3RfdHlwZSI6ICJpbGxlZ2FsIgoJCX0sCgkJImNvbnRlbnQiOiB7CgkJCSJmb3JtYXQiOiAiZGVmYXVsdCIsCgkJCSJtYXhfcmVxdWVzdF9zaXplIjogImFueSIsCgkJCSJtYXhfbWVzc2FnZV9zaXplIjogIjVrIgoJCX0KCX0="
}
```

</details>

<details open>
<summary>JSON Response</summary>

```json
{
  "metadata": {
    "created": "2023-07-05T22:09:19.634358096Z",
    "externalIdType": "",
    "modified": "2023-07-05T22:09:19.634358096Z",
    "name": "default-log-example",
    "revisionTimestamp": "2023-07-05T22:09:19.634358096Z",
    "uid": "<log-profile-uid>"
  },
  "selfLink": {
    "rel": "/api/platform/v1/security/logprofiles/<log-profile-uid>"
  }
}
```

