Update the attributes of a repository item

patch/repository/items/{itemId}

Updates the editable attributes of this repository item.

Authorization: Requires read and write permissions.

Request Samples

1

Response Samples

1{
2 "value": {
3 "version": 1,
4 "createdBy": "sastest1",
5 "creationTimeStamp": "2023-08-29T12:23:24Z",
6 "modifiedBy": "sastest1",
7 "modifiedTimeStamp": "2023-09-19T19:01:21Z",
8 "id": "cac68a83-2f9b-4e45-859f-1163581edf1e",
9 "typeId": "businessunit",
10 "createdByDisplayName": "SAS Test User 1 (sastest1)",
11 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
12 "primaryType": "CONTEXT",
13 "name": "BU",
14 "location": "/",
15 "path": "/BU",
16 "size": 5318049,
17 "propertiesModifiedTimeStamp": "2023-08-29T12:23:24Z",
18 "propertiesModifiedBy": "sastest1",
19 "propertiesModifiedByDisplayName": "SAS Test User 1 (sastest1)",
20 "state": "ACTIVE",
21 "owner": "sastest1",
22 "ownerDisplayName": "SAS Test User 1 (sastest1)",
23 "syncable": "ALLOW",
24 "defaultOwner": "sastest1",
25 "defaultOwnerDisplayName": "SAS Test User 1 (sastest1)",
26 "defaultMajorVersionLimit": 5,
27 "defaultMinorVersionLimit": 10,
28 "tags": []
29 }
30}

Path Parameters

NameTypeRequiredDescription
itemId
string
true

The unique identifier for the repository item.

Header Parameters

NameTypeRequiredDescription
If-Match
string
true

The ETag that was returned from a GET, POST or PUT of a resource.

Request Body

The attributes on the repository item to update.

Specifies the attributes and values to update the repository item.

NameTypeRequiredDescription
attributes
object
false

Specifies the attributes and values to update. See example for details.

Responses

StatusMeaningDescription
200OK

OK - the repository item was updated.

HeadersSchema
400Bad Request

Bad Request

404Not Found

Not found - the repository item could not be found.

412Precondition Failed

The ETag provided does not match the current resource.

Schema
428Precondition Required

The request headers did not include a If-Match precondition.

Schema