---
title: REST API - Listing Artifacts in the Request Body
slug: rm/rest-api-listing-artifacts-in-the-request-body
docTags: 
createdAt: 2026-06-09T13:38:46.112Z
---

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

- [REST API - Update Artifacts Request](docId:_IfYqEWN9AefvMmFdSNVT)
- [REST API - Publish Artifact Request](docId\:dXGScKqjZGoe9ASMLF01b)&#x20;
- [REST API - Publish Artifact Request](docId\:dXGScKqjZGoe9ASMLF01b)

# Method

The list of artifacts must be submitted using the [POST](docId\:Hsi_LzXS8g_RX_ydUdZKg) or [PATCH](docId\:RcjvHRLbY6de-zGKeHxuI) depending on the type of request you are submitting.

# Parameters

The following parameters can be specified within the `Artifact` element:

- `Id`: (Required.) Identifies the artifact numerically
- `ArtifactTypeId`: Numerically identifies the type of artifact. The identifier can be obtained via the [REST API - Get Artifact Type Request](docId\:Ac1PMQ7y4f9ibYm0n1kPl) and [REST API - List Artifact Types Request](docId:-VSDaXjKLJI3TK3sBr7Jy) requests.
- `Name`: If you want to change the name of the artifact using the `UpdateArtifacts` call, you can specify a value
- `ProjectId`: Identifies the project the artifact belongs to
- Any required values for the property type of the artifact, if you are [REST API - List Artifacts Request](docId\:IAbyqHiKPCh2vZWbeZCPY)

## Properties Element

:::hint{type="info"}
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:

- `Property`: (Required) The element containing the property specifications.
- `PropertyTypeId`: The corresponding elements, which can be populated in the [REST API - Get Artifact Request](docId\:WkUDb4Wm9Kw7RQoykF-Hk) call.

# Examples

## UpdateArtifacts Example

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

```xml
<?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:

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

## PublishArtifacts Example

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

```xml
<?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:

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

## DiscardArtifacts Example

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

```xml
<?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:

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

