Update the repository item owner

put/repository/items/{itemId}/owner

Update the repository item owner.

Request Samples

1

Response Samples

1{
2 "value": {
3 "version": 1,
4 "id": "dbdbef7d-dbdb-49c3-a154-fb41c261b802",
5 "typeId": "user",
6 "name": "SAS Test User 1",
7 "displayName": "SAS Test User 1 (sastest1)"
8 }
9}

Path Parameters

NameTypeRequiredDescription
itemId
string
true

The unique identifier for the repository item.

Query Parameters

NameTypeRequiredDescription
current
boolean
false

True (default) if updating the current owner; otherwise, false.

ownerId
string
true

The user ID of the new owner.

Responses

StatusMeaningDescription
200OK

The request succeeded and the specified repository item owner has been updated.

Schema
400Bad Request

Bad Request