Skip to main content

Update a custom relationship

PUT 

/pcm/custom_relationships/:customRelationshipSlug

Specify whichever attributes you want to change. The values of the other attributes remain the same. If the attributes section is empty, the custom relationship is not updated.

Request

Path Parameters

    customRelationshipSlug stringrequired

    A custom relationship slug.

Body

required
    data objectrequired
    id stringrequired

    The unique identifier of the custom relationship.

    type stringrequired

    Possible values: [custom-relationship]

    This represents the type of resource object being returned. Always custom-relationship.

    attributes objectrequired
    name string

    The name of the custom relationship, such as Kitchen electrics.

    description string

    A description of the custom relationship.

    slug string

    A unique slug for the custom relationship. Must match the slug specified in the request path.

Responses

Successfully returns the updated custom relationship

Schema
    data object
    id string

    A unique identifier generated when a custom relationship is created.

    type string

    Possible values: [custom-relationship]

    This represents the type of resource object being returned. Always hierarchy.

    attributes object
    name string

    The name of the custom relationship, such as Kitchen electrics.

    description string

    A description of the custom relationship.

    slug string

    A unique slug for the custom relationship.

    meta object
    owner string

    The owner of the resource.

    timestamps object
    created_at date-time

    The date and time the resource is created.

    updated_at date-time

    The date and time the resource is updated.

Loading...