# Update service links

Updates service configuration including:
- Team Member assignments with custom duration and pricing
- Technological cards for each Team Member
- Required resources for the service
- Service name translations for different languages

This endpoint allows bulk updating of service-Team Member relationships
without affecting other service properties.

Endpoint: POST /locations/{location_id}/services/links
Version: 1.0.0
Security: BearerPartnerUser

## Security:

  - `BearerPartnerUser` (unknown)
    http bearer Bearer {PartnerToken}, User {UserToken}

## Path parameters:

  - `location_id` (integer, required)
    Location ID

## Header parameters:

  - `Accept` (string, required)

  - `Content-Type` (string, required)

  - `Authorization` (string, required)
    Bearer {partner_token}, User {user_token}

## Request fields (application/json):

  - `service_id` (integer, required)
    Service ID to update
    Example: 10832939

  - `master_settings` (array, required)
    Team Members providing this service, with duration and technological card settings.
`master_settings` is the literal legacy top-level wire field.

  - `master_settings.master_id` (integer)
    Team Member ID. `master_id` is the required legacy nested wire field;
nested request aliases are not expanded.
    Example: 2033728

  - `master_settings.technological_card_id` (integer)
    Technological card ID for this Team Member's service delivery
    Example: 291341

  - `master_settings.hours` (integer)
    Service duration hours
    Example: 0

  - `master_settings.minutes` (integer)
    Service duration minutes
    Example: 45

  - `master_settings.price` (any)

  - `master_settings.price.min` (number)
    Minimum price ("from" price)
    Example: 999.99

  - `master_settings.price.max` (any)
    Maximum price ("to" price), null for fixed price
    Example: null

  - `resource_ids` (array, required)
    List of resource IDs required to provide this service
    Example: [62173]

  - `translations` (array, required)
    Service name translations for different languages

  - `translations.language_id` (integer)
    Language ID
    Example: 2

  - `translations.translation` (string)
    Translated service name (empty string to clear)
    Example: Massage

## Response 200:

  - `200` (unknown)
    Service links updated successfully. The response body is empty.

## Response 400:

  - `400` (unknown)
    Bad request - invalid parameters

## Response 400 fields (application/json):

  - `success` (boolean)
    Example: false

  - `data` (null)

  - `meta` (object)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `success` (boolean)
    Example: false

  - `data` (null)

  - `meta` (object)

## Response 403:

  - `403` (unknown)
    Forbidden - insufficient permissions

## Response 403 fields (application/json):

  - `success` (boolean)
    Example: false

  - `data` (null)

  - `meta` (object)

## Response 404:

  - `404` (unknown)
    Service or location not found

## Response 404 fields (application/json):

  - `success` (boolean)
    Example: false

  - `data` (null)

  - `meta` (object)

## Response 422:

  - `422` (unknown)
    Validation error

## Response 422 fields (application/json):

  - `success` (boolean)
    Example: false

  - `data` (null)

  - `meta` (object)

  - `meta.message` (string)

  - `meta.errors` (object)

