---
title: "Update a single resource - LinkType"
method: PUT
path: "/link-types/{id}"
tags: ["Data Model"]
---

# Update a single resource - LinkType

`PUT /link-types/{id}`

Replaces the LinkType resource.

## Path parameters

- `id` string, required

## Request body

- LinkTypeLinkTypeInputLinkTypeInputUpdate
  - `name` LanguageTranslation — This structure does accept key & values where key has to be a language code configured in your PIM & the value is the value for this field in this language.
    - `fr-FR` string
    - `en-US` string
  - `priority` integer — This defines the priority of the link.
  - `maxItems` integer, nullable — This defines the maximum number of items that will be accepted while creating links. If null, an infinite number of items will be accepted.

## Response `200`

LinkType resource updated

- LinkTypeLinkTypeOutputLinkTypeOutput
  - `legacyId` integer
  - `name` LanguageTranslation — This structure does accept key & values where key has to be a language code configured in your PIM & the value is the value for this field in this language.
    - `fr-FR` string
    - `en-US` string
  - `priority` integer — This defines the priority of the link.
  - `maxItems` integer, nullable — This defines the maximum number of items that will be accepted while creating links. If null, an infinite number of items will be accepted.
  - `origin` LinkTypeOriginRelationOutputLinkTypeOutput
    - `objectType` 'document' — This defines the linked object type
    - `documentType` DocumentTypeLinkTypeOutput
      - `id` string, required — This is the unique identifier of the resource
  - `target` LinkTypeTargetRelationOutputLinkTypeOutput
    - `objectType` 'asset' | 'document' — This defines the linked object type
    - `documentType` DocumentTypeLinkTypeOutput
      - `id` string, required — This is the unique identifier of the resource
  - `status` string
  - `dateCreated` string, date-time, nullable — This is an ISO datetime
  - `dateModified` string, date-time, nullable — This is an ISO datetime
  - `maxCountLinksByOrigin` integer
  - `id` string — This is the unique identifier of the resource

## Other responses

- `400` — Invalid input
- `404` — Resource not found
- `422` — Unprocessable entity

---

[API](https://skmtc.dev/quable/apis/quable-pim-api-documentation-v5.md) · [All operations](https://skmtc.dev/quable/apis/quable-pim-api-documentation-v5/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/quable/quable-pim-api-documentation-v5/revisions/1641096abb34/schema)
