Rename a Git repository folder

put/destinations/{destinationName}/gitFolders
Internal-Use Only

Rename a Git repository folder.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "0001-01-01T00:00:00Z,",
3 "modifiedTimeStamp": "2024-07-29T17:38:21Z",
4 "id": "example_folder,",
5 "name": "example_folder,",
6 "links": [
7 {
8 "method": "GET",
9 "rel": "up",
10 "href": "/modelPublish/destinations/gitDestNew/gitFolders,",
11 "uri": "/modelPublish/destinations/gitDestNew/gitFolders,",
12 "type": "application/vnd.sas.collection"
13 },
14 {
15 "method": "GET",
16 "rel": "self",
17 "href": "/modelPublish/destinations/gitDestNew/gitFolders/example_folder,",
18 "uri": "/modelPublish/destinations/gitDestNew/gitFolders/example_folder,",
19 "type": "application/vnd.sas.models.publishing.destination.folder"
20 },
21 {
22 "method": "POST,",
23 "rel": "createGitFolder,",
24 "href": "/modelPublish/destinations/gitDestNew/gitFolders/example_folder,",
25 "uri": "/modelPublish/destinations/gitDestNew/gitFolders/example_folder,",
26 "type": "application/vnd.sas.models.publishing.destination.folder"
27 }
28 ]
29}

Path Parameters

NameTypeRequiredDescription
destinationName
string
true

The name of the destination.

Request Body

Contains information about a Git repository folder.

NameTypeRequiredDescription
id
string
true

The ID of the Git repository folder.

name
string
true

The name of the Git repository folder.

newName
string
true

The new name of the Git repository folder.

parentFolder
string
false

The name of the parent Git repository folder.

Responses

StatusMeaningDescription
201CreatedThe Git repository folder was renamed.HeadersSchema
400Bad RequestThe request was invalid.Schema