These example POSTS are for create service calls using Web API v2.
Operator |
Description |
Example |
---|---|---|
Create |
Create an object This example creates an SPFFolder object in v2 using the objects endpoint |
POST . . /api/v2/Objects { "Name": "MyFolder", "Class": "SPFFolder", "UID": "MyFolderUID" } |
Create Object and Rel |
Create an object and relationship This example creates a column-set and relates it to an existing column-item in v2 |
POST . . api/v2/Objects { "Name": "MyColumnSet", "Class": "SPFColumnSet", "SPFColumnSetColumnItem_12@odata.bind": "/SPFServer/api/v2/Objects('** Your Identifier **')" } |
Create Rel with property on it (Available in Update 13) or Update the property on existing Rel (Available in Update 14) |
Create the link properties on the relationship |
POST . . /api/v2/SDA/Objects('** Your Identifier **')/SPFColumnSetColumnItem_21/$ref { "@odata.id":" . . /api/v2/SDA/Objects('** Your Identifier **')", "@rel.SPFColumnDisplayAs":"Description2", "@rel.OrderValue":"126" } |