Update an Entry Relationship
PUT/v2/flows/:flowSlug/entries/:flowEntryID/relationships/:flowFieldSlug
- In Commerce, updates an entry relationship to one or more resources. If any relationships already exist, the ones made in the request are added to them.
 - In Product Experience Manager, updates an entry relationship with the product to which you want to associate the template.
 
Request
Path Parameters
The slug of the flow/template that the entry belongs to.
The slug of the field/attribute that the relationship belongs to.
The ID of the entry you are requesting.
- application/json
 
Body
required
- Array [
 - ]
 
data object[]
The data to be stored.
A unique identifier for a resource.
The resource type of the object.
Responses
- 201
 - 404
 - 422
 - 500
 
Created
- application/json
 
- Schema
 - Example (from schema)
 - default
 
Schema
- Array [
 - ]
 
data object[]
A unique identifier for a resource.
Represents the type of object being returned.
{
  "data": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "type": "brand"
    }
  ]
}
{
  "data": [
    {
      "type": "brand",
      "id": "0d28e5b6-f615-4e1c-b038-275cfde97927"
    }
  ]
}
Bad request. Not Found.
- application/json
 
- Schema
 - Example (from schema)
 - internal-server-error
 
Schema
- Array [
 - ]
 
errors Error[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Internal request ID.
Additional supporting meta data for the error.
{
  "errors": [
    {
      "status": 500,
      "title": "Internal server error",
      "detail": "An internal error has occurred.",
      "request_id": "00000000-0000-0000-0000-000000000000",
      "meta": {
        "missing_ids": [
          "e7d50bd5-1833-43c0-9848-f9d325b08be8"
        ]
      }
    }
  ]
}
{
  "errors": [
    {
      "title": "Not Found",
      "status": 404
    }
  ]
}
Bad request. The request failed validation.
- application/json
 
- Schema
 - Example (from schema)
 - missing-name
 
Schema
- Array [
 - ]
 
errors Error[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Internal request ID.
Additional supporting meta data for the error.
{
  "errors": [
    {
      "status": 500,
      "title": "Internal server error",
      "detail": "An internal error has occurred.",
      "request_id": "00000000-0000-0000-0000-000000000000",
      "meta": {
        "missing_ids": [
          "e7d50bd5-1833-43c0-9848-f9d325b08be8"
        ]
      }
    }
  ]
}
{
  "errors": [
    {
      "title": "Validation Error",
      "status": 400,
      "detail": "data.attributes.name: \"name\" is required"
    }
  ]
}
Internal server error. There was a system failure in the platform.
- application/json
 
- Schema
 - Example (from schema)
 - internal-server-error
 
Schema
- Array [
 - ]
 
errors Error[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Internal request ID.
Additional supporting meta data for the error.
{
  "errors": [
    {
      "status": 500,
      "title": "Internal server error",
      "detail": "An internal error has occurred.",
      "request_id": "00000000-0000-0000-0000-000000000000",
      "meta": {
        "missing_ids": [
          "e7d50bd5-1833-43c0-9848-f9d325b08be8"
        ]
      }
    }
  ]
}
{
  "errors": [
    {
      "status": 500,
      "title": "Internal Server Error",
      "detail": "There was an internal server error, you can report with your request id.",
      "request_id": "635da56d-75a1-43cd-b696-7ab119756b3a"
    }
  ]
}