Skip to main content

Update typeOneResource relationship

PATCH 

https://apis.<domain>/resources/typeOneResources/:id/relationships/:related_field/

Authorization: http

name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`

Update a typeTwoResource associated with the typeOneResource.

Authorization Action:

resource:typeTwoResources:update

Request

Path Parameters

    id stringrequired

    Globally unique ids (UUID4)

    related_field stringrequired

Body

    data objectrequired
    oneOf
  • Array [
  • type typerequired

    The type member is used to describe resource objects that share common attributes and relationships.

    id idrequired

    Each resource object’s type and id pair MUST identify a single, unique resource.

    meta object
    property name* any
  • ]

Responses

Schema
    data objectrequired
    oneOf
  • Array [
  • type typerequired

    The type member is used to describe resource objects that share common attributes and relationships.

    id idrequired

    Each resource object’s type and id pair MUST identify a single, unique resource.

    meta object
    property name* any
  • ]
  • included object[]
  • Array [
  • type typerequired

    The type member is used to describe resource objects that share common attributes and relationships.

    id idrequired

    Each resource object’s type and id pair MUST identify a single, unique resource.

    attributes object
    relationships object
    links object
    oneOf
    title
    meta object
    property name* any
  • ]
  • links object
    first object
    oneOf
  • string uri-reference
  • last object
    oneOf
  • string uri-reference
  • prev object
    oneOf
  • string uri-reference
  • next object
    oneOf
  • string uri-reference
  • oneOf
    title
    jsonapi object

    The server's implementation

    version string
    meta object
    property name* any
curl -L -X PATCH 'https://apis.<domain>/resources/typeOneResources/:id/relationships/:related_field/' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"data": {}
}'
Request Collapse all
Base URL
https://apis.<domain>
Auth
Parameters
— pathrequired
— pathrequired
Body
{
"data": {}
}