Create a project trade

Create a new trade in the project (identified by its UUID) trades list

POST /aos/v1/projects/{projectId}/trades

Query params

Parameter Type Mandatory
projectId 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",
    "number": "100",
    "short_name": "AT100"
}

Response

Status: 201 Created
{
    "trade" : {
        "id": "97d0baa3-6916-4a15-9b49-62f93a2c64f2",
        "name": "Another trade",
        "number": "100",
        "short_name": "AT100"
    }
}