# Update service application

Source: https://next.coolify.io/docs/api/endpoints/service-applications/patch-service-application-by-service-and-app-uuid

## PATCH /services/{uuid}/applications/{app_uuid}

Update service application

Update fields for a compose service application. Use `url` for comma-separated public URLs (same rules as `urls[].url` on PATCH /services/{uuid}).

**Authentication:** Bearer token (`bearerAuth`)

### Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| uuid | path | yes | string | Service UUID. |
| app_uuid | path | yes | string | Service application UUID. |
| force_domain_override | query | no | boolean | When true, allow duplicate URLs in the request and proceed despite domain conflicts (same as service PATCH). |

### Request body

`application/json`, optional.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| url | string or null | no | Comma-separated list of URLs (e.g. "http://app.example.com:8080,https://app2.example.com"). Stored as fqdn. |
| noindex_domains | array of string or null | no | The subset of the service application domains served with an X-Robots-Tag: noindex, nofollow response header, keeping them out of search engines. Entries that are not among the domains are ignored. |
| human_name | string or null | no |  |
| description | string or null | no |  |
| image | string or null | no |  |
| exclude_from_status | boolean or null | no |  |
| is_log_drain_enabled | boolean or null | no |  |
| is_gzip_enabled | boolean or null | no |  |
| traefik_certificate_resolver | string or null | no | Traefik certificate resolver for this service application. Null uses the server setting, "none" uses no resolver. |
| is_stripprefix_enabled | boolean or null | no |  |
| is_force_https_enabled | boolean or null | no |  |
| is_permanent_redirect_enabled | boolean or null | no | Use permanent redirects (301/308) instead of temporary (302/307) for the HTTP to HTTPS and www redirects. Defaults to false. |
| redirect | string enum "both", "www", "non-www" | no | How to handle www and non-www domains. "www" redirects non-www to www, "non-www" redirects www to non-www. Both need a www and a non-www domain in url. |
| max_restart_count | integer or null | no | Maximum Docker restart count before Coolify stops the container. Set to 0 to disable the limit. |

### Responses

#### 200

Updated service application.

`application/json`: object

Type: object

#### 401

Unauthenticated.

`application/json`: object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| message | string | no |  |

#### 404

Resource not found.

`application/json`: object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| message | string | no |  |

#### 409

Domain conflicts (unless force_domain_override).

#### 422

Validation error.

`application/json`: object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| message | string | no |  |
| errors | object | no |  |
