Creating a Software Repository Project
Function
This API is used to create a software repository project.
The request header parameter X-Repo-Auth needs to be added for this API. Its value is the name of the OAuth authorization created in Creating OAuth Authorization.
Request
Request parameters
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| name | String | Yes | Project name. |
Response
Response parameters
| Parameter | Type | Description |
|---|---|---|
| id | String | Project ID. |
| name | String | Project name. |
| clone_url | String | Clone URL. |
Example
Example request
None
Example response
{
"id": "string",
"name": "string",
"clone_url": "string"
}
Status Code
| HTTP Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
Error code must be in the format of SVCSTG.REPO.[Error_ID]. Example: SVCSTG.REPO.0401. See ServiceStage Error Codes.
Last Article: Obtaining All Projects in a Namespace
Next Article: Obtaining a Project Branch
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.