---
title: "Apply a service"
method: POST
path: "/{account}/domains/{domain}/services/{service}"
tags: ["domain services"]
---

# Apply a service

`POST /{account}/domains/{domain}/services/{service}`

## Request

- Base URL: `https://api.dnsimple.com/v2`
- URL: `https://api.dnsimple.com/v2/{account}/domains/{domain}/services/{service}`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
- TypeScript: <https://skmtc.dev/dnsimple/apis/dnsimple-api/docs/:account/domains/:domain/services/:service/post.ts> (a function with typed inputs; its response is checked against the schema)

Applies a service to a domain.

## Path parameters

- `account` integer, required
- `domain` string, required
- `service` string, required

## Request body

- object

## Response `204`

Successfully applied a service to a domain.

## Other responses

- `400`: A required parameter is missing or the request is invalid.
- `404`: The requested resource doesn't exist.

## Changes

- **2025-07-11** (v2) `06780be0ef17`: 3 info
  - the response property `errors` became required for the status `400`
  - the response property `message` became required for the status `400`
  - the response property `message` became required for the status `404`
- **2023-07-18** (v2) `c8591dcf8c29`: 3 breaking
  - the response property `errors` became optional for the status `400`
  - the response property `message` became optional for the status `400`
  - the response property `message` became optional for the status `404`

[Operation history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/domains/:domain/services/:service/post.md)

---

[API](https://skmtc.dev/dnsimple/apis/dnsimple-api.md) - [All operations](https://skmtc.dev/dnsimple/apis/dnsimple-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dnsimple/apis/dnsimple-api/revisions/2d2e7a8fb60a?raw)
