It allows you to associate one or more projects with a company.
Petition Details
- URL Base: {host}/ASMSAPI/
- URI:
/api/v9/company/addproject
- Guy:POST
-
Required Headers:
content-type: application/json
X-Authorization: Bearer {token}
URL Description
- {host}: It represents the domain of the environment in which the API is located.
- ASMSAPI/: Fixed API prefix.
- URI: Specific endpoint for the request.
⚐ EXAMPLE URL:
https://{host}/ASMSAPI/api/v9/company/addproject
Parameters
Name | Data type | Obligatory | Description |
---|---|---|---|
Id | Number | Yes | Company Identifier |
projectsId | List of numbers | Yes | List of project identifiers |
Body of the petition
{ “Id”: 0, “projectsId”: [] }
Examples of uri
api/v9/company/addproject
{
“Id”: 1,
“projectsId”: [25, 11, 1]
}
Answer
{
"Id": 1
}
Response parameters
Name | Data type | Description |
---|---|---|
Id | Number | Company Identifier |
Error messages
Code | HTTP status | Error Message |
---|---|---|
500 | InternalServerError | FailureAddProjectsToCompany |