> For the complete documentation index, see [llms.txt](https://incubiq.gitbook.io/opensourceais/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://incubiq.gitbook.io/opensourceais/apis/client-apps/update-notification-params.md).

# Update notification params

An authenticated client can update its domain, Notify URI, or upload URI.

## Use this call after authentication, to update your domain, uriNotify, or uriUpload callback APIs

<mark style="color:purple;">`PATCH`</mark> `https:opensourceAIs.com/api/v1/private/client/notify`

When calling an AI, you get an immediate response with a "uid" confirming that your request is being processed. However, as the processing can take a rather long time, the way to get back information from the AI is via notifications. Through opensourceAIs.com, the AI will call you back on your domain and on your registered URIs (notify and upload).

#### Request Body

| Name      | Type   | Description                                                                           |
| --------- | ------ | ------------------------------------------------------------------------------------- |
| domain    | String | Your domain name (eg: test.com)                                                       |
| uriNotify | String | the URI where you want notifications to be sent (eg: api/v1/test/notify)              |
| uriUpload | String | the URI where you want AI generated image uploads to be sent (eg: api/v1/test/upload) |

{% tabs %}
{% tab title="200: OK Confirmation that your update was accepted" %}

```json
{
    "data": {
        "token": "a641d656af7ccc38cd34baac87e5f978dc2",
        "domain": "http://test.com",
        "uriNotify": "api/v1/public/notify",
        "uriUpload": "api/v1/public/upload",
        "created_at": "2023-02-16T12:48:31.000Z",
        "lastUpdated_at": "2023-03-08T17:52:30.000Z",
        "validated_at": "2023-03-08T17:52:02.000Z"
    }
}
```

{% endtab %}

{% tab title="400: Bad Request Needs at least some params to change" %}

```json
{
    "data": null,
    "status": 400,
    "message": "at least domain, or uriNotify or uriUpload required"
}
```

{% endtab %}
{% endtabs %}
