Update a project trade
Update an existent trade in the project (identified by its UUID)
PUT /aos/v1/projects/{projectId}/trades/{tradeId}
Query params
| Parameter |
Type |
Mandatory |
| projectId |
string (uuid) |
yes |
| tradeId |
string (uuid) |
yes |
Headers
| Header |
Value |
| Content-Type |
application/json |
| Accept |
application/json |
Body params
| Parameter |
Type |
Mandatory |
Description |
| name |
string |
yes |
The name of the trade |
| number |
string |
yes |
The number of the trade |
| short_name |
string |
yes |
The "alias" of the trade |
Example of request
{
"name": "Another trade edited",
"number": "100",
"short_name": "AT100"
}
Response
Status: 200 OK
{
"trade": {
"id": "97d0baa3-6916-4a15-9b49-62f93a2c64f2",
"name": "Another trade edited",
"number": "100",
"short_name": "AT100"
}
}