SFDC-MC-REST-Style-Guide
SFDC-MC-REST-Style-Guide copied to clipboard
We must provide a style for identifying resources with Composite Key (e.g. Data Extensions)
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
{
}
Still working on this issue.
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