---
schema_version: "1"
id: 91eab76bff47fdb4a2342634cab3fa0bde757634d468d44762e81da66808d369
title: sObject Relationships
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-rest/guides/resources/resources-sobject-relationships.md
canonical_url: https://developer.salesforce.com/docs/platform/api-rest/guide/resources-sobject-relationships.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: fb5b01e59c6399e0b8b32f9a85abdc01a382169efd9b6c7cd6000e35aea64588
products:
  - REST API Developer Guide
  - Platform Developer Content
---

# sObject Relationships

Accesses records by traversing object relationships via friendly URLs. You can retrieve, update, or delete the record associated with the traversed relationship field. If there are multiple related records, you can retrieve the complete set of associated records. This resource is available in REST API version 36.0 and later.

-   **[Get Records Using sObject Relationships](https://developer.salesforce.com/docs/platform/api-rest/guide/resources-sobject-relationships-get.md)**  


    Gets a record based on the specified object, record ID, and relationship field. The fields and field values of the record are returned in the response body. If there are multiple related records, you can retrieve the complete set of associated records.

-   **[Update Records Using sObject Relationships](https://developer.salesforce.com/docs/platform/api-rest/guide/resources-sobject-relationships-patch.md)**  


    Updates a parent record based on the specified object, record ID, and relationship field name. Field values provided in the request body replace the existing values in the record. Only a child-to-parent relationship can be traversed when you update records.

-   **[Delete Records Using sObject Relationships](https://developer.salesforce.com/docs/platform/api-rest/guide/resources-sobject-relationships-delete.md)**  


    Deletes a parent record based on the specified object, record ID, and relationship field name. Only a child-to-parent relationship can be traversed when you delete records.


