Update Repository Information
This endpoint updates the repository information for a company. The user must be authenticated and have the appropriate role to access this endpoint.
Endpoint Information
URL:
https://testinium.io/Testinium.RestApi/api/companies/repository
Method:
PUT
Authentication: Required (
Bearer Token
)Header: Required (
current-company-id: <your_company_id>
)
Request Body
The request body must contain a CompanyDTO
object with the repository details to be updated.
Response
The response contains the updated company information, including the repository details.
Response Fields
id
Integer
The unique identifier of the company.
company_name
String
The name of the company.
short_name
String
The short name of the company.
email
String
The email address associated with the company.
subscription
Object
Subscription information for the company.
subscription.id
Integer
The unique ID of the subscription.
subscription.subscription_name
String
The name of the subscription.
subscription.minute
Integer
The total available minutes for the subscription.
subscription.max_user
Integer
The maximum number of users allowed under the subscription.
subscription.max_real_devices
Integer
The maximum number of real devices available.
subscription.parallel_test_limit
Integer
The parallel test limit for the subscription.
subscription.live_testing_parallel_limit
Integer
The live testing parallel limit for the subscription.
subscription.start_date
String
The start date of the subscription.
subscription.end_date
String
The end date of the subscription.
used_minute
Integer
The number of minutes used by the company.
repository_url
String
The URL of the repository.
repository_user
String
The username for the repository.
repository_pass
String
The password for the repository.
internal_repository_url
String
The internal repository URL.
internal_repository_user
String
The username for the internal repository.
internal_repository_pass
String
The password for the internal repository.
vcs_type
String
The type of version control system (e.g., GIT
).
external_repository
Boolean
Whether the repository is external.
external_executor
Boolean
Whether the external executor is enabled.
executor_ip
String
The IP address of the executor.
executor_port
Integer
The port number of the executor.
executor_user
String
The username for the executor.
executor_pass
String
The password for the executor.
executor_workspace
String
The workspace path for the executor.
internal_executor_ip
String
The IP address of the internal executor.
internal_executor_port
Integer
The port number of the internal executor.
internal_executor_user
String
The username for the internal executor.
internal_executor_pass
String
The password for the internal executor.
internal_executor_workspace
String
The workspace path for the internal executor.
enabled
Boolean
Whether the company is enabled.
customer_id
Integer
The customer ID associated with the company.
company_accessible_plugins
Array
A list of plugins accessible to the company.
boarding
Boolean
Whether the company is in the boarding process.
Error Codes
400
BAD_REQUEST
The request body is malformed or missing required fields.
403
FORBIDDEN
The user lacks required roles or permissions.
404
COMPANY_NOT_FOUND
The company specified by id
was not found.
404
NOT_HAVING_EXTERNAL_REPOSITORY
The company does not have an external repository.
404
REPOSITORY_URL_NOT_FOUND
The repository URL was not found or invalid.
404
REPOSITORY_USER_NOT_FOUND
The repository user was not found or invalid.
404
REPOSITORY_USERS_PASSWORD_NOT_FOUND
The repository user's password was not found or invalid.
404
REPOSITORY_NOT_VALID
The repository is not valid.
500
SYSTEM_INTERNAL_ERROR
A server-side error occurred while updating repository information.
Example Request
Last updated