POST data/{name}

Add new data record.

Request Information

URI

https://ofd-api.blueprintcpq.net/data/{name}?share={share}

URI Parameters

NameDescriptionTypeAdditional information
name

Page name.

string

Required

share

Optional share identifier.

globally unique identifier

None.

Body Parameters

Record to add.

Collection of SectionData
NameDescriptionTypeAdditional information
Section

string

None.

Locked

boolean

None.

CurrencyField

globally unique identifier

None.

Data

Collection of DataValue

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Section": "sample string 1",
    "Locked": true,
    "CurrencyField": "bab5c4c2-b1ed-43b0-94c6-68e9a061f0d8",
    "Data": [
      {
        "Field": "e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015",
        "FieldName": "sample string 2",
        "Locked": true,
        "Component": "sample string 4",
        "Value": {},
        "HumanReadableValue": {}
      },
      {
        "Field": "e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015",
        "FieldName": "sample string 2",
        "Locked": true,
        "Component": "sample string 4",
        "Value": {},
        "HumanReadableValue": {}
      }
    ]
  },
  {
    "Section": "sample string 1",
    "Locked": true,
    "CurrencyField": "bab5c4c2-b1ed-43b0-94c6-68e9a061f0d8",
    "Data": [
      {
        "Field": "e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015",
        "FieldName": "sample string 2",
        "Locked": true,
        "Component": "sample string 4",
        "Value": {},
        "HumanReadableValue": {}
      },
      {
        "Field": "e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015",
        "FieldName": "sample string 2",
        "Locked": true,
        "Component": "sample string 4",
        "Value": {},
        "HumanReadableValue": {}
      }
    ]
  }
]

text/html

Sample:
[{"Section":"sample string 1","Locked":true,"CurrencyField":"bab5c4c2-b1ed-43b0-94c6-68e9a061f0d8","Data":[{"Field":"e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015","FieldName":"sample string 2","Locked":true,"Component":"sample string 4","Value":{},"HumanReadableValue":{}},{"Field":"e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015","FieldName":"sample string 2","Locked":true,"Component":"sample string 4","Value":{},"HumanReadableValue":{}}]},{"Section":"sample string 1","Locked":true,"CurrencyField":"bab5c4c2-b1ed-43b0-94c6-68e9a061f0d8","Data":[{"Field":"e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015","FieldName":"sample string 2","Locked":true,"Component":"sample string 4","Value":{},"HumanReadableValue":{}},{"Field":"e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015","FieldName":"sample string 2","Locked":true,"Component":"sample string 4","Value":{},"HumanReadableValue":{}}]}]

application/xml, text/xml

Sample:
<ArrayOfSectionData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Models.DataModels">
  <SectionData>
    <CurrencyField>bab5c4c2-b1ed-43b0-94c6-68e9a061f0d8</CurrencyField>
    <Data>
      <DataValue>
        <Component>sample string 4</Component>
        <Field>e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015</Field>
        <FieldName>sample string 2</FieldName>
        <HumanReadableValue />
        <Locked>true</Locked>
        <Value />
      </DataValue>
      <DataValue>
        <Component>sample string 4</Component>
        <Field>e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015</Field>
        <FieldName>sample string 2</FieldName>
        <HumanReadableValue />
        <Locked>true</Locked>
        <Value />
      </DataValue>
    </Data>
    <Locked>true</Locked>
    <Section>sample string 1</Section>
  </SectionData>
  <SectionData>
    <CurrencyField>bab5c4c2-b1ed-43b0-94c6-68e9a061f0d8</CurrencyField>
    <Data>
      <DataValue>
        <Component>sample string 4</Component>
        <Field>e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015</Field>
        <FieldName>sample string 2</FieldName>
        <HumanReadableValue />
        <Locked>true</Locked>
        <Value />
      </DataValue>
      <DataValue>
        <Component>sample string 4</Component>
        <Field>e58fd7fd-8d3a-4aa8-b65a-ef29aa8ee015</Field>
        <FieldName>sample string 2</FieldName>
        <HumanReadableValue />
        <Locked>true</Locked>
        <Value />
      </DataValue>
    </Data>
    <Locked>true</Locked>
    <Section>sample string 1</Section>
  </SectionData>
</ArrayOfSectionData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Id of master record.

Object

None.

Response Formats

application/json, text/json, text/html

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />