Update an object link type

patch

/crmRestApi/resources/11.13.18.05/objectLinkTypes/{LinkTypeNumber}

Request

Path Parameters
  • The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Enabled
    Maximum Length: 1
    Default Value: true
    Indicates whether the link type can be used to create object links with.
  • Title: Inward Value
    Maximum Length: 80
    The display value of the inward lookup code.
  • Title: Name
    Maximum Length: 400
    A descriptive name for the link type.
  • Title: Outward Value
    Maximum Length: 80
    The display value of the outward lookup code.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : objectLinkTypes-item-response
Type: object
Show Source
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created the row.
  • Title: Creation Date
    Read Only: true
    The date when the row was created.
  • Read Only: true
    Indicates if the user can delete the record.
  • Title: Enabled
    Maximum Length: 1
    Default Value: true
    Indicates whether the link type can be used to create object links with.
  • Title: Inward
    Maximum Length: 30
    The lookup code that describes the inward direction of a link type. This field is auto generated from the value provided for short name.
  • Title: Inward Value
    Maximum Length: 80
    The display value of the inward lookup code.
  • Title: Last Updated Date
    Read Only: true
    The date when the object link type was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the object link type.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    The login of the user who last updated the row.
  • Links
  • Title: Link Type ID
    Read Only: true
    The link type identifier.
  • Title: Link Type Number
    Maximum Length: 64
    The reference number of the object link type.
  • Title: Name
    Maximum Length: 400
    A descriptive name for the link type.
  • Title: Outward
    Maximum Length: 30
    Lookup code that describes the outward direction of a link type. This field is auto generated from the value provided for short name.
  • Title: Outward Value
    Maximum Length: 80
    The display value of the outward lookup code.
  • Title: Short Name
    Maximum Length: 20
    A unique name for the link type. The outward and inward codes are auto generated based on the short name.
  • Read Only: true
    Indicates if the user can update the record.
Back to Top

Examples

The following example shows how to update an object link type by submitting a patch request on the REST resource using cURL.

cURL Command

curl -u <username:password> \ -X PATCH https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/objectLinkTypes/{LinkTypeNumber}

Example of Request Body

The following shows an example of the request body in JSON format.

{
    "Name": "Alpha Object Link Type",
    "EnabledFlag": false
}

Example of Response Body

The following shows an example of the response body in JSON format.

{
    "LinkTypeId": 300100548010602,
    "LinkTypeNumber": "CDRM_4006",
    "Name": "Alpha Object Link Type",
    "ShortName": "BETA",
    "OutwardCd": "BETA",
    "InwardCd": "BETA_I",
    "EnabledFlag": false,
    "CreationDate": "2021-08-19T05:46:43+00:00",
    "CreatedBy": "MHoope",
    "LastUpdateDate": "2021-08-19T05:50:13+00:00",
    "LastUpdatedBy": "MHoope",
    "LastUpdateLogin": "C9911F1C4349AE2CE0531C5CF00A83C4",
    "OutwardCdMeaning": "Beta Relation",
    "InwardCdMeaning": "Beta Inverse Relation",
    "UpdateFlag": true,
    "DeleteFlag": true,
    "links": [
        {
            "rel": "self",
            "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/objectLinkTypes/CDRM_4006",
            "name": "objectLinkTypes",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/objectLinkTypes/CDRM_4006",
            "name": "objectLinkTypes",
            "kind": "item"
        }
    ]
}
Back to Top