Listing Artifacts in the Request Body

Overview

You must list the artifacts you are changing in the request message body when making any of the following requests:

Method

The list of artifacts must be submitted using the HTTP POST method or HTTP PATCH method depending on the type of request you are submitting.

Parameters

The following parameters can be specified within the Artifact element:

Properties Element

Note: When adding a new artifact, you must specify values for all required properties.

If you want to specify a property type for your artifact, include a Properties parameter within the Artifact element.

Among others, the Properties element can contain the following elements:

Examples

UpdateArtifacts Example

Here is an example of a request body in XML format:

<?xml version="1.0" ?>
<Artifacts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.blueprintsys.com/blueprint/api/v1">
  <Artifact>
    <Id>220914</Id>
    <Properties>
        <Property>
          <PropertyTypeId>9988</PropertyTypeId>
          <TextOrChoiceValue>Traveler Booking 1</TextOrChoiceValue>
        </Property>
    </Properties>
  </Artifact>
</Artifacts>

Here is an example of a request body in JSON format:

[
  {
    "Id": 220914, 
	"Properties": [ 
	  { 
	    "PropertyTypeId": 9988, 
		"TextOrChoiceValue": "Traveler Booking 1" 
	  }
	]
  }
]

PublishArtifacts Example

Here is an example of a request body in XML format:

<?xml version="1.0" ?>
<Artifacts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.blueprintsys.com/blueprint/api/v1">
  <Artifact>
    <Id>220914</Id>
    <ProjectId>220870</ProjectId>
  </Artifact>
</Artifacts>

Here is an example of a request body in JSON format:

[
  {
    "Id": "220914",
    "ProjectId": "220870"
  }
]

DiscardArtifacts Example

Here is an example of a request body in XML format:

<?xml version="1.0" ?>
<Artifacts xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.blueprintsys.com/blueprint/api/v1">
  <Artifact>
     <Id>220914</Id>
     <ProjectId>220870</ProjectId>
  </Artifact>
</Artifacts>

Here is an example of a request body in JSON format:

[
  {
    "Id": "220914",
    "ProjectId": "220870"
  }
]