POST xaitporter/update_project_options

This method checks the quote product details and updates the selected documents, such that if two template documents are selected by the user upon clicking on the Create action, the selected document objects are duplicated for each product. E.g. for two products that would 4 documents available in the ConfirmProject dialog.

Request Information

URI

https://ofd-api.blueprintcpq.net/xaitporter/update_project_options

URI Parameters

None.

Body Parameters

object with user selections

XaitPorterCreateProjectOptions
NameDescriptionTypeAdditional information
page

string

None.

view

string

None.

recordId

string

None.

projectName

string

None.

projectTemplateId

integer

None.

projectTemplateName

string

None.

selectedDocuments

Collection of XaitPorterDocument

None.

projectRecordId

globally unique identifier

None.

projectId

integer

None.

projectDocumentLink

string

None.

productsChanged

boolean

None.

requestId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "page": "sample string 1",
  "view": "sample string 2",
  "recordId": "sample string 3",
  "projectName": "sample string 4",
  "projectTemplateId": 5,
  "projectTemplateName": "sample string 6",
  "selectedDocuments": [
    {
      "overridden": true,
      "selectedSections": [
        {
          "id": 1,
          "name": "sample string 2"
        },
        {
          "id": 1,
          "name": "sample string 2"
        }
      ],
      "productId": "sample string 2",
      "productName": "sample string 3",
      "productLastModified": "2024-12-21T16:13:54.4435548Z",
      "productVersion": 5,
      "documentId": 6,
      "documentName": "sample string 7",
      "id": 8,
      "name": "sample string 9"
    },
    {
      "overridden": true,
      "selectedSections": [
        {
          "id": 1,
          "name": "sample string 2"
        },
        {
          "id": 1,
          "name": "sample string 2"
        }
      ],
      "productId": "sample string 2",
      "productName": "sample string 3",
      "productLastModified": "2024-12-21T16:13:54.4435548Z",
      "productVersion": 5,
      "documentId": 6,
      "documentName": "sample string 7",
      "id": 8,
      "name": "sample string 9"
    }
  ],
  "projectRecordId": "4caf27e4-8232-456c-b789-c5426dc29ab7",
  "projectId": 8,
  "projectDocumentLink": "sample string 9",
  "productsChanged": true,
  "requestId": "sample string 11"
}

text/html

Sample:
{"page":"sample string 1","view":"sample string 2","recordId":"sample string 3","projectName":"sample string 4","projectTemplateId":5,"projectTemplateName":"sample string 6","selectedDocuments":[{"overridden":true,"selectedSections":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}],"productId":"sample string 2","productName":"sample string 3","productLastModified":"2024-12-21T16:13:54.4435548Z","productVersion":5,"documentId":6,"documentName":"sample string 7","id":8,"name":"sample string 9"},{"overridden":true,"selectedSections":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}],"productId":"sample string 2","productName":"sample string 3","productLastModified":"2024-12-21T16:13:54.4435548Z","productVersion":5,"documentId":6,"documentName":"sample string 7","id":8,"name":"sample string 9"}],"projectRecordId":"4caf27e4-8232-456c-b789-c5426dc29ab7","projectId":8,"projectDocumentLink":"sample string 9","productsChanged":true,"requestId":"sample string 11"}

application/xml, text/xml

Sample:
<XaitPorterCreateProjectOptions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Models.DataModels">
  <Page>sample string 1</Page>
  <ProductsChanged>true</ProductsChanged>
  <ProjectDocumentLink>sample string 9</ProjectDocumentLink>
  <ProjectId>8</ProjectId>
  <ProjectName>sample string 4</ProjectName>
  <ProjectRecordId>4caf27e4-8232-456c-b789-c5426dc29ab7</ProjectRecordId>
  <ProjectTemplateId>5</ProjectTemplateId>
  <ProjectTemplateName>sample string 6</ProjectTemplateName>
  <RecordId>sample string 3</RecordId>
  <RequestId>sample string 11</RequestId>
  <SelectedDocuments>
    <XaitPorterDocument>
      <Id>8</Id>
      <Name>sample string 9</Name>
      <DocumentId>6</DocumentId>
      <DocumentName>sample string 7</DocumentName>
      <Overridden>true</Overridden>
      <ProductId>sample string 2</ProductId>
      <ProductLastModified>2024-12-21T16:13:54.4435548+00:00</ProductLastModified>
      <ProductName>sample string 3</ProductName>
      <ProductVersion>5</ProductVersion>
      <SelectedSections>
        <XaitPorterSection>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </XaitPorterSection>
        <XaitPorterSection>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </XaitPorterSection>
      </SelectedSections>
    </XaitPorterDocument>
    <XaitPorterDocument>
      <Id>8</Id>
      <Name>sample string 9</Name>
      <DocumentId>6</DocumentId>
      <DocumentName>sample string 7</DocumentName>
      <Overridden>true</Overridden>
      <ProductId>sample string 2</ProductId>
      <ProductLastModified>2024-12-21T16:13:54.4435548+00:00</ProductLastModified>
      <ProductName>sample string 3</ProductName>
      <ProductVersion>5</ProductVersion>
      <SelectedSections>
        <XaitPorterSection>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </XaitPorterSection>
        <XaitPorterSection>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </XaitPorterSection>
      </SelectedSections>
    </XaitPorterDocument>
  </SelectedDocuments>
  <View>sample string 2</View>
</XaitPorterCreateProjectOptions>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Updated object with selected documents per product.

XaitPorterCreateProjectOptions
NameDescriptionTypeAdditional information
page

string

None.

view

string

None.

recordId

string

None.

projectName

string

None.

projectTemplateId

integer

None.

projectTemplateName

string

None.

selectedDocuments

Collection of XaitPorterDocument

None.

projectRecordId

globally unique identifier

None.

projectId

integer

None.

projectDocumentLink

string

None.

productsChanged

boolean

None.

requestId

string

None.

Response Formats

application/json, text/json

Sample:
{
  "page": "sample string 1",
  "view": "sample string 2",
  "recordId": "sample string 3",
  "projectName": "sample string 4",
  "projectTemplateId": 5,
  "projectTemplateName": "sample string 6",
  "selectedDocuments": [
    {
      "overridden": true,
      "selectedSections": [
        {
          "id": 1,
          "name": "sample string 2"
        },
        {
          "id": 1,
          "name": "sample string 2"
        }
      ],
      "productId": "sample string 2",
      "productName": "sample string 3",
      "productLastModified": "2024-12-21T16:13:54.4435548Z",
      "productVersion": 5,
      "documentId": 6,
      "documentName": "sample string 7",
      "id": 8,
      "name": "sample string 9"
    },
    {
      "overridden": true,
      "selectedSections": [
        {
          "id": 1,
          "name": "sample string 2"
        },
        {
          "id": 1,
          "name": "sample string 2"
        }
      ],
      "productId": "sample string 2",
      "productName": "sample string 3",
      "productLastModified": "2024-12-21T16:13:54.4435548Z",
      "productVersion": 5,
      "documentId": 6,
      "documentName": "sample string 7",
      "id": 8,
      "name": "sample string 9"
    }
  ],
  "projectRecordId": "77ef02e2-e396-4d75-9969-e99f7e379b4e",
  "projectId": 8,
  "projectDocumentLink": "sample string 9",
  "productsChanged": true,
  "requestId": "sample string 11"
}

text/html

Sample:
{"page":"sample string 1","view":"sample string 2","recordId":"sample string 3","projectName":"sample string 4","projectTemplateId":5,"projectTemplateName":"sample string 6","selectedDocuments":[{"overridden":true,"selectedSections":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}],"productId":"sample string 2","productName":"sample string 3","productLastModified":"2024-12-21T16:13:54.4435548Z","productVersion":5,"documentId":6,"documentName":"sample string 7","id":8,"name":"sample string 9"},{"overridden":true,"selectedSections":[{"id":1,"name":"sample string 2"},{"id":1,"name":"sample string 2"}],"productId":"sample string 2","productName":"sample string 3","productLastModified":"2024-12-21T16:13:54.4435548Z","productVersion":5,"documentId":6,"documentName":"sample string 7","id":8,"name":"sample string 9"}],"projectRecordId":"77ef02e2-e396-4d75-9969-e99f7e379b4e","projectId":8,"projectDocumentLink":"sample string 9","productsChanged":true,"requestId":"sample string 11"}

application/xml, text/xml

Sample:
<XaitPorterCreateProjectOptions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Models.DataModels">
  <Page>sample string 1</Page>
  <ProductsChanged>true</ProductsChanged>
  <ProjectDocumentLink>sample string 9</ProjectDocumentLink>
  <ProjectId>8</ProjectId>
  <ProjectName>sample string 4</ProjectName>
  <ProjectRecordId>77ef02e2-e396-4d75-9969-e99f7e379b4e</ProjectRecordId>
  <ProjectTemplateId>5</ProjectTemplateId>
  <ProjectTemplateName>sample string 6</ProjectTemplateName>
  <RecordId>sample string 3</RecordId>
  <RequestId>sample string 11</RequestId>
  <SelectedDocuments>
    <XaitPorterDocument>
      <Id>8</Id>
      <Name>sample string 9</Name>
      <DocumentId>6</DocumentId>
      <DocumentName>sample string 7</DocumentName>
      <Overridden>true</Overridden>
      <ProductId>sample string 2</ProductId>
      <ProductLastModified>2024-12-21T16:13:54.4435548+00:00</ProductLastModified>
      <ProductName>sample string 3</ProductName>
      <ProductVersion>5</ProductVersion>
      <SelectedSections>
        <XaitPorterSection>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </XaitPorterSection>
        <XaitPorterSection>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </XaitPorterSection>
      </SelectedSections>
    </XaitPorterDocument>
    <XaitPorterDocument>
      <Id>8</Id>
      <Name>sample string 9</Name>
      <DocumentId>6</DocumentId>
      <DocumentName>sample string 7</DocumentName>
      <Overridden>true</Overridden>
      <ProductId>sample string 2</ProductId>
      <ProductLastModified>2024-12-21T16:13:54.4435548+00:00</ProductLastModified>
      <ProductName>sample string 3</ProductName>
      <ProductVersion>5</ProductVersion>
      <SelectedSections>
        <XaitPorterSection>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </XaitPorterSection>
        <XaitPorterSection>
          <Id>1</Id>
          <Name>sample string 2</Name>
        </XaitPorterSection>
      </SelectedSections>
    </XaitPorterDocument>
  </SelectedDocuments>
  <View>sample string 2</View>
</XaitPorterCreateProjectOptions>