Update a project version

put/projects/{projectId}/projectVersions/{versionId}

Updates the project version that is associated with the specified version ID.

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 "versionNumber": "string",
10 "projectId": "string",
11 "version": 2
12}

Path Parameters

NameTypeRequiredDescription
projectId
string
true

The unique identifier for the project.

versionId
string
true

The unique identifier for the project version.

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 project version.

Request Body

The representation of the project version.

Contains information about a project version. Note: To update a project version using the PUT operation, you must include all of the properties. You can retrieve the values by performing a GET operation for a project version (getProjectVersion). These are the properties that are required for a PUT operation: id, projectId, name, and description.

NameTypeRequiredDescription
id
string
false

The unique identifier for the project version. This is required for GET and PUT REST operations.

name
string
true

The name of the project version.

description
string
false

The description of the project version.

projectId
string
true

The identifier for the project.

Responses

StatusMeaningDescription
200OK

The request succeeded. The project version was updated.

HeadersSchema
400Bad Request

The request was invalid.

Schema
404Not Found

No project version exists at the requested path.

Schema
412Precondition Failed

The 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 Required

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

Schema