Update a repository

put/repositories/{repositoryId}
Internal-Use Only

Updates the repository information for the specified repository ID. This information includes the name and description of the repository.

Request Samples

1

Response Samples

1{
2 "createdBy": "string",
3 "modifiedBy": "string",
4 "creationTimeStamp": "2019-08-24T14:15:22Z",
5 "modifiedTimeStamp": "2019-08-24T14:15:22Z",
6 "id": "string",
7 "name": "string",
8 "description": "string",
9 "folderId": "string",
10 "defaultRepository": true,
11 "version": 2
12}

Path Parameters

NameTypeRequiredDescription
repositoryId
string
true

The unique identifier for the repository.

Header Parameters

NameTypeRequiredDescription
If-Match
string
false

The entity tag obtained from the most recent ETag response header. Must match the current entity tag for the repository.

Request Body

The representation of the updates for the model repository.

Contains information about a model repository.

NameTypeRequiredDescription
createdBy
string
false

The user that created the repository.

modifiedBy
string
false

The user that last modified the repository.

creationTimeStamp
string<date-time>
false

The timestamp for when the repository was created, in the format of YYYY-MM-DDThh:mm:ss.sssZ.

modifiedTimeStamp
string<date-time>
false

The timestamp for when the repository was last modified, in the format of YYYY-MM-DDThh:mm:ss.sssZ.

id
string
false

The repository ID.

name
string
false

The repository name.

description
string
false

The description of the repository.

folderId
string
false

The folder that is associated with the repository.

defaultRepository
boolean
false

Indicates whether the repository is a default repository or not.

version
integer
false

The repository representation version. The version is 2.

Default:
2

Responses

StatusMeaningDescription
200OKThe request succeeded. The repository was updated.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundNo repository exists at the requested path.Schema
412Precondition FailedThe `If-Match` request header did not match the resource's entity tag, or the `If-Unmodified-Since` request header did not match the resource's last modified timestamp.Schema
428Precondition RequiredThe request headers did not include a `If-Match` or `If-Unmodified-Since` precondition.Schema