v1

latestOpenAPI 3.0.32026-07-24198357534.7 KB
Data Enhancement

Do update the setting

Replaces the CompletenessSetting resource.

put/completenesses/settings/{id}

Path parameters

idstring required

Resource identifier

Request body

colorstring required
fieldsstring[]

This is an array of field identifiers.

attributesobject[]

This is an array of field identifiers. The field "attributeSet" is deprecated and will be removed after the 2023-10-15

Example request

{
  "color": "#4DABF7",
  "fields": [
    "name",
    "web_description"
  ],
  "attributes": [
    {
      "id": "name",
      "attributeSet": null
    },
    {
      "id": "web_description",
      "attributeSet": {
        "id": "chaussures"
      }
    }
  ],
  "linkTypes": {
    "minimum": 1
  },
  "description": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  },
  "name": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  }
}

Response

CompletenessSetting resource updated

colorstring required
fieldsstring[]

This is an array of field identifiers.

attributesobject[]

This is an array of field identifiers. The field "attributeSet" is deprecated and will be removed after the 2023-10-15

legacyIdinteger
idstring required

This is the unique identifier of the resource

documentTypeCodestring required

This is the unique identifier of the document type that the resource should be apply to

dateModifiedstring date-time nullable

This is an ISO datetime

dateCreatedstring date-time nullable

This is an ISO datetime

Example response

{
  "color": "#4DABF7",
  "fields": [
    "name",
    "web_description"
  ],
  "attributes": [
    {
      "id": "name",
      "attributeSet": null
    },
    {
      "id": "web_description",
      "attributeSet": {
        "id": "chaussures"
      }
    }
  ],
  "linkTypes": {
    "minimum": 1
  },
  "id": "identifier_example",
  "documentTypeCode": "document_type_example",
  "description": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  },
  "name": {
    "fr-FR": "fr-FR translation",
    "en-US": "en-US translation",
    "<*>": "..."
  }
}