---
title: "Assign asset REST services"
canonical: "https://support.appfire.com/space/AIP/10256541/Assign%20asset%20REST%20services"
format: markdown
---
> Macro (aura-html)

## Assign assets to me with filter

| **Method** | PUT |
| --- | --- |
| **URL** | /rest/jip-api/1.0/asset-operations/assign-to-user |

<details>
<summary>Request body:</summary>

```
{
  "userKey": "JIRAUSER10000",
  "operation": 2,
  "sync": false,
  "queryIndexParam": {
    "querySource": "GENERIC_SEARCH",
    "searchType": "basic",
    "listType": "detail",
    "queryIndexSearchParams": [
      {
        "field": "form.name",
        "keywords": [
          "Sample"
        ],
        "fieldType": "LIST"
      }
    ],
    "pageNumber": 1,
    "pageSize": 15,
    "sortDirection": "asc",
    "sortField": "asset.name",
    "sortType": "STRING",
    "respTime": 1589442432522
  }
}
```
</details>

<details>
<summary>Sample response:</summary>

```
{
  "success" : true,
  "errorCode" : null,
  "errorMessage" : null,
  "data" : 207,
  "pagingInfo" : null
}
```
</details>

## Assign selected assets to me

| **Method** | PUT |
| --- | --- |
| **URL** | /rest/jip-api/1.0/asset-operations/assign-to-user |

<details>
<summary>Request body:</summary>

```
{
  "userKey": "JIRAUSER10000",
  "operation": 1,
  "sync": false,
  "assetIds": [
    94,
    95
  ]
}
```
</details>

<details>
<summary>Sample response:</summary>

```
{
  "success" : true,
  "errorCode" : null,
  "errorMessage" : null,
  "data" : 208,
  "pagingInfo" : null
}
```
</details>

## Assign assets to user with filter

| **Method** | PUT |
| --- | --- |
| **URL** | /rest/jip-api/1.0/asset-operations/assign-to-user |

<details>
<summary>Request body:</summary>

```
{
  "userKey": "JIRAUSER10100",
  "operation": 2,
  "sync": false,
  "queryIndexParam": {
    "querySource": "GENERIC_SEARCH",
    "searchType": "basic",
    "listType": "detail",
    "queryIndexSearchParams": [
      {
        "field": "form.name",
        "keywords": [
          "Sample"
        ],
        "fieldType": "LIST"
      }
    ],
    "pageNumber": 1,
    "pageSize": 15,
    "sortDirection": "asc",
    "sortField": "asset.name",
    "sortType": "STRING",
    "respTime": 1589442731105
  }
}
```
</details>

<details>
<summary>Sample response:</summary>

```
{
  "success" : true,
  "errorCode" : null,
  "errorMessage" : null,
  "data" : 209,
  "pagingInfo" : null
}
```
</details>

## Assign selected assets to selected user

| **Method** | PUT |
| --- | --- |
| **URL** | /rest/jip-api/1.0/asset-operations/assign-to-user |

<details>
<summary>Request body:</summary>

```
{
  "userKey": "JIRAUSER10100",
  "operation": 1,
  "sync": false,
  "assetIds": [
    94,
    95
  ]
}
```
</details>

<details>
<summary>Sample response:</summary>

```
{
  "success" : true,
  "errorCode" : null,
  "errorMessage" : null,
  "data" : 210,
  "pagingInfo" : null
}
```
</details>