Invite contractors in a template.
POST /aos/v1/projects/{projectId}/templates/{templateId}/contractors
Headers
| Header |
Value |
| Content-Type |
application/json |
| Accept |
application/json |
Query params
| Parameter |
Type |
Mandatory |
Description |
| projectId |
string (uuid) |
yes |
The ID of the project. |
| templateId |
string (uuid) |
yes |
The ID of the template. |
Body params
| Parameter |
Type |
Mandatory |
Description |
| contractors |
array |
yes |
List of contractors to invite on the template. |
| contractors.*.name |
string |
yes |
The name of the contractor. |
| contractors.*.email |
string |
yes |
The email of the contractor. |
| contractors.*.phone |
string |
no |
The phone of the contractor. |
Example of request
{
"contractors": [
{
"name": "ENT 1",
"email": "ent1@example.com",
"phone": "+33102030405"
}
// Other contractors...
]
}
Response
Status: 201 Created
{
"success": true
}