Skip to end of banner
Go to start of banner

Assign Asset REST Services

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Assign assets to me with filter

MethodPUT
URL/rest/jip-api/1.0/asset-operations/assign-to-user
Request Body
{
  "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
  }
}
Sample Response
{
  "success" : true,
  "errorCode" : null,
  "errorMessage" : null,
  "data" : 207,
  "pagingInfo" : null
}

Assign selected assets to me

MethodPUT
URL/rest/jip-api/1.0/asset-operations/assign-to-user
Request Body
{
  "userKey": "JIRAUSER10000",
  "operation": 1,
  "sync": false,
  "assetIds": [
    94,
    95
  ]
}
Sample Response
{
  "success" : true,
  "errorCode" : null,
  "errorMessage" : null,
  "data" : 208,
  "pagingInfo" : null
}

Assign assets to user with filter

MethodPUT
URL/rest/jip-api/1.0/asset-operations/assign-to-user
Request Body
{
  "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
  }
}
Sample Response
{
  "success" : true,
  "errorCode" : null,
  "errorMessage" : null,
  "data" : 209,
  "pagingInfo" : null
}

Assign selected assets to selected user

MethodPUT
URL/rest/jip-api/1.0/asset-operations/assign-to-user
Request Body
{
  "userKey": "JIRAUSER10100",
  "operation": 1,
  "sync": false,
  "assetIds": [
    94,
    95
  ]
}
Sample Response
{
  "success" : true,
  "errorCode" : null,
  "errorMessage" : null,
  "data" : 210,
  "pagingInfo" : null
}
  • No labels