Get Project ID
GET {{baseUrl}}/{{organization}}/_apis/projects?api-version=6.0
This request gets the ID of the project with the name project
in the given organization
, using password
for authentication. After getting the projectId
and updating the environment value, it sets the next request to be Create Repo.
This request also uses the variable baseRepo
as part of the request URL to retrieve the project ID. The baseRepo
variable allows the switching of this request from a regular GET request (which would use https://dev.azure.com) to an example generated through the Mock Server (which would use the Mock Server URL).
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
api-version | string |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-mock-response-name | string |
RESPONSES
status: OK
{"count":1,"value":[{"id":"{{projectId}}","name":"Postman","url":"https://dev.azure.com/{{organization}}/_apis/projects/{{projectId}}","state":"wellFormed","revision":11,"visibility":"private","lastUpdateTime":"2021-00-00T00:00:00.00Z"}]}