SFDC-MC-REST-Style-Guide icon indicating copy to clipboard operation
SFDC-MC-REST-Style-Guide copied to clipboard

We must provide a style for identifying resources with Composite Key (e.g. Data Extensions)

Open sprshrp opened this issue 10 years ago • 2 comments

We need to agree upon a style for identifying resources with a composite key, e.g. Data Extensions.

As an example, a Data Extension is a schema object, representing the types of data the live within it.

A Data Extension Row is an object that meets a Data Extensions Schema.

In the following example, let's assume we have:

  • A data extension called Westerosi, which is composed of the following schema:
    • House
    • First Name
    • Last Name
  • Several records of Westerosi

I must be able to :

  • Perform CRUD operations on Westerosi Schema (for example, cause of death)
  • Perform CRUD operations on Westerosi records

A few examples

POST /v4/metadata/extensions

{
    name : "westerosi"
}
201 Created
{
    name : "westerosi" 
    id : "abc123"
}

#WORK IN PROGRESS

POST /v4/metadata/extensions/westerosi
OR
POST /v4/metadata/extensions/abc123
{

}


sprshrp avatar Jun 18 '15 23:06 sprshrp

Still working on this issue.

sprshrp avatar Jun 18 '15 23:06 sprshrp

Seems simple to my mind

To create/update/delete rows in data extension /v4/content/extensionsData/westerosi

To create/update/modify/delete the data extension /v4/content/extensionsMetadata/westerosi

Extending to a "worse case example"

/v4/content/extensionsMetadata/westerosi/action /renameColumn?from=name&to=fullName

aroden-salesforce avatar Jun 20 '15 01:06 aroden-salesforce